/* =========================================================
   GRACEBRIDGE REQUEST SUPPORT
   ========================================================= */

.gb-support-page {
    max-width: 1180px;
    margin: 17px auto 25px;
    color: #17233d;
}

.gb-support-page * {
    box-sizing: border-box;
}


/* =========================================================
   SECURITY BAR
   ========================================================= */

.gb-support-security-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #075fc8;
    color: #fff;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    display: none;
}

.gb-security-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 15px;
    font-size: 14px;
    border-right: 1px solid rgba(255,255,255,.2);
}

.gb-security-item:last-child {
    border-right: 0;
}

.gb-security-icon {
    width: 30px;
    height: 30px;
    background: #e8bd26;
    color: #17233d;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   MAIN FORM AREA
   ========================================================= */

.gb-support-form-wrapper {
    display: grid;
    grid-template-columns: 270px 1fr;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-top: 0;
}


/* =========================================================
   LEFT SIDEBAR
   ========================================================= */

.gb-support-sidebar {
    background: #f5f7fa;
    border-right: 1px solid #dfe5ec;
    /*padding: 32px 22px;*/
}

.gb-support-step {
    display: flex;
    gap: 13px;
    align-items: center;
    position: relative;
    padding: 10px 20px;

}

.gb-support-step:not(:last-of-type) {
    border-bottom: 1px solid #ddd;
}

.gb-step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    border: 1px solid #cfd6df;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: #fff;
}

.gb-support-step strong {
    display: block;
    font-size: 14px;
    line-height: 17px;
}

.gb-support-step small {
    display: none;
    font-size: 11px;
    line-height: 17px;
}

.gb-support-step.active {
    color: #fff;
    background: #0056D2;
}

.gb-support-step.active .gb-step-number {
    background: #fff;
    border-color: #0056D2;
    color: #0056D2;
}

.gb-support-step.active small {
    display: block;
}

.gb-support-step.completed .gb-step-number {
    background: #e8bd26;
    border-color: #e8bd26;
    color: #17233d;
}

.gb-support-step.completed::after {
    background: #e8bd26;
}

.gb-support-sidebar-note {
    margin-top: 10px;
    padding: 14px;
    font-size: 12px;
    line-height: 1.5;
    color: #687384;
}


/* =========================================================
   FORM
   ========================================================= */

.gb-support-form {
    padding: 10px 42px;
}

.gb-form-step {
    display: none;
}

.gb-form-step.active {
    display: block;
}

.gb-form-step h2 {
    margin: 0 0 7px;
    font-size: 27px;
    color: #17233d;
}

.gb-form-step > p {
    margin: 0 0;
    color: #697484;
    font-size: 14px;
}


/* =========================================================
   FIELD GRID
   ========================================================= */

.gb-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
}

.gb-field {
    margin-bottom: 20px;
}

.gb-form-grid .gb-field {
    margin-bottom: 0;
}

.gb-full {
    grid-column: 1 / -1;
}

.gb-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #27344b;
    margin-bottom: 7px;
}

.gb-field label span {
    color: #c33;
}

.gb-field input[type="text"],
.gb-field input[type="email"],
.gb-field input[type="tel"],
.gb-field input[type="number"],
.gb-field select,
.gb-field textarea {
    width: 100%;
    height: 32px !important;
    border: 1px solid #d5dce5;
    border-radius: 5px;
    padding: 01px 13px;
    background: #fff;
    color: #243148;
    font-size: 14px;
    box-shadow: none;
}

.gb-field textarea {
    min-height: 115px;
    resize: vertical;
}

.gb-field input:focus,
.gb-field select:focus,
.gb-field textarea:focus {
    outline: none;
    border-color: #075fc8;
    box-shadow: 0 0 0 2px rgba(7,95,200,.08);
}


/* =========================================================
   SUPPORT TYPE CARDS
   ========================================================= */

.gb-support-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.gb-support-options label {
    border: 1px solid #d8dfe8;
    border-radius: 7px;
    padding: 18px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.gb-support-options label:hover {
    border-color: #075fc8;
    background: #f8fbff;
}

.gb-support-options input {
    margin-right: 8px;
}


/* =========================================================
   RADIO OPTIONS
   ========================================================= */

.gb-radio-options {
    display: flex;
    gap: 25px;
    margin-top: 8px;
}

.gb-radio-options label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
}


/* =========================================================
   FILE UPLOAD
   ========================================================= */

.gb-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 25px 0 10px;
}

.gb-upload-box {
    border: 1px dashed #aeb8c5;
    border-radius: 7px;
    padding: 20px 16px;
    background: #fafbfd;
    min-height: 175px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 11px;
}

.gb-upload-box label {
    font-size: 13px;
    font-weight: 700;
    color: #26344c;
}

.gb-upload-box input[type="file"] {
    width: 100%;
    font-size: 12px;
}

.gb-file-note {
    font-size: 11px;
    color: #778291;
    margin-bottom: 28px;
}


/* =========================================================
   CONSENT
   ========================================================= */

.gb-consent-section {
    background: #f6f8fb;
    border: 1px solid #e0e5ec;
    border-radius: 7px;
    padding: 20px;
    margin-top: 25px;
}

.gb-consent-section label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 14px;
    line-height: 1.5;
    color: #4e5969;
    font-size: 13px;
}

.gb-consent-section label:last-child {
    margin-bottom: 0;
}

.gb-consent-section input {
    margin-top: 3px;
}


/* =========================================================
   FORM FOOTER / BUTTONS
   ========================================================= */

.gb-form-footer {
    border-top: 1px solid #e5e9ef;
    margin-top: 32px;
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.gb-form-footer > span {
    color: #7a8492;
    font-size: 12px;
}

.gb-next-step,
.gb-submit-request {
    border: 0;
    background: #D4AF37 !important;
    color: #fff;
    border-radius: 5px;
    min-height: 44px;
    padding: 0 21px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.gb-next-step:hover,
.gb-submit-request:hover {
    background: #d8aa1c;
}

.gb-prev-step {
    border: 1px solid #0056D2 !important;
    background: #fff !important;
    color: #0056D2 !important;
    border-radius: 5px;
    min-height: 44px;
    padding: 0 20px;
    font-weight: 600;
    cursor: pointer;
}


/* =========================================================
   BOTTOM SECURITY
   ========================================================= */

.gb-bottom-security {
    text-align: center;
    background: #f3f6fa;
    border: 1px solid #dfe5ec;
    border-top: 0;
    color: #657182;
    line-height: 16px;
    font-size: 12px;
    padding: 12px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {


    .gb-support-form-wrapper {
        grid-template-columns: 1fr;
    }

    .gb-support-sidebar {
        border-right: 0;
        border-bottom: 1px solid #dfe5ec;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
   
    }



    .gb-support-step::after {
        display: none;
    }

    .gb-support-sidebar-note {
        grid-column: 1 / -1;
    }

    .gb-support-options,
    .gb-upload-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .gb-support-security-bar {
        grid-template-columns: 1fr;
    }

    .gb-security-item {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.2);
    }

    .gb-support-sidebar {
        grid-template-columns: 1fr 1fr;
    }

    .gb-support-form {
        padding: 28px 20px;
    }

    .gb-form-grid {
        grid-template-columns: 1fr;
    }

    .gb-full {
        grid-column: auto;
    }

    .gb-form-footer {
        flex-wrap: wrap;
    }
    
    .gb-support-sidebar-note{
        margin-top: 0;
    }

}

@media (max-width: 415px){
    .gb-support-sidebar{
        grid-template-columns: 1fr;
    }
}



.gb-support-success {
    max-width: 1180px;
    margin: 20px auto;
    padding: 18px 20px;
    background: #eef9f1;
    border-left: 4px solid #2f8f46;
    color: #234a2d;
    border-radius: 5px;
}


/* =========================================================
   ELIGIBILITY MODAL
   ========================================================= */

.gb-eligibility-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(15, 29, 53, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gb-eligibility-modal {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.gb-eligibility-modal h2 {
    margin: 0 0 8px;
    color: #17233d;
    font-size: 26px;
}

.gb-eligibility-modal > p {
    margin: 0 0 24px;
    color: #687386;
    line-height: 1.6;
}

.gb-eligibility-field {
    margin-bottom: 18px;
}

.gb-eligibility-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: #27344b;
}

.gb-eligibility-field input,
.gb-eligibility-field select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d5dce5;
    border-radius: 5px;
    padding: 10px 12px;
    background: #fff;
}

.gb-eligibility-message {
    margin: 18px 0;
    padding: 14px 16px;
    background: #fff6e5;
    border-left: 4px solid #e6ba26;
    color: #4c4230;
    line-height: 1.55;
}

.gb-eligibility-button {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 5px;
    background: #e6ba26;
    color: #17233d;
    font-weight: 700;
    cursor: pointer;
}

.gb-eligibility-button:hover {
    background: #d6aa1d;
}
#gb-support-type:disabled,
#gb-child-sex:disabled,
input[name="child_age"][readonly] {
    background: #f2f4f7;
    cursor: not-allowed;
    opacity: 1;
}

/**
 * ===========================================
 * ELIGIBILITY LOCKED VALUES
 * ===========================================
 */

.gb-locked-value {
    width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    border: 1px solid #d6dce6;
    border-radius: 6px;
    background: #f2f4f7;
    color: #475467;
    font-size: 14px;
    line-height: 20px;
    display: flex;
    align-items: center;
    cursor: not-allowed;
}

.gb-locked-value::after {
    content: " 🔒";
    margin-left: auto;
    font-size: 12px;
}

.gb-eligibility-cancel {
    width: 100%;
    min-height: 44px;
    margin-top: 10px;
    background: transparent;
    border: 1px solid #d6dce6;
    border-radius: 5px;
    color: #344054;
    font-weight: 600;
    cursor: pointer;
}

.gb-eligibility-cancel:hover {
    background: #f5f7fa;
}