/* ==========================================================================
   CONTACT PAGE (match React Contact page styles)
   Keep existing CF7 fields + right-side image layout
   ========================================================================== */

.wpcf7 form {
  max-width: 560px;
  margin: 0 auto;
  background: #ffffff;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: none;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

/* Two-column layout */
.form-row.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* Full-width rows (email, message, submit) */
.form-row.full-width {
  display: block;
  margin-bottom: 16px;
}

/* Form group spacing */
.form-group {
  margin-bottom: 0;
}

/* Labels */
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: #0f172a;
  font-size: 0.875rem; /* text-sm */
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

/* Input, textarea styling */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  background: #ffffff;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  color: #0f172a;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"] {
  height: 40px;
}

.wpcf7 textarea {
  min-height: 140px;
  resize: vertical;
}

/* Focus effect */
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: #2563eb;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

/* Radio buttons inline */
.radio-inline span.wpcf7-list-item {
  display: inline-block;
  margin-right: 20px;
  font-size: 14px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  color: #0f172a !important;
  font-weight: 400 !important;
}

.query-type,
.query-type label,
.wpcf7 .query-type,
.wpcf7 .query-type * {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  color: #0f172a !important;
  font-weight: 500 !important;
}

.wpcf7 .wpcf7-radio .wpcf7-list-item-label {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  color: #0f172a !important;
  font-weight: 400 !important;
}

/* Center align radio row */
.form-row.align-center {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 16px;
}

/* Submit button styling */
.wpcf7 input[type="submit"] {
  width: 100%;
  height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

.wpcf7 input[type="submit"]:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.wpcf7 input[type="submit"]:active {
  transform: translateY(0);
}

/* Responsive for mobile */
@media (max-width: 600px) {
  .form-row.two-columns,
  .form-row.align-center {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 1085px) {
  .contact-image {
    display: none !important;
  }
}

.wp-block-post-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
  position: relative; /* needed for pseudo-element */
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

.wp-block-post-title::before {
  content: none;
}

/* React-like intro text under the title (page content from WP backend) */
.contact-section.alignfull .wp-block-post-title {
  margin-bottom: 8px;
}

.contact-section.alignfull .wp-block-post-title + p,
.contact-section.alignfull .wp-block-post-title + .wp-block-paragraph {
  margin-top: 0;
  text-align: center;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 16px !important; /* React default text size */
  font-weight: 400 !important;
  color: #64748b !important;
  line-height: 1.7 !important;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Strong override for the second heading/subtext block */
.contact-section.alignfull .wp-block-post-title ~ p,
.contact-section.alignfull .wp-block-post-title ~ .wp-block-paragraph,
.contact-section.alignfull .wp-block-post-title ~ h2,
.contact-section.alignfull .wp-block-post-title ~ h3 {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

.contact-section.alignfull .wp-block-post-title ~ p,
.contact-section.alignfull .wp-block-post-title ~ .wp-block-paragraph {
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #64748b !important;
  line-height: 1.7 !important;
}

/* If the page uses multiple intro lines, keep them consistent */
.contact-section.alignfull .wp-block-paragraph {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

/* Make headings inside contact content match React */
.contact-section.alignfull h1,
.contact-section.alignfull h2,
.contact-section.alignfull h3 {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  color: #0f172a;
}

/* Remove the right-side human image */
.contact-image {
  display: none !important;
}

.query-type {
  /*padding-right: 10px;*/
}

.wpcf7-radio > .wpcf7-list-item {
  /*padding-right: 40px;*/
}

/* 1. Make the section full viewport width */
.contact-section.alignfull {
  width: 100vw; /* full viewport width */
  position: relative;
  display: flex;
  justify-content: center; /* center the container */
  overflow: visible; /* allow image to overlap */
  padding: 56px 16px 56px !important;
  background: #f5f7fb;
}

/* 2. Container holding form + image */
.contact-container {
  display: flex;
  align-items: center;
  position: relative;
  max-width: none; /* remove theme constraint */
  width: auto;
  gap: 24px;
}

/* 3. Form styling */
.contact-form {
  z-index: 2;
  position: relative;
}

/* 4. Image styling */
.contact-image {
  height: 614px;
  width: 400px;
  margin-left: 0;
  position: relative;
  z-index: 1;
}

/* Keep image removed even after later legacy rules */
.contact-section .contact-image,
.contact-container .contact-image {
  display: none !important;
}

.contact-image img {
  height: 100%;
  width: auto;
}

/* 5. Responsive: stack on small screens */
@media (max-width: 992px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }
  .contact-image {
    margin-left: 0;
    margin-top: 30px;
    width: 80%; /* smaller on mobile */
  }
  .contact-form {
    width: 100%;
    max-width: 500px;
  }
}

.alignfull  {
  padding-top: 0px !important;
}
