/* ==========================================================================
   Survey / Form Section
   ========================================================================== */

.survey-form-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.survey-form-section__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 70px 20px;
  box-shadow: 0px 34px 34px 1px rgba(0,0,0,0.07);
  background-image: url('../../images/bg-Survey.png');
  background-position: center center;
  background-size: cover;
  border-top: 4px solid var(--clr-green);
}

.survey-form-section__title {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-black);
  text-align: center;
  margin-bottom: 0;
}

.survey-form-section__description {
  font-weight: 400;
  line-height: 1.7;
  color: var(--clr-black);
  text-align: center;
  max-width: 800px;
}

.survey-form-section__description p {
  margin: 0;
}

/* Form wrapper card styling */
.survey-form-section__form-wrapper {
  background-color: var(--clr-white);
  padding: 60px 60px;
  border: 1px solid var(--clr-green);
  box-shadow: 0px 4px 44px 0px rgba(0, 0, 0, 0.09);
  width: 100%;
  max-width: 960px;
  margin-top: 10px;
}

/* Gravity Forms overrides inside this section */
.survey-form-section__form-wrapper .gform_wrapper {
  margin: 0;
}

/* ── Progress Bar ── */
/* Hide default GF progress bar wrapper styles */
.survey-form-section__form-wrapper .gf_progressbar_wrapper {
  margin-bottom: 28px;
}

/* Step label: "STEP 01 OF 02" */
.survey-form-section__form-wrapper .gf_progressbar_title {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
}

/* Override GF's default step text with "STEP XX OF YY" via JS-friendly approach */
/* Track: thin gray line */
.survey-form-section__form-wrapper .gf_progressbar {
  background-color: #e0e0e0;
  height: 4px;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
}

/* Fill: green */
.survey-form-section__form-wrapper .gf_progressbar_percentage {
  background-color: var(--clr-green) !important;
  height: 4px;
  border-radius: 0;
}

/* Hide the percentage number inside the bar */
.survey-form-section__form-wrapper .gf_progressbar_percentage span {
  display: none;
}

/* ── Radio Button Grid (card style) ── */
.survey-form-section__form-wrapper .gfield--type-radio .gfield_radio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.survey-form-section__form-wrapper .gfield--type-radio .gchoice {
  margin: 0;
}

.survey-form-section__form-wrapper .gfield--type-radio .gchoice label {
  padding: 14px 20px;
  border: 1px solid var(--clr-border-gray);
  background-color: var(--clr-white);
  font-family: var(--font-secondary);
  color: var(--clr-black);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  text-align: center;
  line-height: 1.3;
  box-sizing: border-box;
  min-height: 80px;
  margin: 0px;width: 100% !important;max-width: 100% !important;display: flex !important;align-items: center !important;justify-content: center !important;font-size: 18px;font-weight: 400;
}

.survey-form-section__form-wrapper .gfield--type-radio .gchoice label:hover {
  border-color: var(--clr-green);
}

/* Hide native radio input */
.survey-form-section__form-wrapper .gfield--type-radio .gchoice input[type="radio"] {
  display: none;
}

/* Selected state */
.survey-form-section__form-wrapper .gfield--type-radio .gchoice input[type="radio"]:checked + label {
  border-color: var(--clr-green);
  background-color: rgb(125,219,34,0.2);
  color: var(--clr-green);
  font-weight: 700;
}

/* ── Field label (question text) ── */
.survey-form-section__form-wrapper .gfield_label {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
  color: var(--clr-black);
  margin-bottom: 16px;
  display: block;
}

/* ── Navigation Buttons ── */
.survey-form-section__form-wrapper .gform_wrapper input[type="submit"],
.survey-form-section__form-wrapper .gform_wrapper .gform_next_button,
.survey-form-section__form-wrapper .gform_wrapper button[type="submit"] {
  background-color: var(--clr-green) !important;
  color: var(--clr-black) !important;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 16px 40px;
  border: 1px solid var(--clr-green) !important;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
  min-width: 140px;
}

.survey-form-section__form-wrapper .gform_wrapper input[type="submit"]:hover,
.survey-form-section__form-wrapper .gform_wrapper .gform_next_button:hover,
.survey-form-section__form-wrapper .gform_wrapper button[type="submit"]:hover {
  background-color: transparent !important;
  color: var(--clr-green) !important;
}

.survey-form-section__form-wrapper .gform_wrapper .gform_previous_button {
  background-color: var(--clr-black) !important;
  color: var(--clr-white) !important;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 16px 40px;
  border: 1px solid var(--clr-black) !important;
  cursor: pointer;
  border-radius: 0;
  min-width: 140px;
  transition: all 0.3s ease;
}

.survey-form-section__form-wrapper .gform_wrapper .gform_previous_button:hover {
  background-color: transparent !important;
  color: var(--clr-black) !important;
}

/* Button row layout */
.survey-form-section__form-wrapper .gform_page_footer,
.survey-form-section__form-wrapper .gform_footer {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding: 0;
  border: none;
}

/* ── Format step label to STEP 01 OF 02 style via attr trick ── */
/* We'll handle this via JS in custom.js */

.gform-theme--framework .gf_progressbar_wrapper {display: flex;flex-direction: column-reverse;gap: 46px;margin-bottom: 8px !important;}
.gform-theme--framework .gf_progressbar_wrapper p.gf_progressbar_title {font-size: 16px;color: #7DDB22 !important;font-weight: bold;margin-bottom: 0px;}
.gform_fields .gfield legend.gfield_label.gform-field-label {font-size: 26px;font-weight: 600 !important;margin-bottom: 40px;font-family: var(--font-primary);}

.gform-theme--framework .gfield.operation-choice .gfield_radio {display: grid;grid-template-columns: repeat(4, 1fr);}
.gform-theme--framework .gfield.operation-choice .gfield_radio .gchoice {display: block;}
.gform_fields .gfield legend.gfield_label.gform-field-label span.gfield_required {display: none;}
.gform-theme--framework .gfield.operation-choice .gfield_radio .gchoice:last-child {grid-column: span 2;}
.gform-page-footer.gform_page_footer.top_label {display: flex;align-items: center;justify-content: space-between;margin-top: 50px;}
.survey-form-section__form-wrapper .gform_wrapper .gform-page-footer.gform_page_footer .gform_next_button{margin-left: auto !important;}
.survey-form-section__form-wrapper .gform_wrapper .gform-page-footer.gform_page_footer .button {width: calc(50% - 10px) !important;border-radius: 0px !important;font-size: 16px !important;text-transform: uppercase !important;min-height: 65px !important;letter-spacing: 1.6px !important;font-weight: 600 !important;}
.gform-theme--framework .gfield.insurance-choice .gfield_radio {display: grid;grid-template-columns: repeat(3, 1fr);}
.gfield.insurance-choice .gfield_radio .gchoice {display: block;}
.gform-theme--foundation #gform_page_1_3 .gform_page_fields .gform_fields {row-gap: 20px !important;}
.gform-theme--foundation #gform_page_1_3 .gform_page_fields .gform_fields .gfield--type-html {font-size: 26px;font-weight: 600;}
.gform-theme--foundation .gform_page_fields .gform_fields .gfield_label,
.gform-theme--framework .field_sublabel_above .gform-field-label--type-sub {font-size: 16px;margin: 0px;font-weight: 500;color: #000;}
.gform-theme--foundation .gform_page_fields input {border-radius: 0px !important;padding: 10px 20px;min-height: 60px !important;font-size: 16px !important;}
.gform-theme--foundation .gform_page_fields .gform_fields .gfield_label span.gfield_required {display: none;}
body section .gform-page-footer.gform_page_footer.top_label .gform-loader{display: none !important;}
/* Responsive */

@media (max-width: 1024px) {
  .survey-form-section__title {
    font-size: 40px;
  }
  .survey-form-section__form-wrapper {
    padding: 40px;
  }
  .survey-form-section__form-wrapper .gfield--type-radio .gchoice label{min-height: 60px; font-family: var(--font-secondary);}
  .survey-form-section__inner{padding: 40px 20px;}
}

@media (max-width: 768px) {
  .gform-theme--framework .gfield.operation-choice .gfield_radio{grid-template-columns: repeat(2, 1fr) !important;}
  .gform-theme--framework .gfield.operation-choice .gfield_radio .gchoice:last-child {grid-column: span 2 !important;}

  .gform-theme--framework .gfield.insurance-choice .gfield_radio{grid-template-columns: repeat(1, 1fr) !important;}

  .survey-form-section__title {
    font-size: 32px;
  }
  .survey-form-section__description {
    font-size: 16px;
    line-height: 28px;
  }
  .survey-form-section__form-wrapper {
    padding: 30px 20px;
  }
  .gform-theme--foundation #gform_page_1_3 .gform_page_fields .gform_fields{row-gap: 12px !important;}
	.survey-form-section__form-wrapper .gfield--type-radio .gchoice label {font-size: 16px;padding: 10px;}
}

@media (max-width: 480px) {
  .gform-page-footer.gform_page_footer.top_label {flex-direction: column;}
  .survey-form-section__form-wrapper .gform_wrapper .gform-page-footer.gform_page_footer .button {width: 100% !important;}
}
