.gff-section {
    background: #003C4C !important;
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

.gff-section .form-inner {
    max-width: 720px !important;
    margin: 0 auto !important;
}

.gff-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px !important;
    text-align: center;
}

.gff-subtitle {
    display: block;
    color: #7DB6C6;
    font-family: Roboto, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gff-title {
    color: #fff;
    font-family: Roboto, sans-serif;
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 !important;
    letter-spacing: -0.5px;
}

.gff-paragraph {
    color: rgba(255, 255, 255, 0.70);
    font-family: Lora, serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 !important;
}

/* Form Card */
.gff-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 40px !important;
    /* Tighter vertical padding */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gff-below {
    text-align: center;
    margin-top: 32px !important;
    color: rgba(255, 255, 255, 0.60);
    font-family: Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.gff-below a,
.gff-below a:visited {
    color: #7DB6C6;
    text-decoration: none !important;
}

.gff-below a:hover {
    text-decoration: underline !important;
}

/* OVERRIDES FOR GRAVITY FORMS - CLEAN UX/UI */

.gff-section .gform_wrapper {
    margin: 0 !important;
}

.gff-section .gform_wrapper ul.gform_fields {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    /* Tighter fields gap */
    list-style: none !important;
}

.gff-section .gform_wrapper ul.gform_fields li.gfield {
    width: 100% !important;
    margin: 0 !important;
}

/* Side-by-side structure for complex fields */
.gff-section .gform_wrapper .ginput_complex {
    display: flex !important;
    gap: 12px !important;
    width: 100% !important;
}

.gff-section .gform_wrapper .ginput_complex span {
    flex: 1 !important;
    min-width: 0;
}

/* Style the sub-labels (First, Last) so they are visible and clean */
.gff-section .gform_wrapper .ginput_complex label,
.gff-section .gform_wrapper .name_first label,
.gff-section .gform_wrapper .name_last label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #7C8893 !important;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
}

/* Labels */
.gff-section .gform_wrapper .gfield_label,
.gff-section .gform_wrapper label.gfield_label {
    display: block !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: Roboto, sans-serif !important;
    color: #003C4C !important;
    margin-bottom: 4px !important;
    /* Bring inputs closer to labels */
}

/* Required Asterisk */
.gff-section .gform_wrapper .gfield_required,
.gff-section .gform_wrapper .gf_required {
    color: #1E8FAF !important;
    /* Brand Teal */
    font-size: 13px !important;
    margin-left: 4px !important;
    font-weight: 500 !important;
}

/* Optional description or instructions under label */
.gff-section .gform_wrapper .gfield_description {
    color: #7C8893 !important;
    font-weight: 400 !important;
    font-size: 13px !important;
    font-family: Roboto, sans-serif !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* Form Inputs */
.gff-section .gform_wrapper input[type="text"],
.gff-section .gform_wrapper input[type="email"],
.gff-section .gform_wrapper input[type="tel"],
.gff-section .gform_wrapper input[type="number"],
.gff-section .gform_wrapper textarea,
.gff-section .gform_wrapper select {
    width: 100% !important;
    height: 44px !important;
    /* Highly compact height */
    padding: 0 14px !important;
    border: 1.5px solid #D1DAE0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-family: Roboto, sans-serif !important;
    color: #003C4C !important;
    background-color: #F7F8FB !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    line-height: calc(44px - 3px) !important;
}

/* Explicit rule for select dropdown text */
.gff-section .gform_wrapper select {
    color: #003C4C !important;
}

.gff-section .gform_wrapper select option {
    color: #003C4C !important;
    background-color: #fff !important;
}

/* Ensure textarea can expand and has logical padding */
.gff-section .gform_wrapper textarea {
    height: auto !important;
    min-height: 100px !important;
    padding: 16px !important;
}

/* Custom Dropdown Arrow */
.gff-section .gform_wrapper select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231E8FAF' 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") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px !important;
    padding-right: 48px !important;
    /* Ensures text doesn't overlap arrow */
    cursor: pointer;
}

/* Field Focus States - Important for Accessibility and UX */
.gff-section .gform_wrapper input:focus,
.gff-section .gform_wrapper select:focus,
.gff-section .gform_wrapper textarea:focus {
    outline: none !important;
    border-color: #1E8FAF !important;
    box-shadow: 0 0 0 4px rgba(30, 143, 175, 0.1) !important;
    background: #fff !important;
}

/* Form Footer / Submit Area */
.gff-section .gform_wrapper .gform_footer,
.gff-section .gform_wrapper .gform_page_footer {
    margin-top: 8px !important;
    padding: 0 !important;
}

/* Submit Button */
.gff-section .gform_wrapper .gform_footer input[type="submit"],
.gff-section .gform_wrapper .gform_footer button[type="submit"],
.gff-section .gform_wrapper .gform_page_footer input[type="submit"],
.gff-section .gform_wrapper .gform_page_footer button[type="submit"] {
    width: 100% !important;
    padding: 16px !important;
    background: #1E8FAF !important;
    color: #fff !important;
    border: none !important;
    border-radius: 30px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    font-family: Roboto, sans-serif !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
}

/* Hover effect for Submit Button */
.gff-section .gform_wrapper .gform_footer input[type="submit"]:hover,
.gff-section .gform_wrapper .gform_footer button[type="submit"]:hover {
    background: #197a94 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 143, 175, 0.25) !important;
}

/* Validation Message */
.gff-section .gform_wrapper .validation_message,
.gff-section .gform_wrapper .gfield_validation_message {
    color: #D63031 !important;
    font-family: Roboto, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-top: 6px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Form Reassurance (Trust message) */
.form-reassurance {
    display: block !important;
    margin-top: 20px !important;
    padding-top: 16px !important;
    border-top: 1px solid #EEF2F5 !important;
    color: #7C8893 !important;
    font-family: Lora, serif !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

.form-reassurance strong {
    color: #425466 !important;
    font-family: Roboto, sans-serif !important;
    font-weight: 600 !important;
}

/* Responsive Overrides */
@media screen and (max-width: 680px) {
    .gff-card {
        padding: 32px 24px !important;
    }

    .gff-section .gform_wrapper .ginput_complex {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .form-reassurance {
        font-size: 13px;
        margin-top: 24px;
        padding-top: 20px;
    }
}

@media screen and (max-width: 480px) {
    .gff-section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .gff-card {
        padding: 24px 16px !important;
        border-radius: 12px;
    }
}