/* =========================================================
   REFERRAL PAGE
   Target: .et_pb_section_1 + .et_pb_section_2
   Sunny Pine approved style
   Contact Form 7 styling
   Flex only - no grid / no display contents
   ========================================================= */

/* =========================================================
   GENERAL
   ========================================================= */

.et_pb_section_1,
.et_pb_section_2 {
  padding: 0 !important;
  background: #f7f9fa !important;
}

.et_pb_section_1 .et_pb_row,
.et_pb_section_2 .et_pb_row {
  width: 90% !important;
  max-width: 1280px !important;
}

/* Reset Divi columns */
.et_pb_section_1 .et_pb_row > .et_pb_column,
.et_pb_section_2 .et_pb_row > .et_pb_column {
  float: none !important;
  margin: 0 !important;
}

/* =========================================================
   SECTION 1 - INTRO
   ========================================================= */



.et_pb_section_1 .et_pb_row_1 {
  display: flex !important;
  justify-content: center !important;
  align-items: stretch !important;
}

.et_pb_section_1 .et_pb_column_1,
.et_pb_section_1 .et_pb_column_3 {
  display: none !important;
}

.et_pb_section_1 .et_pb_column_2 {
  width: 100% !important;
  flex: 0 0 100% !important;
}

.et_pb_section_1 .et_pb_text_1 {
  margin: 0 !important;
}

.et_pb_section_1 .et_pb_text_1 .et_pb_text_inner {
  background: #eaf6fb !important;
  border-radius: 1rem !important;
  padding: 34px 38px !important;
  text-align: left !important;
}

/* Heading */
.et_pb_section_1 .et_pb_text_1 h4 {
  position: relative !important;
  margin: 0 0 14px 0 !important;
  padding: 0 0 0 24px !important;
  font-size: 2.5rem !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
  color: #111 !important;
  text-align: left !important;
}

.et_pb_section_1 .et_pb_text_1 h4::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 4px !important;
  height: 1.25em !important;
  background: #4db8e6 !important;
  border-radius: 999px !important;
}

/* Intro paragraph */
.et_pb_section_1 .et_pb_text_1 p {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1.2rem !important;
  line-height: 1.65 !important;
  color: #111 !important;
  text-align: left !important;
}

/* =========================================================
   SECTION 2 - FORM WRAPPER
   ========================================================= */



.et_pb_section_2 .et_pb_row_2 {
  display: flex !important;
  justify-content: center !important;
  align-items: stretch !important;
}

/* Hide empty side columns */
.et_pb_section_2 .et_pb_column_4,
.et_pb_section_2 .et_pb_column_6 {
  display: none !important;
}

.et_pb_section_2 .et_pb_column_5 {
  width: 100% !important;
  flex: 0 0 100% !important;
}

.et_pb_section_2 .et_pb_text_2 {
  margin: 0 !important;
}

.et_pb_section_2 .et_pb_text_2 .et_pb_text_inner {
  background: #eaf6fb !important;
  border-radius: 1rem !important;
  padding: 34px !important;
  box-sizing: border-box !important;
}

/* =========================================================
   CONTACT FORM 7 BASE
   ========================================================= */

.et_pb_section_2 .wpcf7 {
  width: 100% !important;
}

.et_pb_section_2 .wpcf7 form {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  gap: 16px !important;
  margin: 0 !important;
}

.et_pb_section_2 .wpcf7 form p {
  margin: 0 !important;
  padding: 0 !important;
}

/* Reset old form column structure */
.et_pb_section_2 .wpcf7 .column-half3,
.et_pb_section_2 .wpcf7 .column-full,
.et_pb_section_2 .wpcf7 form > div[style*="padding"] {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.et_pb_section_2 .wpcf7 .column-half3 {
  flex: 0 0 calc(50% - 8px) !important;
  width: calc(50% - 8px) !important;
}

.et_pb_section_2 .wpcf7 .column-full,
.et_pb_section_2 .wpcf7 form > div[style*="padding"] {
  flex: 0 0 100% !important;
  width: 100% !important;
}

/* Hide old clearing divs */
.et_pb_section_2 .wpcf7 form > div[style*="clear"] {
  display: none !important;
}

/* =========================================================
   LABELS
   ========================================================= */

.et_pb_section_2 .wpcf7 label {
  display: block !important;
  margin: 0 0 8px 0 !important;
  font-size: 1.05rem !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  color: #111 !important;
}

/* =========================================================
   INPUTS / SELECT / TEXTAREA
   ========================================================= */

.et_pb_section_2 .wpcf7 input[type="text"],
.et_pb_section_2 .wpcf7 input[type="email"],
.et_pb_section_2 .wpcf7 input[type="tel"],
.et_pb_section_2 .wpcf7 input[type="date"],
.et_pb_section_2 .wpcf7 textarea,
.et_pb_section_2 .wpcf7 select {
  width: 100% !important;
  min-height: 56px !important;
  margin: 0 !important;
  padding: 16px 18px !important;
  border: none !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
  color: #111 !important;
  font-size: 1.1rem !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  outline: none !important;
}

.et_pb_section_2 .wpcf7 textarea {
  min-height: 150px !important;
  resize: vertical !important;
}

.et_pb_section_2 .wpcf7 select {
  cursor: pointer !important;
}

.et_pb_section_2 .wpcf7 input::placeholder,
.et_pb_section_2 .wpcf7 textarea::placeholder {
  color: rgba(17, 17, 17, 0.65) !important;
}

.et_pb_section_2 .wpcf7 input:focus,
.et_pb_section_2 .wpcf7 textarea:focus,
.et_pb_section_2 .wpcf7 select:focus {
  box-shadow: 0 0 0 3px rgba(77, 184, 230, 0.22) !important;
}

/* =========================================================
   RADIO + CHECKBOX GROUPS
   ========================================================= */

.et_pb_section_2 .wpcf7 .wpcf7-radio,
.et_pb_section_2 .wpcf7 .wpcf7-checkbox {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  width: 100% !important;
}

.et_pb_section_2 .wpcf7 .wpcf7-list-item {
  margin: 0 !important;
}

.et_pb_section_2 .wpcf7 .wpcf7-list-item label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 14px 18px !important;
  background: #ffffff !important;
  border-radius: 999px !important;
  font-size: 1.05rem !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: #111 !important;
  cursor: pointer !important;
}

.et_pb_section_2 .wpcf7 input[type="radio"],
.et_pb_section_2 .wpcf7 input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  accent-color: #1299d5 !important;
  cursor: pointer !important;
}

.et_pb_section_2 .wpcf7 .wpcf7-list-item-label {
  color: #111 !important;
}

/* Referred supports checkbox group - make it more spacious */
.et_pb_section_2 .wpcf7 [data-name="reff-supports"] .wpcf7-checkbox {
  gap: 12px !important;
}

.et_pb_section_2 .wpcf7 [data-name="reff-supports"] .wpcf7-list-item label {
  border-radius: 1rem !important;
  background: #ffffff !important;
}

/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.et_pb_section_2 .wpcf7 input[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 56px !important;
  padding: 16px 34px !important;
  border: none !important;
  border-radius: 999px !important;
  background: #1299d5 !important;
  color: #ffffff !important;
  font-size: 1.1rem !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}

.et_pb_section_2 .wpcf7 input[type="submit"]:hover {
  background: #0f86bb !important;
  transform: translateY(-1px) !important;
}

.et_pb_section_2 .wpcf7 .wpcf7-spinner {
  margin-left: 12px !important;
}

/* =========================================================
   ERROR / VALIDATION STATES
   ========================================================= */

.et_pb_section_2 .wpcf7 .wpcf7-form-control-wrap {
  display: block !important;
  width: 100% !important;
}

.et_pb_section_2 .wpcf7 input.wpcf7-not-valid,
.et_pb_section_2 .wpcf7 textarea.wpcf7-not-valid,
.et_pb_section_2 .wpcf7 select.wpcf7-not-valid {
  background: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(214, 69, 69, 0.25) !important;
}

.et_pb_section_2 .wpcf7-not-valid-tip {
  display: block !important;
  width: 100% !important;
  margin: 8px 0 0 0 !important;
  padding: 10px 14px !important;
  background: rgba(214, 69, 69, 0.08) !important;
  border-left: 4px solid #d64545 !important;
  border-radius: 0.75rem !important;
  color: #b42323 !important;
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  box-sizing: border-box !important;
}

.et_pb_section_2 .wpcf7-response-output {
  flex: 0 0 100% !important;
  width: 100% !important;
  margin: 8px 0 0 0 !important;
  padding: 16px 18px !important;
  border: none !important;
  border-left: 4px solid #d64545 !important;
  border-radius: 1rem !important;
  background: rgba(214, 69, 69, 0.08) !important;
  color: #b42323 !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  font-weight: 600 !important;
  box-sizing: border-box !important;
}

.et_pb_section_2 .wpcf7 form.sent .wpcf7-response-output {
  border-left-color: #4db8e6 !important;
  background: #e8f7fd !important;
  color: #111 !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {
  .et_pb_section_1,
  .et_pb_section_2 {
    padding: 64px 0 !important;
  }

  .et_pb_section_1 .et_pb_row,
  .et_pb_section_2 .et_pb_row {
    width: 92% !important;
  }

  .et_pb_section_1 .et_pb_text_1 h4 {
    font-size: 2.15rem !important;
  }

  .et_pb_section_2 .et_pb_text_2 .et_pb_text_inner {
    padding: 28px !important;
  }
}

@media (max-width: 767px) {
  .et_pb_section_1,
  .et_pb_section_2 {
    padding: 48px 0 !important;
  }

  .et_pb_section_1 {
    padding-bottom: 24px !important;
  }

  .et_pb_section_2 {
    padding-top: 24px !important;
  }

  .et_pb_section_1 .et_pb_text_1 .et_pb_text_inner,
  .et_pb_section_2 .et_pb_text_2 .et_pb_text_inner {
    padding: 22px !important;
  }

  .et_pb_section_1 .et_pb_text_1 h4 {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    padding-left: 20px !important;
  }

  .et_pb_section_1 .et_pb_text_1 p {
    font-size: 1.05rem !important;
    line-height: 1.55 !important;
  }

  .et_pb_section_2 .wpcf7 .column-half3,
  .et_pb_section_2 .wpcf7 .column-full,
  .et_pb_section_2 .wpcf7 form > div[style*="padding"] {
    flex: 0 0 100% !important;
    width: 100% !important;
  }

  .et_pb_section_2 .wpcf7 input[type="text"],
  .et_pb_section_2 .wpcf7 input[type="email"],
  .et_pb_section_2 .wpcf7 input[type="tel"],
  .et_pb_section_2 .wpcf7 input[type="date"],
  .et_pb_section_2 .wpcf7 textarea,
  .et_pb_section_2 .wpcf7 select {
    font-size: 1rem !important;
    min-height: 52px !important;
  }

  .et_pb_section_2 .wpcf7 .wpcf7-radio,
  .et_pb_section_2 .wpcf7 .wpcf7-checkbox {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .et_pb_section_2 .wpcf7 .wpcf7-list-item label {
    width: 100% !important;
    border-radius: 1rem !important;
  }

  .et_pb_section_2 .wpcf7 input[type="submit"] {
    width: 100% !important;
  }
}