/* ========================================
   KOMPA — Hero Forms Styling
   Scope: ONLY forms inside .hero-form wrapper
   Applies to: GF Form 10 (plate/reg field) + GF Form 17 (dropdown)
   Layout: field + button inline on desktop, stacked on mobile
   Source: Migrated from Customizer → Additional CSS
   ======================================== */

.hero-form .gform_wrapper form {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-end !important;
    gap: 15px !important;
    padding: 0 !important;
    background: transparent !important;
    max-width: 100% !important;
}

.hero-form .gform_wrapper .gform_body {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.hero-form .gform_wrapper .gform_footer,
.hero-form .gform_wrapper .gform_page_footer {
    flex: 0 0 auto !important;
    width: auto !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: flex-end !important;
}

.hero-form .gform_wrapper .gfield {
    width: 100% !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
    clear: none !important;
}

.hero-form .gform_wrapper .gfield_label {
    margin-bottom: 10px !important;
}

.hero-form .gform_wrapper .gfield_description,
.hero-form .gform_wrapper .gsection_description {
    margin-top: 8px !important;
}

.hero-form .gform_wrapper .ginput_container,
.hero-form .gform_wrapper input[type="text"],
.hero-form .gform_wrapper input[type="email"],
.hero-form .gform_wrapper input[type="tel"],
.hero-form .gform_wrapper input[type="url"],
.hero-form .gform_wrapper input[type="number"],
.hero-form .gform_wrapper input[type="date"],
.hero-form .gform_wrapper textarea,
.hero-form .gform_wrapper select {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Form 10: plate/registration — side-by-side sub-fields */
.hero-form #gform_wrapper_10 .ginput_complex {
    display: flex !important;
    width: 100% !important;
    gap: 15px !important;
}

.hero-form #gform_wrapper_10 .ginput_complex > span {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

/* Form 17: dropdown */
.hero-form #gform_wrapper_17 .ginput_container_select {
    width: 100% !important;
}

.hero-form #gform_wrapper_17 .gform_footer {
    padding-bottom: 20px !important;
}

/* Submit Button */
.hero-form .gform_wrapper input[type="submit"],
.hero-form .gform_wrapper button,
.hero-form .gform_wrapper .gform_button,
.hero-form .gform_wrapper .gform_submit_button {
    width: auto !important;
    min-width: 180px !important;
    height: 60px !important;
    padding: 0 30px !important;
    margin: 0 !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* -------------------------
   Mobile: stack field + button
   ------------------------- */
@media (max-width: 768px) {
    .hero-form .gform_wrapper form {
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: wrap !important;
    }

    .hero-form .gform_wrapper .gform_body,
    .hero-form .gform_wrapper .gform_footer,
    .hero-form .gform_wrapper .gform_page_footer {
        width: 100% !important;
        flex: 1 1 100% !important;
    }

    .hero-form .gform_wrapper input[type="submit"],
    .hero-form .gform_wrapper button,
    .hero-form .gform_wrapper .gform_button,
    .hero-form .gform_wrapper .gform_submit_button {
        width: 100% !important;
        min-width: 0 !important;
    }

    .hero-form #gform_wrapper_10 .ginput_complex {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .hero-form .gform_wrapper .ginput_container input {
        width: 100% !important;
        min-width: 100% !important;
    }

    .hero-form .gform_wrapper .gform_footer {
        margin-top: 15px !important;
    }

    #gform_wrapper_17 .gfield {
        margin-bottom: 5px !important;
    }

    .hero-form #gform_wrapper_17 .gform_footer {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 5px !important;
    }

    #gform_wrapper_17 .ginput_container_select {
        margin-bottom: 0 !important;
    }
}
