/* =========================================================
   Form Section — base styles mirror subpage-hero Alt-1
   ========================================================= */

.form-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    margin-bottom: 0;
    padding-top: 200px;
    padding-bottom: 150px;
    background-color: #144C55;
    z-index: 1;
}

/* SVG Background Pattern */
.form-section__svg-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: auto;
    z-index: 1;
    opacity: 0.15;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.form-section__svg-background svg {
    width: 100%;
    height: auto;
    display: block;
}

.form-section .container {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: end;
    width: 100%;
    max-width: 1640px;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
}

.form-section__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 3;
    width: 100%;
    color: #fff;
}

/* =========================================================
   Typography — exact match to subpage-hero
   ========================================================= */

.form-section__subtitle {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 27.5px;
    font-weight: 200;
    color: #AFC8CA;
    margin-bottom: 1rem;
    margin-top: 0;
    width: 100%;
}

.form-section__title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 116px;
    line-height: 1.2;
    font-weight: 600;
    color: #F5F5F5;
    margin-bottom: 3rem;
    margin-top: 0;
    width: 100%;
    text-wrap: balance;
}

.form-section__text {
    font-family: 'DM Sans', sans-serif;
    font-size: 19px;
    line-height: 1.4;
    color: #FFF;
    max-width: 100%;
}

.form-section__button-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 2rem;
}

.form-section__button {
    display: inline-block;
    background-color: #144C55;
    color: #FFF !important;
    border-radius: 50px;
    padding: 10px 30px;
    min-width: 270px;
    text-align: center;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.form-section__button:hover,
.form-section__button:focus {
    background-color: #FFF;
    color: #144C55 !important;
}

/* =========================================================
   Two-column inner layout (form-section specific)
   ========================================================= */

.form-section__inner {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    width: 100%;
}

.form-section__text-col {
    flex: 0 0 50%;
    max-width: 50%;
}

.form-section__form-col {
    flex: 1;
    min-width: 0;
}

/* Fallback */
.form-section__fallback {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-family: 'DM Sans', sans-serif;
    padding: 20px 0;
}

/* =========================================================
   Formidable Forms overrides
   ========================================================= */

.form-section .frm_forms {
    margin: 0;
}

/* Labels — white, paragraph text styling */
.form-section .frm_primary_label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.4;
    color: #FFF;
    margin-bottom: 8px;
}

.form-section .frm_required {
    color: #FFF;
    margin-left: 2px;
}

/* Inputs — #F5F5F5 background, 10px rounded */
.form-section .frm_form_field input:not([type="submit"]):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.form-section .frm_form_field textarea,
.form-section .frm_form_field select {
    width: 100%;
    padding: 12px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    background-color: #F5F5F5;
    color: #144C55;
    border: 2px solid transparent;
    border-radius: 25px;
    outline: none;
    transition: border-color 300ms ease, box-shadow 300ms ease;
    appearance: none;
}

.form-section .frm_form_field input:not([type="submit"]):not([type="hidden"]):focus,
.form-section .frm_form_field textarea:focus,
.form-section .frm_form_field select:focus {
    border-color: #F2EE1A;
    box-shadow: 0 0 0 3px rgba(242, 238, 26, 0.2);
}

.form-section .frm_form_field input::placeholder,
.form-section .frm_form_field textarea::placeholder {
    color: rgba(20, 76, 85, 0.45);
    opacity: 1;
}

.form-section .frm_form_field textarea {
    min-height: 130px;
    resize: vertical;
    border-radius: 15px;
}

/* Submit button — white bg, #377679 text, base site button style */
.form-section .frm_submit {
    text-align: left;
    margin-top: 0px;
    width: 100%;
}

.frm-cf-turnstile{
    margin-top: 20px;
}

.form-section .frm_submit .frm_button_submit,
.form-section .frm_submit button[type="submit"],
.form-section .frm_submit input[type="submit"] {
    display: inline-block;
    background-color: #FFF;
    color: #377679 !important;
    border: none;
    border-radius: 50px;
    padding: 10px 30px;
    min-width: 270px;
    text-align: center;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 17px;
    font-weight: 500;
    box-shadow: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: auto;
}

.form-section .frm_submit .frm_button_submit:hover,
.form-section .frm_submit button[type="submit"]:hover,
.form-section .frm_submit input[type="submit"]:hover {
    background-color: #377679;
    color: #FFF !important;
}

/* Validation & error messages — white */
.form-section .frm_error_style,
.form-section .frm_error,
.form-section .frm_form_field .frm_error {
    color: #FFF;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    margin-top: 6px;
}

.form-section .frm_message {
    padding: 16px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    margin-bottom: 20px;
}

/* Turnstile captcha label */
.form-section .frm-cf-turnstile ~ *,
.form-section #frm_field_15_container .frm_primary_label {
    color: #FFF;
}

/* Hide honeypot field */
.form-section #frm_field_16_container {
    display: none !important;
}

/* =========================================================
   Responsive — mirrors subpage-hero breakpoints exactly
   ========================================================= */

@media (max-width: 1440px) {
    .form-section {
        padding-bottom: 150px;
    }

    .form-section__subtitle {
        font-size: 24px;
    }

    .form-section__title {
        font-size: 95px;
    }

    .form-section__text {
        font-size: 19px;
    }
}

@media (max-width: 1194px) {
    .form-section__button {
        font-size: 16px;
        padding: 9px 28px;
    }

    .form-section__title {
        font-size: 80px;
    }

    .form-section__text {
        font-size: 17px;
    }

    .form-section__inner {
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .form-section {
        padding-top: 170px;
        padding-bottom: 80px;
    }

    .form-section .container {
        align-items: stretch;
    }

    .form-section__svg-background {
        width: 700px;
    }

    .form-section__inner {
        flex-direction: column;
        gap: 50px;
    }

    .form-section__text-col,
    .form-section__form-col {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .form-section .container {
        padding-left: 30px;
        padding-right: 30px;
    }

    .form-section {
        min-height: 560px;
        padding-top: 131px;
        padding-bottom: 80px;
    }

    .form-section__subtitle {
        font-size: 20px;
    }

    .form-section__title {
        font-size: max(7.5vw, 40px);
        margin-bottom: 1.5rem;
    }

    .form-section__text {
        font-size: 16px;
    }

    .form-section__button {
        font-size: 15px;
        padding: 8px 24px;
    }

    .form-section__svg-background {
        width: 500px;
    }

    .form-section .frm_primary_label {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .form-section__button {
        font-size: 14px;
        padding: 9px 22px;
    }

    .form-section__svg-background {
        width: 350px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .form-section__button,
    .form-section .frm_submit button,
    .form-section .frm_submit input[type="submit"] {
        transition: none;
    }
}
