/**
 * Solar Qualification Form Block Styles
 * Multi-step form with orange border, progress indicator, and contextual images
 */

/* Override Gravity Forms CSS variable for icon font family */
.solar-qualification-form .gform_wrapper,
.solar-qualification-form .gform-theme,
.solar-qualification-form .gform-theme--framework {
    --gf-icon-font-family: 'Urbano', sans-serif !important;
}

/* Ultra-high specificity override for Gravity Forms framework buttons */
.solar-qualification-form .gform-theme.gform-theme--framework.gform_wrapper .button::after,
.solar-qualification-form .gform-theme.gform-theme--framework.gform_wrapper .button::before,
.solar-qualification-form .gform-theme.gform-theme--framework.gform_wrapper .gform-theme-button::after,
.solar-qualification-form .gform-theme.gform-theme--framework.gform_wrapper .gform-theme-button::before,
.solar-qualification-form .gform-theme.gform-theme--framework.gform_wrapper button::after,
.solar-qualification-form .gform-theme.gform-theme--framework.gform_wrapper button::before,
.solar-qualification-form .gform-theme.gform-theme--framework.gform_wrapper input[type="button"]::after,
.solar-qualification-form .gform-theme.gform-theme--framework.gform_wrapper input[type="button"]::before,
.solar-qualification-form .gform-theme.gform-theme--framework.gform_wrapper .gform_button_select_files::after,
.solar-qualification-form .gform-theme.gform-theme--framework.gform_wrapper .gform_button_select_files::before {
    font-family: 'Urbano', sans-serif !important;
}

/* Base block styles */
.solar-qualification-form {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(180deg, #E8F3F8 0%, #F5FAFE 50%, #FFFFFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Urbano', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Background image container */
.solar-qualification-form__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.solar-qualification-form__bg-image {
    width: 1920px;
    height: 500px;
    background: transparent linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 40%, rgba(255, 255, 255, 0.4) 70%, rgba(255, 255, 255, 0.2) 100%) 0% 0% no-repeat padding-box;
    opacity: 0.6;
    margin: 0 auto;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 1) 30%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 1) 30%);
}

.solar-qualification-form__container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.solar-qualification-form__title {
    font-family: 'Urbano', sans-serif;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    color: #000000;
    margin: 0 0 50px 0;
}

.solar-qualification-form__content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
}

/* Two-column layout when contextual image is present */
.solar-qualification-form__content--two-column {
    max-width: 1200px;
    display: flex;
    gap: 40px;
    align-items: stretch;
    justify-content: center;
}

/* Contextual Image - animates in from the left */
.solar-qualification-form__contextual-image {
    width: 450px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #FFFFFF;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

/* Animation when image appears (going forward) */
.solar-qualification-form__contextual-image.animate-in {
    animation: slideInFromLeft 0.5s ease-out;
}

/* Animation when image disappears (going back) */
.solar-qualification-form__contextual-image.animate-out {
    animation: slideOutToLeft 0.5s ease-out;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutToLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50px);
    }
}

.solar-qualification-form__contextual-image img {
    width: 100%;
    height: 100%;
    flex: 1;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

/* Form wrapper animation when image appears (going forward) */
.solar-qualification-form__content--two-column .solar-qualification-form__form-wrapper.animate-push {
    animation: slideFromCenter 0.5s ease-out;
}

/* Form wrapper animation when image disappears (going back) */
.solar-qualification-form__form-wrapper.animate-return {
    animation: slideToCenter 0.5s ease-out;
}

@keyframes slideFromCenter {
    from {
        transform: translateX(-225px);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideToCenter {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-225px);
    }
}

/* Form wrapper styles */
.solar-qualification-form__form-wrapper {
    background: #FFFFFF !important;
    border: 10px solid #F18F1C !important;
    border-radius: 30px !important;
    padding: 45px 60px !important;
    padding-bottom: 90px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    max-width: 750px !important;
    margin: 0 auto !important;
    min-height: 435px !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
}

/* Override Gravity Forms default styles */
.solar-qualification-form .gform_wrapper {
    margin: 0;
}

.solar-qualification-form .gform_wrapper form {
    margin: 0;
}

.solar-qualification-form .gform_body {
    margin: 0;
}

.solar-qualification-form .gform_fields {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Progress bar styling */
.solar-qualification-form .gf_progressbar_wrapper {
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
    display: block !important;
    visibility: visible !important;
}

/* Step indicator text */
.solar-qualification-form .gf_progressbar_wrapper h3.gf_progressbar_title,
.solar-qualification-form .gf_progressbar_title {
    text-align: center !important;
    font-family: 'Urbano', sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #666666 !important;
    margin: 0 0 15px 0 !important;
    display: block !important;
    visibility: visible !important;
}

.solar-qualification-form .gf_progressbar {
    background: #E8E8E8 !important;
    height: 6px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    margin: 0 auto !important;
    max-width: 300px !important;
    display: block !important;
    visibility: visible !important;
}

.solar-qualification-form .gf_progressbar_percentage {
    background: #F18F1C !important;
    height: 100% !important;
    transition: width 0.3s ease !important;
    border-radius: 10px !important;
    display: block !important;
}

/* Hide the progress percentage numbers */
.solar-qualification-form .gf_progressbar_percentage.percentbar_0:after,
.solar-qualification-form .gf_progressbar_percentage.percentbar_blue:after,
.solar-qualification-form .gf_progressbar_percentage:after {
    display: none !important;
    content: none !important;
}

/* Hide progress bar and steps on pages with contextual images */
.solar-qualification-form__content--two-column .gf_progressbar_wrapper {
    display: none !important;
}

/* Form heading/title within pages (Questions/Legend) */
.solar-qualification-form .gform_page .gform_page_fields .gsection .gsection_title,
.solar-qualification-form .gfield_label,
.solar-qualification-form .gform_wrapper .gfield_label,
.solar-qualification-form legend.gfield_label {
    font-family: 'Urbano', sans-serif !important;
    font-size: 36px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    color: #000000 !important;
    text-align: center !important;
    margin: 0 0 30px 0 !important;
    display: block !important;
}

/* Ensure legend is styled properly */
.solar-qualification-form legend {
    font-family: 'Urbano', sans-serif !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    color: #000000 !important;
    text-align: center !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
}

/* Radio button fields - Higher specificity to override gravity-forms-custom.css */
.solar-qualification-form .gform_wrapper .gfield_radio,
.solar-qualification-form .gfield_radio {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 50% !important;
}

/* Wider radio buttons for fields with wider-choices class */
.solar-qualification-form .gform_wrapper .wider-choices .gfield_radio,
.solar-qualification-form .wider-choices .gfield_radio {
    width: 80% !important;
}

.solar-qualification-form .gform_wrapper .gfield_radio li,
.solar-qualification-form .gfield_radio li,
.solar-qualification-form .gfield--type-choice .gchoice,
.solar-qualification-form .gform-theme--framework .gfield--type-choice .gchoice {
    margin: 0 !important;
    list-style: none !important;
    width: 100% !important;
    display: flex !important;
}

.solar-qualification-form .gform_wrapper .gfield_radio input[type="radio"],
.solar-qualification-form .gfield_radio input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    cursor: pointer !important;
    pointer-events: none !important;
}

.solar-qualification-form .gform_wrapper .gfield_radio label,
.solar-qualification-form .gfield_radio label {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 46px !important;
    padding: 11px 20px 11px 50px !important;
    background: #F0F0F0 !important;
    border: 2px solid transparent !important;
    border-radius: 50px !important;
    font-family: 'Urbano', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: #000000 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    text-align: left !important;
    flex: 1 !important;
}

.solar-qualification-form .gform_wrapper .gfield_radio label:before,
.solar-qualification-form .gfield_radio label:before {
    content: '' !important;
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #D0D0D0 !important;
    border-radius: 50% !important;
    background: #FFFFFF !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.solar-qualification-form .gform_wrapper .gfield_radio input[type="radio"]:checked + label,
.solar-qualification-form .gfield_radio input[type="radio"]:checked + label {
    background: #FFFFFF !important;
    border-color: #F18F1C !important;
    border-width: 2px !important;
}

.solar-qualification-form .gform_wrapper .gfield_radio input[type="radio"]:checked + label:before,
.solar-qualification-form .gfield_radio input[type="radio"]:checked + label:before {
    border-color: #396AFC !important;
    border-width: 6px !important;
    background: #FFFFFF !important;
    box-shadow: none !important;
}

.solar-qualification-form .gform_wrapper .gfield_radio label:hover,
.solar-qualification-form .gfield_radio label:hover {
    background: #E8E8E8 !important;
}

/* Text input fields */
.solar-qualification-form input[type="text"],
.solar-qualification-form input[type="email"],
.solar-qualification-form input[type="tel"],
.solar-qualification-form input[type="number"],
.solar-qualification-form textarea,
.solar-qualification-form .gform_wrapper input[type="text"],
.solar-qualification-form .gform_wrapper input[type="email"],
.solar-qualification-form .gform_wrapper input[type="tel"],
.solar-qualification-form .gform_wrapper input[type="number"],
.solar-qualification-form .gform_wrapper textarea {
    width: 100% !important;
    padding: 10px 18px !important;
    background: #F5F5F5 !important;
    border: 2px solid transparent !important;
    border-radius: 8px !important;
    font-family: 'Urbano', sans-serif !important;
    font-size: 14px !important;
    color: #000000 !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.solar-qualification-form input[type="text"]:focus,
.solar-qualification-form input[type="email"]:focus,
.solar-qualification-form input[type="tel"]:focus,
.solar-qualification-form input[type="number"]:focus,
.solar-qualification-form textarea:focus {
    background: #FFFFFF !important;
    border-color: #F18F1C !important;
    outline: none !important;
}

/* Select/Dropdown fields */
.solar-qualification-form select,
.solar-qualification-form .gform_wrapper select,
.solar-qualification-form .ginput_container select {
    width: 100% !important;
    padding: 10px 18px !important;
    background: #F5F5F5 !important;
    border: 2px solid transparent !important;
    border-radius: 8px !important;
    font-family: 'Urbano', sans-serif !important;
    font-size: 14px !important;
    color: #000000 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.solar-qualification-form select:hover,
.solar-qualification-form select:focus,
.solar-qualification-form .gform_wrapper select:hover,
.solar-qualification-form .gform_wrapper select:focus {
    background: #FFFFFF !important;
    border-color: #F18F1C !important;
    outline: none !important;
}

/* Ensure all paragraph text is consistent */
.solar-qualification-form p,
.solar-qualification-form .gform_wrapper p,
.solar-qualification-form .validation_message {
    font-family: 'Urbano', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Radio button field description styling */
.solar-qualification-form .gfield--type-radio .gfield_description {
    font-family: 'Urbano', sans-serif !important;
    font-size: 20px !important;
    line-height: 1.5 !important;
    text-align: center !important;
    width: 70% !important;
    margin: 0 auto !important;
    margin-bottom: 15px !important;
}

/* Address field specific styling */
/* Add padding to address container */
.solar-qualification-form .gfield--type-address {
    padding-left: 100px !important;
    padding-right: 100px !important;
}

.solar-qualification-form .ginput_container_address label {
    font-family: 'Urbano', sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #000000 !important;
    margin-bottom: 5px !important;
}

.solar-qualification-form .gform_wrapper .ginput_container_address input[type="text"],
.solar-qualification-form .ginput_container_address input[type="text"],
.solar-qualification-form .gform_wrapper .ginput_container_address select,
.solar-qualification-form .ginput_container_address select {
    font-family: 'Urbano', sans-serif !important;
    font-size: 14px !important;
    background: #FFFFFF !important;
    border: 2px solid #CCCCCC !important;
}

.solar-qualification-form .gform_wrapper .ginput_container_address select,
.solar-qualification-form .ginput_container_address select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23F18F1C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    padding: 10px 40px 10px 18px !important;
    line-height: normal !important;
    box-sizing: border-box !important;
    vertical-align: top !important;
}

.solar-qualification-form .gform_wrapper .ginput_container_address input[type="text"]::placeholder,
.solar-qualification-form .ginput_container_address input[type="text"]::placeholder {
    color: #999999 !important;
}

.solar-qualification-form .gform_wrapper .ginput_container_address input[type="text"]:focus,
.solar-qualification-form .ginput_container_address input[type="text"]:focus {
    background: #FFFFFF !important;
    border-color: #F18F1C !important;
}

.solar-qualification-form .gform_wrapper .ginput_container_address select:focus,
.solar-qualification-form .ginput_container_address select:focus {
    background-color: #FFFFFF !important;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23F18F1C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    border-color: #F18F1C !important;
}

/* Contact info fields (name, email, phone) - same styling as address */
/* Add padding to container holding contact info fields */
.solar-qualification-form .gform_fields:has(.gfield--type-text, .gfield--type-email, .gfield--type-phone) {
    padding-left: 100px !important;
    padding-right: 100px !important;
}

/* Fallback for browsers that don't support :has() - apply to all fields container */
@supports not selector(:has(*)) {
    .solar-qualification-form .gform_fields {
        padding-left: 100px !important;
        padding-right: 100px !important;
    }
}

/* Override the main gfield_label styling for individual contact fields */
.solar-qualification-form .gfield--type-text .gfield_label,
.solar-qualification-form .gfield--type-email .gfield_label,
.solar-qualification-form .gfield--type-phone .gfield_label {
    font-family: 'Urbano', sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #000000 !important;
    margin-bottom: 5px !important;
    text-align: left !important;
}

.solar-qualification-form .gform_wrapper .ginput_container_text input[type="text"],
.solar-qualification-form .ginput_container_text input[type="text"],
.solar-qualification-form .gform_wrapper .ginput_container_email input[type="email"],
.solar-qualification-form .ginput_container_email input[type="email"],
.solar-qualification-form .gform_wrapper .ginput_container_phone input[type="tel"],
.solar-qualification-form .ginput_container_phone input[type="tel"] {
    font-family: 'Urbano', sans-serif !important;
    font-size: 14px !important;
    background: #FFFFFF !important;
    border: 2px solid #CCCCCC !important;
}

.solar-qualification-form .gform_wrapper .ginput_container_text input[type="text"]::placeholder,
.solar-qualification-form .ginput_container_text input[type="text"]::placeholder,
.solar-qualification-form .gform_wrapper .ginput_container_email input[type="email"]::placeholder,
.solar-qualification-form .ginput_container_email input[type="email"]::placeholder,
.solar-qualification-form .gform_wrapper .ginput_container_phone input[type="tel"]::placeholder,
.solar-qualification-form .ginput_container_phone input[type="tel"]::placeholder {
    color: #999999 !important;
}

.solar-qualification-form .gform_wrapper .ginput_container_text input[type="text"]:focus,
.solar-qualification-form .ginput_container_text input[type="text"]:focus,
.solar-qualification-form .gform_wrapper .ginput_container_email input[type="email"]:focus,
.solar-qualification-form .ginput_container_email input[type="email"]:focus,
.solar-qualification-form .gform_wrapper .ginput_container_phone input[type="tel"]:focus,
.solar-qualification-form .ginput_container_phone input[type="tel"]:focus {
    background: #FFFFFF !important;
    border-color: #F18F1C !important;
}

/* Consent/Checkbox fields */
.solar-qualification-form .gfield--type-consent,
.solar-qualification-form .gfield--type-checkbox {
    padding-left: 100px !important;
    padding-right: 100px !important;
}

.solar-qualification-form .gfield--type-consent .gfield_label,
.solar-qualification-form .gfield--type-checkbox .gfield_label {
    font-family: 'Urbano', sans-serif !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    color: #000000 !important;
    margin-bottom: 15px !important;
    text-align: left !important;
}

.solar-qualification-form .gfield_consent_description,
.solar-qualification-form .gfield--type-consent .gfield_description,
.solar-qualification-form .gfield--type-checkbox .gfield_description {
    font-family: 'Urbano', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #333333 !important;
    margin-bottom: 15px !important;
    text-align: left !important;
}

.solar-qualification-form .gfield_consent_description a,
.solar-qualification-form .gfield--type-consent .gfield_description a {
    color: #0072CE !important;
    text-decoration: underline !important;
    transition: color 0.2s ease !important;
}

.solar-qualification-form .gfield_consent_description a:hover,
.solar-qualification-form .gfield--type-consent .gfield_description a:hover {
    color: #005BA8 !important;
}

.solar-qualification-form .ginput_container_consent,
.solar-qualification-form .ginput_container_checkbox {
    margin: 0 !important;
}

.solar-qualification-form .gfield_consent_label,
.solar-qualification-form .gfield_checkbox label,
.solar-qualification-form .gchoice label {
    display: flex !important;
    align-items: flex-start !important;
    font-family: 'Urbano', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    color: #000000 !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
}

.solar-qualification-form .gfield_checkbox,
.solar-qualification-form .ginput_container_consent input[type="checkbox"] + label,
.solar-qualification-form .gfield_consent_label {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide default checkbox */
.solar-qualification-form .ginput_container_consent input[type="checkbox"],
.solar-qualification-form .gfield_checkbox input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    cursor: pointer !important;
    width: 0 !important;
    height: 0 !important;
}

/* Custom checkbox styling */
.solar-qualification-form .ginput_container_consent label:before,
.solar-qualification-form .gfield_checkbox label:before,
.solar-qualification-form .gfield_consent_label:before {
    content: '' !important;
    display: inline-block !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    border: 2px solid #CCCCCC !important;
    border-radius: 4px !important;
    background: #FFFFFF !important;
    margin-right: 12px !important;
    margin-top: 2px !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

/* Checked state */
.solar-qualification-form .ginput_container_consent input[type="checkbox"]:checked + label:before,
.solar-qualification-form .gfield_checkbox input[type="checkbox"]:checked + label:before {
    background: #0072CE !important;
    border-color: #0072CE !important;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='11' viewBox='0 0 14 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5.5L5 9.5L13 1.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Hover state */
.solar-qualification-form .ginput_container_consent label:hover:before,
.solar-qualification-form .gfield_checkbox label:hover:before {
    border-color: #0072CE !important;
}

/* Focus state for accessibility */
.solar-qualification-form .ginput_container_consent input[type="checkbox"]:focus + label:before,
.solar-qualification-form .gfield_checkbox input[type="checkbox"]:focus + label:before {
    outline: 2px solid #F18F1C !important;
    outline-offset: 2px !important;
}

/* Responsive consent styling */
@media (max-width: 991px) {
    .solar-qualification-form .gfield--type-consent,
    .solar-qualification-form .gfield--type-checkbox {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
}

@media (max-width: 767px) {
    .solar-qualification-form .gfield--type-consent,
    .solar-qualification-form .gfield--type-checkbox {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .solar-qualification-form .gfield--type-consent .gfield_label,
    .solar-qualification-form .gfield--type-checkbox .gfield_label {
        font-size: 16px !important;
    }

    .solar-qualification-form .gfield_consent_description,
    .solar-qualification-form .gfield--type-consent .gfield_description,
    .solar-qualification-form .gfield--type-checkbox .gfield_description {
        font-size: 13px !important;
    }

    .solar-qualification-form .gfield_consent_label,
    .solar-qualification-form .gfield_checkbox label {
        font-size: 13px !important;
    }
}

/* File upload fields - Horizontal layout matching design */
.solar-qualification-form .ginput_container_fileupload {
    margin: 30px auto;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
}

.solar-qualification-form input[type="file"] {
    display: none;
}

/* Upload area - inline-flex to create horizontal layout */
.solar-qualification-form .gform_drop_area {
    display: inline-flex !important;
    align-items: center !important;
    gap: 32px !important;
    width: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    position: relative !important;
    cursor: pointer !important;
}

/* Clickable overlay for dashed upload box */
.solar-qualification-form .gform_drop_area .sqf-upload-trigger {
    display: none;
}

.solar-qualification-form .gform_drop_area:before {
    content: 'Upload' !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 132px !important;
    height: 132px !important;
    border: 2px dashed #CCCCCC !important;
    border-radius: 16px !important;
    background: #F4F4F4 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='61.842' height='61.842' viewBox='0 0 61.842 61.842'%3E%3Cg fill='%23000000'%3E%3Cpath d='M14.16,21.07a7.91,7.91,0,1,1,7.91-7.91A7.906,7.906,0,0,1,14.16,21.07Zm0-11.506a3.6,3.6,0,1,0,3.6,3.6A3.6,3.6,0,0,0,14.16,9.565Z' transform='translate(8.132 6.256)'/%3E%3Cpath d='M40.8,63.092H23.542C7.923,63.092,1.25,56.419,1.25,40.8V23.542C1.25,7.923,7.923,1.25,23.542,1.25H35.048a2.157,2.157,0,1,1,0,4.315H23.542c-13.26,0-17.977,4.717-17.977,17.977V40.8c0,13.26,4.717,17.977,17.977,17.977H40.8c13.26,0,17.977-4.717,17.977-17.977V26.418a2.157,2.157,0,1,1,4.315,0V40.8C63.092,56.419,56.419,63.092,40.8,63.092Z' transform='translate(-1.25 -1.25)'/%3E%3Cpath d='M19.407,22.812a2.173,2.173,0,0,1-2.157-2.157V3.4a2.131,2.131,0,0,1,1.323-1.985,2.231,2.231,0,0,1,2.359.46l5.753,5.753a2.156,2.156,0,1,1-3.049,3.049L21.565,8.6V20.654A2.173,2.173,0,0,1,19.407,22.812Z' transform='translate(28.772 -1.239)'/%3E%3Cpath d='M17.4,11.313a2.134,2.134,0,0,1-1.524-.633,2.17,2.17,0,0,1,0-3.049l5.753-5.753A2.156,2.156,0,0,1,24.68,4.927L18.927,10.68A2.133,2.133,0,0,1,17.4,11.313Z' transform='translate(25.024 -1.245)'/%3E%3Cpath d='M4.072,35.56A2.157,2.157,0,0,1,2.864,31.62L17.045,22.1a8.64,8.64,0,0,1,10.211.547l.949.834a4.238,4.238,0,0,0,5.293,0L45.463,13.211a8.589,8.589,0,0,1,10.93,0l4.689,4.027a2.162,2.162,0,0,1-2.819,3.279L53.575,16.49a4.238,4.238,0,0,0-5.293,0L36.317,26.759a8.589,8.589,0,0,1-10.93,0l-.949-.834a4.278,4.278,0,0,0-4.976-.23L5.309,35.215a2.518,2.518,0,0,1-1.237.345Z' transform='translate(0.011 17.509)'/%3E%3C/g%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center 28px !important;
    background-size: 56px 56px !important;
    font-family: 'Urbano', sans-serif !important;
    font-size: 16px !important;
    color: #9A9A9A !important;
    padding-bottom: 18px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    text-align: center !important;
    pointer-events: none !important;
}

/* Hide "Drop files here or" text */
.solar-qualification-form .gform_drop_instructions {
    display: none !important;
}

/* Remove Gravity Forms framework box-shadow */
.solar-qualification-form .gform-theme--framework .gfield:where(.gfield--type-multiselect,.gfield--input-type-multiselect) .chosen-container-multi,
.solar-qualification-form .gform-theme--framework .gfield:where(.gfield--type-select,.gfield--input-type-select) .chosen-search input[type=text],
.solar-qualification-form .gform-theme--framework .gfield:where(.gfield--type-select,.gfield--input-type-select) .chosen-single,
.solar-qualification-form .gform-theme--framework .gform-theme-field-control,
.solar-qualification-form .gform-theme--framework input[type]:where(:not(.gform-text-input-reset):not([type=hidden])),
.solar-qualification-form .gform-theme--framework select,
.solar-qualification-form .gform-theme--framework select[multiple],
.solar-qualification-form .gform-theme--framework textarea,
.solar-qualification-form .gform-theme--framework.gform-theme.gform_wrapper .button,
.solar-qualification-form .gform-theme--framework.gform-theme.gform_wrapper .gform-theme-button,
.solar-qualification-form .gform-theme--framework.gform-theme.gform_wrapper button.button,
.solar-qualification-form .gform-theme--framework.gform-theme.gform_wrapper input:is([type=submit],[type=button],[type=reset]).button,
.solar-qualification-form .gform-theme--framework.gform-theme.gform_wrapper input:is([type=submit],[type=button],[type=reset]),
.solar-qualification-form .gform-theme--framework.gform-theme.gform_wrapper input[type=submit].button.gform_button {
    box-shadow: none !important;
}

/* Right side - button wrapper (create vertical column) */
.solar-qualification-form .gform_drop_area > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
}

.solar-qualification-form .gform_wrapper .gform_button_select_files,
.solar-qualification-form .gform_button_select_files {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px 46px !important;
    background: #0072CE !important;
    background-color: #0072CE !important;
    background-image: none !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 999px !important;
    font-family: 'Urbano', sans-serif !important;
    font-size: 0 !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    min-width: 220px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.solar-qualification-form .gform_wrapper .gform_button_select_files:hover,
.solar-qualification-form .gform_button_select_files:hover {
    background: #005BA8 !important;
    background-color: #005BA8 !important;
    background-image: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 114, 206, 0.3) !important;
}

.solar-qualification-form .gform_button_select_files:after {
    content: 'Upload File(s)' !important;
    font-size: 18px !important;
    font-family: 'Urbano', sans-serif !important;
    font-weight: 500 !important;
}

/* Helper text centered below the entire upload area */
.solar-qualification-form .gform_fileupload_rules {
    font-size: 14px !important;
    color: #999999 !important;
    margin: 0 !important;
    text-align: center !important;
    display: block !important;
    font-family: 'Urbano', sans-serif !important;
    align-self: center !important;
}

/* HTML content (for disqualification messages) */
.solar-qualification-form .gfield_html {
    text-align: center !important;
    line-height: 1.8 !important;
}

.solar-qualification-form .gfield_html h2,
.solar-qualification-form .gfield_html h3 {
    font-family: 'Urbano', sans-serif !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    margin: 0 0 25px 0 !important;
    color: #000000 !important;
    text-align: center !important;
}

.solar-qualification-form .gfield_html p {
    font-family: 'Urbano', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #333333 !important;
    margin: 0 0 20px 0 !important;
}

.solar-qualification-form .gfield_html a {
    color: #0072CE !important;
    text-decoration: underline !important;
    transition: color 0.2s ease !important;
}

.solar-qualification-form .gfield_html a:hover {
    color: #005BA8 !important;
}

/* Navigation buttons */
.solar-qualification-form .gform_page_footer {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 0;
    padding: 15px 0 0 0;
    position: absolute;
    bottom: 30px;
    left: 60px;
    right: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 20%, #FFFFFF 40%);
    pointer-events: none;
}

.solar-qualification-form .gform_page_footer button,
.solar-qualification-form .gform_page_footer input {
    pointer-events: auto;
}

.solar-qualification-form .gform_previous_button,
.solar-qualification-form .gform_next_button,
.solar-qualification-form .gform_button {
    padding: 11px 40px !important;
    font-family: 'Urbano', sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    min-width: 130px !important;
}

.solar-qualification-form .gform_previous_button {
    background: #FFFFFF !important;
    color: #000000 !important;
    border: 2px solid #F18F1C !important;
}

.solar-qualification-form .gform_previous_button:hover {
    background: #FFF8F0 !important;
}

.solar-qualification-form .gform_next_button,
.solar-qualification-form .gform_button {
    background: #F18F1C !important;
    color: #FFFFFF !important;
    border: 2px solid #F18F1C !important;
}

.solar-qualification-form .gform_next_button:hover,
.solar-qualification-form .gform_button:hover {
    background: #E68517 !important;
    border-color: #E68517 !important;
}

/* Disabled button state */
.solar-qualification-form .gform_next_button:disabled,
.solar-qualification-form .gform_button:disabled {
    background: #CCCCCC;
    border-color: #CCCCCC;
    cursor: not-allowed;
    opacity: 0.6;
}

.solar-qualification-form .gform_next_button:disabled:hover,
.solar-qualification-form .gform_button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* HubSpot booking disabled state */
.solar-qualification-form .gform_next_button.sqf-disabled {
    background: #CCCCCC !important;
    border-color: #CCCCCC !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
    pointer-events: none !important;
}

.solar-qualification-form .gform_next_button.sqf-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Booking required message */
.solar-qualification-form .sqf-booking-required {
    color: #d32f2f;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
    text-align: center;
}

/* Confirmation/Success message */
.solar-qualification-form .gform_confirmation_wrapper {
    text-align: center;
    padding: 40px 40px;
}

.solar-qualification-form .gform_confirmation_message {
    font-family: 'Urbano', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

/* Reduce spacing for paragraphs in confirmation */
.solar-qualification-form .gform_confirmation_message p {
    margin: 0 0 10px 0;
}

.solar-qualification-form .gform_confirmation_message p:last-child {
    margin-bottom: 0;
}

/* Checkmark removed per user request */

/* Calendar embed styling (if using HTML field) */
.solar-qualification-form .calendly-inline-widget,
.solar-qualification-form iframe[src*="calendly"] {
    min-height: 600px;
    width: 100%;
    border: none;
    border-radius: 15px;
}

/* HubSpot Meetings embed */
.solar-qualification-form .meetings-iframe-container,
.solar-qualification-form iframe[src*="hubspot"],
.solar-qualification-form iframe[src*="meetings"] {
    min-height: 700px !important;
    height: 800px !important;
    width: 100% !important;
    border: none !important;
    border-radius: 15px !important;
    overflow: hidden !important;
}

/* Validation errors */
.solar-qualification-form .gfield_error {
    background: #FFF5F5 !important;
    border-color: #E53E3E !important;
}

.solar-qualification-form .validation_error {
    background: #FFF5F5;
    border: 2px solid #E53E3E;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 0 0 30px 0;
    color: #E53E3E;
    font-family: 'Urbano', sans-serif;
    font-size: 16px;
    text-align: center;
}

.solar-qualification-form .gfield_error .gfield_label {
    color: #E53E3E;
}

.solar-qualification-form .validation_message {
    color: #E53E3E;
    font-size: 14px;
    margin: 8px 0 0 0;
    font-family: 'Urbano', sans-serif;
}

/* Loading spinner */
.solar-qualification-form .gform_ajax_spinner {
    margin: 0 auto;
    display: block;
}

/* Preview mode */
.solar-qualification-form__placeholder {
    background: #F5F5F5;
    border: 2px dashed #CCCCCC;
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
}

.solar-qualification-form__placeholder p {
    font-family: 'Urbano', sans-serif;
    font-size: 18px;
    color: #666666;
    margin: 0 0 15px 0;
}

/* Responsive styles */
@media (max-width: 991px) {
    .solar-qualification-form__content--two-column {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .solar-qualification-form__contextual-image {
        order: -1;
        width: 100%;
        max-width: 600px;
    }

    .solar-qualification-form__contextual-image img {
        height: 400px;
    }

    .solar-qualification-form__form-wrapper {
        padding: 40px 40px !important;
    }

    .solar-qualification-form__title {
        font-size: 36px;
        margin: 0 0 40px 0;
    }

    .solar-qualification-form .gfield_label,
    .solar-qualification-form .gfield_html h2,
    .solar-qualification-form .gfield_html h3 {
        font-size: 28px;
    }

    /* Remove excessive padding on tablet */
    .solar-qualification-form .gfield--type-address {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    .solar-qualification-form .gform_fields:has(.gfield--type-text, .gfield--type-email, .gfield--type-phone) {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    @supports not selector(:has(*)) {
        .solar-qualification-form .gform_fields {
            padding-left: 40px !important;
            padding-right: 40px !important;
        }
    }
}

@media (max-width: 767px) {
    .solar-qualification-form {
        min-height: auto !important;
        padding: 40px 0 !important;
    }

    .solar-qualification-form__container {
        padding: 0 15px !important;
    }

    .solar-qualification-form__form-wrapper {
        padding: 30px 20px !important;
        padding-bottom: 120px !important;
        border-width: 5px !important;
        min-height: auto !important;
    }

    /* File upload - ensure native input stays hidden but container is visible */
    .solar-qualification-form input[type="file"] {
        position: absolute !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        pointer-events: none !important;
    }

    .solar-qualification-form__title {
        font-size: 28px;
        margin: 0 0 30px 0;
    }

    .solar-qualification-form .gfield_label,
    .solar-qualification-form .gform_wrapper .gfield_label,
    .solar-qualification-form legend.gfield_label,
    .solar-qualification-form .gfield_html h2 {
        font-size: 24px !important;
        margin: 0 0 20px 0 !important;
    }

    /* Keep contact info and address labels small on mobile */
    .solar-qualification-form .gfield--type-text .gfield_label,
    .solar-qualification-form .gfield--type-email .gfield_label,
    .solar-qualification-form .gfield--type-phone .gfield_label,
    .solar-qualification-form .ginput_container_address label {
        font-size: 12px !important;
        font-weight: 400 !important;
        margin-bottom: 5px !important;
        text-align: left !important;
    }

    /* Remove all horizontal padding on mobile for all field types */
    .solar-qualification-form .gfield--type-address {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .solar-qualification-form .gform_fields:has(.gfield--type-text, .gfield--type-email, .gfield--type-phone) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    @supports not selector(:has(*)) {
        .solar-qualification-form .gform_fields {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }
    }

    /* Radio buttons full width on mobile */
    .solar-qualification-form .gform_wrapper .gfield_radio,
    .solar-qualification-form .gfield_radio {
        width: 100% !important;
    }

    /* Remove padding from wider choices class on mobile */
    .solar-qualification-form .gform_wrapper .wider-choices .gfield_radio,
    .solar-qualification-form .wider-choices .gfield_radio {
        width: 100% !important;
    }

    .solar-qualification-form .gfield_radio label,
    .solar-qualification-form select {
        font-size: 15px !important;
        padding: 12px 15px !important;
        padding-left: 45px !important;
    }

    /* Radio button field description */
    .solar-qualification-form .gfield--type-radio .gfield_description {
        font-size: 16px !important;
        width: 100% !important;
        margin-bottom: 25px !important;
    }

    /* Radio button spacing for more breathing room */
    .solar-qualification-form .gform_wrapper .gfield_radio,
    .solar-qualification-form .gfield_radio {
        gap: 12px !important;
        margin-bottom: 20px !important;
    }

    /* Text inputs */
    .solar-qualification-form input[type="text"],
    .solar-qualification-form input[type="email"],
    .solar-qualification-form input[type="tel"],
    .solar-qualification-form input[type="number"],
    .solar-qualification-form textarea,
    .solar-qualification-form .gform_wrapper input[type="text"],
    .solar-qualification-form .gform_wrapper input[type="email"],
    .solar-qualification-form .gform_wrapper input[type="tel"],
    .solar-qualification-form .gform_wrapper input[type="number"],
    .solar-qualification-form .gform_wrapper textarea {
        font-size: 15px !important;
        padding: 12px 15px !important;
    }

    /* Select fields */
    .solar-qualification-form select,
    .solar-qualification-form .gform_wrapper select,
    .solar-qualification-form .ginput_container select {
        font-size: 15px !important;
        padding: 12px 15px !important;
    }

    /* Form footer buttons */
    .solar-qualification-form .gform_page_footer {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        left: 20px !important;
        right: 20px !important;
        bottom: 20px !important;
    }

    .solar-qualification-form .gform_previous_button,
    .solar-qualification-form .gform_next_button,
    .solar-qualification-form .gform_button {
        width: auto !important;
        padding: 14px 35px !important;
        font-size: 16px !important;
        min-width: 140px !important;
        flex: 0 1 auto !important;
    }

    .solar-qualification-form .gform_confirmation_message {
        font-size: 24px;
    }

    /* File upload - Stack vertically on mobile */
    .solar-qualification-form .ginput_container_fileupload {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 16px !important;
    }

    .solar-qualification-form .gform_drop_area {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .solar-qualification-form .gform_drop_area:before {
        width: 140px !important;
        height: 140px !important;
        font-size: 14px !important;
        padding-bottom: 16px !important;
    }

    /* Make the dashed upload box clickable on mobile */
    .solar-qualification-form .gform_drop_area .sqf-upload-trigger {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 140px !important;
        height: 140px !important;
        cursor: pointer !important;
        z-index: 5 !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 16px !important;
    }

    .solar-qualification-form .gform_drop_area .sqf-upload-trigger:hover {
        background: rgba(0, 0, 0, 0.02) !important;
    }

    .solar-qualification-form .gform_drop_area .sqf-upload-trigger:focus {
        outline: 2px solid #0072CE !important;
        outline-offset: 2px !important;
    }

    .solar-qualification-form .gform_button_select_files:after {
        font-size: 16px !important;
    }

    .solar-qualification-form .gform_wrapper .gform_button_select_files,
    .solar-qualification-form .gform_button_select_files {
        width: 100% !important;
        max-width: 260px !important;
        padding: 14px 35px !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .solar-qualification-form .gform_fileupload_rules {
        font-size: 13px !important;
        text-align: center !important;
        margin-left: 0 !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    /* HTML content */
    .solar-qualification-form .gfield_html h2,
    .solar-qualification-form .gfield_html h3 {
        font-size: 22px !important;
        margin: 0 0 20px 0 !important;
    }

    .solar-qualification-form .gfield_html p {
        font-size: 15px !important;
    }

    /* Progress bar */
    .solar-qualification-form .gf_progressbar_wrapper {
        margin: 0 0 30px 0 !important;
    }

    .solar-qualification-form .gf_progressbar_wrapper h3.gf_progressbar_title,
    .solar-qualification-form .gf_progressbar_title {
        font-size: 14px !important;
        margin: 0 0 12px 0 !important;
    }

    /* Hide contextual image on mobile */
    .solar-qualification-form__contextual-image {
        display: none !important;
    }

    /* HubSpot Meetings embed on mobile */
    .solar-qualification-form .meetings-iframe-container,
    .solar-qualification-form iframe[src*="hubspot"],
    .solar-qualification-form iframe[src*="meetings"] {
        min-height: 600px !important;
        height: 700px !important;
    }
}

@media (max-width: 480px) {
    .solar-qualification-form__form-wrapper {
        padding: 25px 15px !important;
        padding-bottom: 110px !important;
    }

    .solar-qualification-form__title {
        font-size: 24px !important;
        margin: 0 0 25px 0 !important;
    }

    .solar-qualification-form .gfield_label,
    .solar-qualification-form .gform_wrapper .gfield_label,
    .solar-qualification-form legend.gfield_label {
        font-size: 20px !important;
        margin: 0 0 15px 0 !important;
    }

    /* Keep contact info and address labels small on small mobile */
    .solar-qualification-form .gfield--type-text .gfield_label,
    .solar-qualification-form .gfield--type-email .gfield_label,
    .solar-qualification-form .gfield--type-phone .gfield_label,
    .solar-qualification-form .ginput_container_address label {
        font-size: 11px !important;
        font-weight: 400 !important;
        margin-bottom: 4px !important;
        text-align: left !important;
    }

    .solar-qualification-form .gfield_radio label {
        font-size: 14px !important;
        padding: 11px 12px !important;
        padding-left: 40px !important;
        min-height: 42px !important;
    }

    .solar-qualification-form .gfield_radio label:before {
        left: 15px !important;
        width: 16px !important;
        height: 16px !important;
    }

    .solar-qualification-form .gfield_radio input[type="radio"]:checked + label:before {
        border-width: 5px !important;
    }

    .solar-qualification-form .gfield--type-radio .gfield_description {
        font-size: 14px !important;
    }

    /* More spacing for radio buttons on small mobile */
    .solar-qualification-form .gform_wrapper .gfield_radio,
    .solar-qualification-form .gfield_radio {
        gap: 10px !important;
    }

    .solar-qualification-form input[type="text"],
    .solar-qualification-form input[type="email"],
    .solar-qualification-form input[type="tel"],
    .solar-qualification-form input[type="number"],
    .solar-qualification-form textarea,
    .solar-qualification-form select,
    .solar-qualification-form .gform_wrapper input[type="text"],
    .solar-qualification-form .gform_wrapper input[type="email"],
    .solar-qualification-form .gform_wrapper input[type="tel"],
    .solar-qualification-form .gform_wrapper input[type="number"],
    .solar-qualification-form .gform_wrapper textarea,
    .solar-qualification-form .gform_wrapper select {
        font-size: 14px !important;
        padding: 10px 12px !important;
    }

    .solar-qualification-form .gform_page_footer {
        left: 15px !important;
        right: 15px !important;
        bottom: 15px !important;
        gap: 10px !important;
    }

    .solar-qualification-form .gform_previous_button,
    .solar-qualification-form .gform_next_button,
    .solar-qualification-form .gform_button {
        padding: 12px 28px !important;
        font-size: 15px !important;
        min-width: 120px !important;
    }

    .solar-qualification-form .gfield_html h2,
    .solar-qualification-form .gfield_html h3 {
        font-size: 20px !important;
    }

    .solar-qualification-form .gfield_html p {
        font-size: 14px !important;
    }

    .solar-qualification-form .gform_confirmation_message {
        font-size: 20px !important;
    }

    /* File upload on small mobile */
    .solar-qualification-form .gform_drop_area:before {
        width: 128px !important;
        height: 128px !important;
        font-size: 13px !important;
        background-position: center 34px !important;
    }

    /* Make the dashed upload box clickable on small mobile */
    .solar-qualification-form .gform_drop_area .sqf-upload-trigger {
        display: block !important;
        width: 128px !important;
        height: 128px !important;
    }

    .solar-qualification-form .gform_button_select_files:after {
        font-size: 15px !important;
    }

    .solar-qualification-form .gform_wrapper .gform_button_select_files,
    .solar-qualification-form .gform_button_select_files {
        max-width: 240px !important;
        padding: 13px 32px !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .solar-qualification-form .gform_fileupload_rules {
        font-size: 12px !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }
}

/* --------------------------------------------------------------------------
   Mobile info modal enhancements
   -------------------------------------------------------------------------- */
.solar-qualification-form .sqf-info-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    text-align: center;
    flex-wrap: nowrap;
    padding: 0 !important;
    margin: 0 !important;
}

.solar-qualification-form .sqf-info-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0;
    border: none;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0;
    margin: 0;
    line-height: 1;
    cursor: pointer;
    transition: none;
    flex-shrink: 0;
    appearance: none;
}

.solar-qualification-form .sqf-info-trigger svg {
    width: 26px;
    height: 26px;
    display: block;
}

.solar-qualification-form .sqf-info-trigger:focus-visible,
.solar-qualification-form .sqf-info-trigger:hover {
    outline: none;
}

@media (min-width: 769px) {
    .solar-qualification-form .sqf-info-trigger {
        display: none !important;
    }

    .solar-qualification-form .sqf-info-label {
        display: block;
    }
}

.sqf-info-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    background: #0970B8;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.sqf-info-modal.is-active {
    display: flex;
    opacity: 1;
}

.sqf-info-modal__dialog {
    background: #F2F5F8;
    border-radius: 32px;
    width: min(420px, calc(100% - 40px));
    max-width: 420px;
    padding: 60px 0 0;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 auto;
    max-height: calc(100vh - 160px);
    overflow: hidden;
}

.sqf-info-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #F7931D;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.sqf-info-modal__close:focus-visible,
.sqf-info-modal__close:hover {
    background: #f6f6f6;
    outline: none;
}

.sqf-info-modal__content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 24px 24px;
}

.sqf-info-modal__title {
    font-family: 'Urbano', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.sqf-info-modal__text {
    font-size: 18px;
    line-height: 1.4;
    color: #000;
}

.sqf-info-modal__text p:last-child {
    margin-bottom: 0;
}

.sqf-info-modal__image {
    width: 100%;
    margin: 0;
}

.sqf-info-modal__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 0 32px 32px;
}

body.sqf-info-modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

@media (min-width: 769px) {
    .sqf-info-modal {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .sqf-info-modal__dialog {
        width: calc(100% - 30px);
        padding: 56px 0 0;
        margin: 0 auto;
        max-height: calc(100vh - 120px);
    }

    .sqf-info-modal__title {
        font-size: 22px;
    }

    .sqf-info-modal__text {
        font-size: 16px;
    }
}
