/* ── Consultation CTA Section ─────────────────── */
.cta-section {
  background: #FBFAF7;
  padding: 56px 0;
  overflow: hidden;
}

.cta-container {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 80px;
  box-sizing: border-box;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

/* ── Left Column ─── */
.cta-left { display: flex; flex-direction: column; gap: 24px; }

.cta-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cta-eyebrow__line {
  display: block;
  width: 40px;
  height: 1.5px;
  background: #BF9856;
  flex-shrink: 0;
}
.cta-eyebrow__text {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #BF9856;
}

.cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 4vw, 64px);
  font-weight: 600;
  color: #0D4830;
  line-height: 1.15;
  margin: 0;
}
.cta-title__italic {
  font-style: italic;
  color: #BF9856;
  font-weight: 500;
}

.cta-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #5F5F60;
  margin: 0;
  max-width: 440px;
}

/* Trust features */
.cta-features {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cta-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
}
.cta-feature.has-divider {
  border-top: 1px solid #e8e2d9;
}
.cta-feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #F2EDE4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cta-feature__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}
.cta-feature__body strong {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1F2623;
}
.cta-feature__body span {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #5F5F60;
}

/* ── Right Column — Form ─── */
.cta-right { min-width: 0; }

.cta-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 20px;
  margin-bottom: 20px;
}

/* Field */
.cta-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.cta-field label {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #1F2623;
}
.cta-field label > span[aria-hidden="true"] {
  color: #c0392b;
  margin-left: 2px;
}

/* Input styles */
.cta-field input[type="text"],
.cta-field input[type="tel"],
.cta-field input[type="email"],
.cta-field input[type="date"] {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #1F2623;
  background: #ffffff;
  border: 1.5px solid #e0dbd3;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.cta-field input::placeholder { color: #b0aa9f; }
.cta-field input:focus { border-color: #0D4830; }

/* Select wrapper */
.cta-select-wrap {
  position: relative;
}
.cta-select-wrap select {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 40px 13px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #1F2623;
  background: #ffffff;
  border: 1.5px solid #e0dbd3;
  border-radius: 8px;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.cta-select-wrap select:focus { border-color: #0D4830; }
.cta-select-wrap select option[value=""] { color: #b0aa9f; }
.cta-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #5F5F60;
}

/* Date wrapper */
.cta-date-wrap { position: relative; }
.cta-date-wrap input[type="date"] {
  padding-right: 40px;
  color: #1F2623;
}
.cta-date-wrap input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 0;
  width: 40px;
  height: 100%;
  cursor: pointer;
}
.cta-date-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Checkbox row */
.cta-field--checkbox { margin-top: 4px; }
.cta-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #5F5F60;
}
.cta-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.cta-checkbox-custom {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1.5px solid #c8c0b5;
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.cta-checkbox-label input:checked ~ .cta-checkbox-custom {
  background: #0D4830;
  border-color: #0D4830;
}
.cta-checkbox-label input:checked ~ .cta-checkbox-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

/* Ensure consent text is never red */
.cta-checkbox-label span:not(.cta-checkbox-custom) {
  color: #5F5F60 !important;
}

/* Message */
.cta-form__message {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 8px;
  padding: 0;
  margin: 0;
  min-height: 0;
  transition: all 0.2s;
}
.cta-form__message:not(:empty) { padding: 12px 16px; margin: 12px 0 0; }
.cta-form__message.is-success { background: #eef7f2; color: #0D4830; border: 1px solid #b8d9c6; }
.cta-form__message.is-error   { background: #fdf2f2; color: #c0392b; border: 1px solid #f5c2c2; }

/* Submit button */
.cta-submit {
  width: 100%;
  margin-top: 16px;
  background: #0D4830;
  color: #FBFAF7;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  padding: 18px 24px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.cta-submit:hover:not(:disabled) { background: #0a3824; }
.cta-submit:disabled { opacity: 0.65; cursor: not-allowed; }

/* Privacy note */
.cta-privacy-note {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #9a9590;
  text-align: center;
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ── Responsive ─── */
@media (max-width: 1024px) {
  .cta-section { padding: 40px 0; }
  .cta-container { padding: 0 40px; gap: 48px; }
}

@media (max-width: 900px) {
  .cta-container {
    grid-template-columns: 1fr;
    padding: 0 40px;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .cta-section { padding: 32px 0; }
  .cta-container { padding: 0 24px; }
  .cta-form__grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 480px) {
  .cta-container { padding: 0 16px; }
}

/* ── CF7 Overrides ─────────────────────────────── */

/* White form card */
.cta-form-wrap {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px 36px;
  box-shadow: 0 4px 24px rgba(13,72,48,.07);
}

.cta-form-wrap .wpcf7 { width: 100%; }

/* 2-column row */
.cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-bottom: 20px;
}
.cf7-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* Labels */
.cf7-label {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #1F2623;
  display: block;
}
.cf7-req {
  color: #BF9856;
  margin-left: 2px;
}

/* Inputs & selects */
.cta-form-wrap .wpcf7-form-control-wrap { display: block; width: 100%; }
.cta-form-wrap input[type="text"],
.cta-form-wrap input[type="email"],
.cta-form-wrap input[type="tel"],
.cta-form-wrap input[type="date"],
.cta-form-wrap select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #E0D8CC;
  border-radius: 8px;
  background: #FBFAF7;
  color: #1F2623;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  transition: border-color .2s, background .2s;
  appearance: none;
  -webkit-appearance: none;
}
.cta-form-wrap input[type="text"]::placeholder,
.cta-form-wrap input[type="email"]::placeholder,
.cta-form-wrap input[type="tel"]::placeholder,
.cta-form-wrap input[type="date"]::placeholder { color: #9E9D9B; }
.cta-form-wrap input:focus,
.cta-form-wrap select:focus {
  border-color: #0D4830;
  background: #fff;
}

.cta-form-wrap select {
  cursor: pointer;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235F5F60' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Consent row */
.cf7-consent-row {
  margin-bottom: 20px;
}
.cta-form-wrap .wpcf7-acceptance { display: block; }
.cta-form-wrap .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.cta-form-wrap .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #5F5F60;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  line-height: 1.5;
}
.cta-form-wrap .wpcf7-acceptance input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: #0D4830;
  cursor: pointer;
}

/* Submit button */
.cta-form-wrap input[type="submit"],
.cta-form-wrap .wpcf7-submit {
  display: block;
  width: 100%;
  padding: 17px 32px;
  background: #0D4830;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s, transform .15s;
  margin-bottom: 14px;
}
.cta-form-wrap input[type="submit"]:hover,
.cta-form-wrap .wpcf7-submit:hover {
  background: #0a3825;
  transform: translateY(-1px);
}

/* Privacy note */
.cf7-privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #9E9D9B;
  margin: 0;
  line-height: 1;
}
.cf7-privacy-note svg {
  flex-shrink: 0;
  color: #9E9D9B;
  display: block;
  margin-top: -1px;
}

/* Validation */
.cta-form-wrap .wpcf7-not-valid-tip {
  font-size: 11px;
  color: #c0392b;
  margin-top: 4px;
  display: block;
  font-family: 'Poppins', sans-serif;
}
.cta-form-wrap .wpcf7-response-output {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin: 12px 0 0;
  border: none;
  font-family: 'Poppins', sans-serif;
}
.cta-form-wrap .wpcf7-mail-sent-ok { background: #eef7f1; color: #0D4830; }
.cta-form-wrap .wpcf7-validation-errors { background: #fff5f5; color: #c0392b; }

/* Responsive */
@media (max-width: 768px) {
  .cta-form-wrap { padding: 28px 20px; }
  .cf7-row { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 400px) {
  /* <input type="submit"> can never wrap its value text, so at narrow
     widths "REQUEST CLINICAL CONSULTATION →" was being silently
     clipped by the button's own box. Shrink font/letter-spacing/padding
     so the full label fits on one line instead. */
  .cta-form-wrap input[type="submit"],
  .cta-form-wrap .wpcf7-submit {
    font-size: 11px;
    letter-spacing: .06em;
    padding: 16px 12px;
  }
}
