/* SBA Referral Landing Page Styles */
/* Reset and base styles */




.sba-referral-landing * {
    box-sizing: border-box;
}

.sba-referral-landing {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #007953;
    min-height: 100vh;
}

/* Container */
.sba-landing-container {
    min-height: 100vh;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Decorative Circles */
.sba-decorative-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.sba-circle {
    position: absolute;
    opacity: 0.8;
    max-width: none;
    height: auto;
}

/* Circle Positioning Based on Names */
.sba-circle-top {
    width: 25vw;
    max-width: 323px;
    min-width: 200px;
    top: 0;
    right: 5vw;
}

.sba-circle-top-left {
    width: 28vw;
    max-width: 375px;
    min-width: 250px;
    top: 0;
    left: 0;
}

.sba-circle-right {
    width: 20vw;
    max-width: 250px;
    min-width: 150px;
    top: 50px;
    right: 0;
}

/* Header Section */
.sba-header-section {
    padding: 40px 20px 20px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    font-family: "Helvetica Neue LT Pro", Arial, sans-serif;
}

.sba-header-content {
    max-width: 900px;
    margin: 0 auto;
}

.sba-header-logo {
    display: block;
    margin: 0 auto 22px auto;
    max-width: 140px;
    height: auto;
}

.sba-header-title {
    font-size: 3rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: white;
}

.sba-header-description {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
    color: white;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Wrapper */
.sba-form-wrapper {
    padding: 0px 20px 40px 20px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.sba-form-container {
    width: 100%;
    max-width: 900px;
    background: #ffffff;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Form Content */
.sba-form-content {
    padding: 0px 30px 40px 30px;
    font-family: "Helvetica Neue LT Pro", Arial, sans-serif;
}

/* Gravity Forms Section Styling */
.sba-form-content .gsection {
    padding: 0;
    margin-bottom: 30px;
}

.sba-form-content .gsection .gsection_title {
    padding: 0;
    margin: 0 0 10px 0;
    text-align: center;
}

.sba-form-content .gsection .gsection_description {
    padding: 0;
    margin: 0 0 20px 0;
}

/* Form Fields Container - Add padding to field groups but not section titles */
.sba-form-content .gform_fields {
    padding: 0 100px;
    margin: 0;
}

/* Reset padding for section titles within the fields container */
.sba-form-content .gform_fields .gsection {
    padding: 0;
    margin-left: -100px;
    margin-right: -100px;
    margin-bottom: 30px;
}

.sba-form-content .gform_fields .gsection .gsection_title {
    padding: 0 100px;
}

.sba-form-content .gform_fields .gsection .gsection_description {
    padding: 0 100px;
}

/* Gravity Forms Styling */
.sba-form-content .gform_wrapper {
    margin: 0;
}

.sba-form-content .gfield {
    margin-bottom: 10px;
}

.sba-form-content .gfield_label {
    font-weight: normal;
    color: #4C607F;
    margin-bottom: 8px;
    display: block;
    font-size: 1rem;
}

/* Override Gravity Forms label font-weight */
.sba-form-content .gform_wrapper.gravity-theme .gfield_label {
    font-weight: 500 !important;
}

/* Remove margin under business-type field label */
.sba-form-content #field_44_25 .gfield_label {
    margin-bottom: 0px !important;
}

/* Remove margin-top for business-type field description */
.sba-form-content #field_44_25 .gfield_description {
    margin-top: 0px !important;
}

/* Override Gravity Forms description styling */
.sba-form-content .gform_wrapper.gravity-theme .description,
.sba-form-content .gform_wrapper.gravity-theme .gfield_description,
.sba-form-content .gform_wrapper.gravity-theme .gsection_description,
.sba-form-content .gform_wrapper.gravity-theme .instruction {
    font-size: 13px !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-top: 9.008px !important;
    color: #4C607F !important;
    border: none !important;
}

/* Specific styling for business-type field description */
.sba-form-content .business-type .gfield_description {
    padding: 0 !important;
    margin: 0 !important;
    color: #4C607F !important;
    border: none !important;
}



.sba-form-content input[type="text"],
.sba-form-content input[type="email"],
.sba-form-content input[type="tel"],
.sba-form-content input[type="number"],
.sba-form-content textarea,
.sba-form-content select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #CBD2DC;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
    font-family: inherit;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sba-form-content input[type="text"]:focus,
.sba-form-content input[type="email"]:focus,
.sba-form-content input[type="tel"]:focus,
.sba-form-content input[type="number"]:focus,
.sba-form-content textarea:focus,
.sba-form-content select:focus {
    outline: none;
    border-color: #007953;
    box-shadow: 0 0 0 3px rgba(0, 121, 83, 0.1);
}

.sba-form-content .gform_footer {
    text-align: center !important;
    margin-top: 30px;
    width: 100%;
}

.sba-form-content .gform_footer input[type="submit"] {
    display: block;
    margin: 0 auto;
}

.sba-form-content .gform_button {
    background: #007953;
    color: white;
    padding: 16px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: inherit;
    min-width: 200px;
}

.sba-form-content .gform_button:hover {
    background: #005a3e;
    transform: translateY(-1px);
}

/* Form Fallback */
.sba-form-fallback {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.sba-form-fallback p {
    margin: 10px 0;
    color: #856404;
}

/* Gravity Forms Additional Styling */
.sba-form-content .gform_validation_errors {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #721c24;
}

.sba-form-content .gfield_error .gfield_label {
    color: #dc3545;
}

.sba-form-content .gfield_error input,
.sba-form-content .gfield_error textarea,
.sba-form-content .gfield_error select {
    border-color: #dc3545;
}

.sba-form-content .validation_message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
}

.sba-form-content .gform_confirmation_wrapper {
    background: none !important;
    border: none !important;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: #155724;
    text-align: center;
}

/* Section Break Lines */
.sba-form-content .gsection_break {
    border-color: #CBD2DC !important;
}

.sba-form-content .gsection hr {
    border-color: #CBD2DC;
    background-color: #CBD2DC;
}

/* Checkbox and Radio Button Options - Bold Text */
.sba-form-content .gfield_checkbox label,
.sba-form-content .gfield_radio label {
    font-weight: 500;
}

.sba-form-content .gchoice label {
    font-weight: 400;
}

/* Override Gravity Forms choice label vertical alignment */
.sba-form-content .gform_wrapper.gravity-theme .gfield-choice-input+label {
    vertical-align: bottom !important;
}

/* Style existing required asterisks */
.sba-form-content .gfield_required {
    color: #4C607F !important;
}


/* Hide required field legend message - bulletproof version */
.sba-form-content .gform_required_legend,
.sba-form-wrapper .gform_required_legend,
.gform_required_legend,
.sba-form-content .gform_wrapper .gform_required_legend,
body .gform_required_legend,
html .gform_required_legend {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    font-size: 0 !important;
    line-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Media Upload Fields */
.sba-form-content .gfield_fileupload_multifile,
.sba-form-content .ginput_container_fileupload,
.sba-form-content input[type="file"] {
    background: white !important;
    border: 1px solid #CBD2DC !important;
    border-radius: 8px;
    padding: 10px;
}

.sba-form-content .gform_wrapper.gravity-theme .gsection {
    border-bottom: 1px solid #CBD2DC !important;
}

/* Add padding above sections (except first one) */
.sba-form-content .gform_fields .gsection:not(:first-of-type) {
    padding-top: 30px;
}

/* Target sections by custom CSS classes */
.sba-form-content .gsection.ownership,
.sba-form-content .gsection.documentation,
.sba-form-content .gsection.additional-information {
    padding-top: 30px;
}

.sba-form-content .gform_drop_area {
    background: white !important;
    border: 2px dashed #CBD2DC !important;
    border-radius: 8px;
}

.sba-form-content .gform_fileupload_rules {
    background: white;
    border: 1px solid #CBD2DC;
    border-radius: 8px;
    padding: 10px;
}

body #gform_62 .ginput_container_number input[type="number"],
body #gform_62 .ginput_container_date input[type="date"] {
    -moz-appearance: textfield;
}

/* Hide spinners on ALL number fields inside the SBA form content */
.sba-form-content input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Chrome / Edge / Safari: remove native up/down arrows */
.sba-form-content input[type="number"]::-webkit-inner-spin-button,
.sba-form-content input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}



/* Responsive Design */
@media (max-width: 844px) and (min-width: 685px) {
    .sba-header-section {
        padding: 20px 15px 15px 15px;
    }

    .sba-header-logo {
        max-width: 140px;
        margin-bottom: 15px;
    }

    .sba-header-title {
        font-size: 2rem;
    }

    .sba-header-description {
        font-size: 1.1rem;
    }

    .sba-form-wrapper {
        padding: 40px 0px;
    }

    .sba-form-content {
        padding: 0px 20px 30px 20px;
    }

    /* Reduce form field padding on tablets */
    .sba-form-content .gform_fields {
        padding: 0 50px;
    }

    .sba-form-content .gform_fields .gsection {
        margin-left: -50px;
        margin-right: -50px;
    }

    .sba-form-content .gform_fields .gsection .gsection_title,
    .sba-form-content .gform_fields .gsection .gsection_description {
        padding: 0 50px;
    }

    /* Responsive Circle Adjustments */
    .sba-circle-top {
        width: 30vw;
        max-width: 200px;
        right: 5vw;
    }

    .sba-circle-top-left {
        width: 32vw;
        max-width: 300px;
        left: -10vw;
    }

    .sba-circle-right {
        width: 25vw;
        max-width: 200px;
        right: -5vw;
    }
}

/* Handle the problematic range where half-width fields get smooshed */
@media (max-width: 684px) {
    .sba-header-section {
        padding: 20px 15px 15px 15px;
        background-image: url('https://banescousa.dynamicperceptionsinc.com/wp-content/uploads/2025/10/mobile-background-with-circles-cropped.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .sba-header-logo {
        max-width: 140px;
        margin-bottom: 15px;
    }

    .sba-header-title {
        font-size: 2rem;
    }

    .sba-header-description {
        font-size: 1.1rem;
    }

    .sba-form-wrapper {
        padding: 0px 0px 40px 0px;
    }

    .sba-form-content {
        padding: 0px 20px 30px 20px;
    }

    /* Reduce form field padding and force half-width fields to stack */
    .sba-form-content .gform_fields {
        padding: 0 30px;
    }

    .sba-form-content .gform_fields .gsection {
        margin-left: -30px;
        margin-right: -30px;
    }

    .sba-form-content .gform_fields .gsection .gsection_title,
    .sba-form-content .gform_fields .gsection .gsection_description {
        padding: 0 30px;
    }

    /* Force half-width fields to full width to prevent smooshing */
    .sba-form-content .gfield--width-half {
        width: 100% !important;
        float: none !important;
        clear: both !important;
    }

    /* Hide individual circles - using header background instead */
    .sba-circle-top,
    .sba-circle-top-left,
    .sba-circle-right {
        display: none;
    }
}

@media (max-width: 480px) {
    .sba-header-section {
        padding: 20px 15px 15px 15px;
        background-image: url('https://banescousa.dynamicperceptionsinc.com/wp-content/uploads/2025/10/mobile-background-with-circles-cropped.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .sba-header-logo {
        max-width: 140px;
        margin-bottom: 15px;
    }

    .sba-header-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .sba-header-description {
        font-size: 1rem;
    }

    .sba-form-wrapper {
        padding: 0px 0px 30px 0px;
    }

    .sba-form-content {
        padding: 0px 15px 30px 15px;
    }

    /* Remove form field padding on mobile */
    .sba-form-content .gform_fields {
        padding: 0 20px;
    }

    .sba-form-content .gform_fields .gsection {
        margin-left: -20px;
        margin-right: -20px;
    }

    .sba-form-content .gform_fields .gsection .gsection_title,
    .sba-form-content .gform_fields .gsection .gsection_description {
        padding: 0 20px;
    }

    .sba-form-content .gform_button {
        width: 100%;
        min-width: auto;
    }

    /* Hide individual circles on mobile - using header background instead */
    .sba-circle-top,
    .sba-circle-top-left,
    .sba-circle-right {
        display: none;
    }
}