/* =====================================================
   YMCA SOCCER CHOICE MODAL
   Complete Responsive Stylesheet
   ===================================================== */


/* =====================================================
   MAIN MODAL WRAPPER
   ===================================================== */

#soccer-choice-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: inherit;
}

/* Hidden State */

#soccer-choice-modal[hidden] {
    display: none !important;
}


/* =====================================================
   BACKGROUND OVERLAY
   ===================================================== */

#soccer-choice-modal .soccer-modal-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.65);
}


/* =====================================================
   MODAL WHITE CONTAINER
   ===================================================== */

#soccer-choice-modal .soccer-modal-container {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 650px;
    max-height: 90vh;

    overflow-y: auto;
    overscroll-behavior: contain;

    background: #ffffff !important;
    border-radius: 12px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);

    box-sizing: border-box;
}


/* =====================================================
   MODAL CONTENT
   ===================================================== */

#soccer-choice-modal .soccer-modal-content {
    padding: 40px;
    background: #ffffff;
    box-sizing: border-box;
}


/* =====================================================
   HEADING
   ===================================================== */

#soccer-choice-modal .soccer-modal-content h2 {
    margin: 0 0 8px;
    padding: 0;

    color: #333333;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}


/* =====================================================
   INTRODUCTION TEXT
   ===================================================== */

#soccer-choice-modal .soccer-modal-intro {
    margin: 0 0 28px;

    color: #555555;
    font-size: 1.05rem;
    line-height: 1.5;
    text-align: center;
}


/* =====================================================
   CLOSE BUTTON
   ===================================================== */

#soccer-choice-modal .soccer-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;
    margin: 0;

    border: none;
    border-radius: 50%;

    background: transparent;
    color: #444444;

    font-size: 32px;
    line-height: 1;

    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

#soccer-choice-modal .soccer-modal-close:hover,
#soccer-choice-modal .soccer-modal-close:focus-visible {
    color: #0060af;
    background: #eaf4fb;
    outline: 2px solid #0060af;
    outline-offset: 2px;
}


/* Remove unnecessary paragraph spacing around button */

#soccer-choice-modal .soccer-modal-container > p {
    margin: 0;
    padding: 0;
}


/* =====================================================
   SOCCER CHOICE CARDS
   ===================================================== */

#soccer-choice-modal .soccer-choice-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;

    margin: 0 0 18px;
    padding: 24px;

    border: 1px solid #dddddd;
    border-radius: 8px;

    background: #ffffff;

    box-sizing: border-box;

    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}

#soccer-choice-modal .soccer-choice-card:last-child {
    margin-bottom: 0;
}

#soccer-choice-modal .soccer-choice-card:hover {
    border-color: #0060af;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);

    transform: translateY(-2px);
}


/* =====================================================
   SOCCER ICON
   ===================================================== */

#soccer-choice-modal .soccer-choice-icon {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eaf4fb;

    font-size: 24px;
}


/* =====================================================
   CHOICE CARD CONTENT
   ===================================================== */

#soccer-choice-modal .soccer-choice-info {
    flex: 1;
    min-width: 0;
}

#soccer-choice-modal .soccer-choice-info h3 {
    margin: 0 0 7px;

    color: #333333;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

#soccer-choice-modal .soccer-choice-info p {
    margin: 0 0 15px;

    color: #555555;
    font-size: 0.98rem;
    line-height: 1.5;
}


/* =====================================================
   PROGRAM LINKS
   ===================================================== */

#soccer-choice-modal .soccer-choice-link {
    display: inline-block;

    color: #0060af;

    font-size: 0.98rem;
    font-weight: 700;

    text-decoration: none;

    transition: color 0.2s ease;
}

#soccer-choice-modal .soccer-choice-link:hover,
#soccer-choice-modal .soccer-choice-link:focus-visible {
    color: #0089d0;
    text-decoration: underline;
}

#soccer-choice-modal .soccer-choice-link:focus-visible {
    outline: 2px solid #0060af;
    outline-offset: 3px;
}

#soccer-choice-modal .soccer-choice-link span {
    margin-left: 5px;
}


/* =====================================================
   TABLET RESPONSIVENESS
   ===================================================== */

@media (max-width: 991px) {

    #soccer-choice-modal {
        padding: 18px;
    }

    #soccer-choice-modal .soccer-modal-container {
        max-width: 600px;
    }

    #soccer-choice-modal .soccer-modal-content {
        padding: 35px;
    }

}


/* =====================================================
   MOBILE RESPONSIVENESS
   ===================================================== */

@media (max-width: 767px) {

    #soccer-choice-modal {
        padding: 12px;
    }

    #soccer-choice-modal .soccer-modal-container {
        max-height: 92vh;
        border-radius: 8px;
    }

    #soccer-choice-modal .soccer-modal-content {
        padding: 38px 20px 25px;
    }

    #soccer-choice-modal .soccer-modal-content h2 {
        padding-right: 25px;
        font-size: 1.6rem;
    }

    #soccer-choice-modal .soccer-modal-intro {
        font-size: 0.95rem;
        margin-bottom: 22px;
    }

    #soccer-choice-modal .soccer-modal-close {
        top: 8px;
        right: 8px;

        width: 38px;
        height: 38px;

        font-size: 29px;
    }

    #soccer-choice-modal .soccer-choice-card {
        gap: 14px;
        padding: 18px;
    }

    #soccer-choice-modal .soccer-choice-icon {
        flex: 0 0 40px;

        width: 40px;
        height: 40px;

        font-size: 20px;
    }

    #soccer-choice-modal .soccer-choice-info h3 {
        font-size: 1.15rem;
    }

    #soccer-choice-modal .soccer-choice-info p {
        font-size: 0.92rem;
    }

    #soccer-choice-modal .soccer-choice-link {
        font-size: 0.92rem;
    }

}


/* =====================================================
   SMALL MOBILE SCREENS
   ===================================================== */

@media (max-width: 380px) {

    #soccer-choice-modal .soccer-modal-content {
        padding: 38px 15px 20px;
    }

    #soccer-choice-modal .soccer-choice-card {
        gap: 10px;
        padding: 14px;
    }

    #soccer-choice-modal .soccer-choice-icon {
        flex: 0 0 34px;

        width: 34px;
        height: 34px;

        font-size: 18px;
    }
    #soccer-choice-modal {
    position: fixed !important;
    z-index: 999999 !important;
    display: flex !important;
    background: rgba(255, 0, 0, 0.25) !important;
}

}


/* =====================================================
   ACCESSIBILITY - REDUCED MOTION
   ===================================================== */

@media (prefers-reduced-motion: reduce) {

    #soccer-choice-modal *,
    #soccer-choice-modal *::before,
    #soccer-choice-modal *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
    

}

