/**
 * Age Verification Modal Styles - ALAVAPE.COM
 * Modèle inspiré du standard Le Petit Vapoteur adapté à la charte ALAVAPE
 */

/* Lock body scrolling when modal is open */
html.an_verification-open,
body.an_verification-open {
    overflow: hidden !important;
    height: 100% !important;
}

/* Dark Blurred Overlay */
.an_verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999998;
    display: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.an_verification-overlay.is-visible {
    display: block !important;
}

/* Modal Outer Wrap */
.an_verification_modal-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px 14px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: opacity 0.3s ease;
}

.an_verification_modal-wrap.is-visible {
    display: flex !important;
}

/* Explicit hidden utility */
.ala-hidden,
#ala_age_modal_wrap.ala-hidden,
#ala_age_overlay.ala-hidden,
#an_verification_modal.ala-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* The Modal Card */
#an_verification_modal.ala_age_modal {
    position: relative !important;
    width: 100% !important;
    max-width: 500px !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35) !important;
    overflow: visible !important;
    margin: 40px auto 20px auto !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    box-sizing: border-box !important;
    color: #222222 !important;
    border: none !important;
}

/* Top Floating Circular Badge */
.ala_age_badge {
    position: absolute !important;
    top: -45px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 88px !important;
    height: 88px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 4px solid #ffffff !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    z-index: 10 !important;
}

.ala_age_logo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* =========================================================
   ZONE 1 : PARTIE SUPÉRIEURE (BLANCHE)
========================================================= */
.ala_age_zone_upper {
    background: #ffffff !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 50px 26px 14px 26px !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

/* Warning Header Row (-18 + slogan) */
.ala_age_warning_row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
}

.ala_age_18_icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    border: 2px solid #e53935 !important;
    color: #e53935 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

.ala_age_warning_title {
    font-size: 15px !important;
    font-weight: 900 !important;
    color: #1a1a1a !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    margin: 0 !important;
}

/* Legal Attestation Text */
.ala_age_legal_text {
    font-size: 11px !important;
    line-height: 1.45 !important;
    color: #555555 !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    margin: 0 0 18px 0 !important;
    text-align: center !important;
}

/* Date of Birth Section */
.ala_age_dob_block {
    margin-bottom: 12px !important;
}

.ala_age_dob_title {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #4cbb00 !important;
    text-transform: uppercase !important;
    margin: 0 0 12px 0 !important;
    letter-spacing: 0.3px !important;
    text-align: center !important;
}

.ala_age_dob_inputs_row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.ala_dob_group {
    flex-shrink: 0 !important;
}

.ala_age_input_dob {
    width: 60px !important;
    height: 44px !important;
    border: 2px solid #4cbb00 !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #1a1a1a !important;
    outline: none !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.ala_age_input_dob.ala_age_input_year {
    width: 82px !important;
}

.ala_age_input_dob::placeholder {
    color: #aaaaaa !important;
    font-weight: 600 !important;
}

.ala_age_input_dob:focus {
    border-color: #388e3c !important;
    box-shadow: 0 0 0 3px rgba(76, 187, 0, 0.22) !important;
}

/* Button ENTRER */
.ala_age_btn_enter {
    height: 44px !important;
    padding: 0 18px !important;
    background: #4cbb00 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    box-sizing: border-box !important;
}

.ala_age_btn_enter:hover {
    background: #43a047 !important;
}

.ala_age_btn_enter:active {
    transform: scale(0.97) !important;
}

/* Divider OU */
.ala_age_divider {
    position: relative !important;
    margin: 14px 0 0 0 !important;
    text-align: center !important;
}

.ala_age_divider::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: #e0ded8 !important;
    z-index: 1 !important;
}

.ala_age_divider_text {
    display: inline-block !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #333333 !important;
    background: #ffffff !important;
    padding: 0 14px !important;
    position: relative !important;
    z-index: 2 !important;
}

/* =========================================================
   ZONE 2 : PARTIE INFÉRIEURE (BEIGE CHAUD)
========================================================= */
.ala_age_zone_lower {
    background: #f1ece4 !important;
    border-radius: 0 0 20px 20px !important;
    padding: 18px 26px 22px 26px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    border-top: 1px solid #ebe5dc !important;
}

.ala_age_client_title {
    font-size: 16px !important;
    font-weight: 900 !important;
    color: #4cbb00 !important;
    text-transform: uppercase !important;
    margin: 0 0 14px 0 !important;
    letter-spacing: 0.4px !important;
    text-align: center !important;
}

/* Login Fields */
.ala_age_login_fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
}

.ala_login_field_wrap {
    width: 100% !important;
}

.ala_age_input_login {
    width: 100% !important;
    height: 42px !important;
    border: 1px solid #d4cdc3 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #222222 !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.ala_age_input_login::placeholder {
    color: #a0998f !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
}

.ala_age_input_login:focus {
    border-color: #4cbb00 !important;
    box-shadow: 0 0 0 3px rgba(76, 187, 0, 0.22) !important;
}

/* Button S'IDENTIFIER */
.ala_age_btn_login {
    width: 100% !important;
    height: 44px !important;
    background: #4cbb00 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    margin-top: 4px !important;
    box-sizing: border-box !important;
}

.ala_age_btn_login:hover {
    background: #3fa500 !important;
}

.ala_age_btn_login:active {
    transform: scale(0.98) !important;
}

.ala_age_btn_login:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

/* Error Messages */
.ala_age_error_msg {
    background: #ffebee !important;
    color: #c62828 !important;
    border: 1px solid #ffcdd2 !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin-top: 6px !important;
}

/* Footer / Disclaimer */
.ala_age_footer {
    margin-top: 14px !important;
    padding-top: 6px !important;
}

.ala_age_footer_ethics {
    font-size: 12px !important;
    color: #555555 !important;
    line-height: 1.4 !important;
    margin: 0 0 5px 0 !important;
    font-weight: 500 !important;
}

.ala_age_footer_legal {
    font-size: 11px !important;
    color: #777777 !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

.ala_age_footer_legal a {
    color: #4cbb00 !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    transition: color 0.2s ease !important;
}

.ala_age_footer_legal a:hover {
    color: #388e3c !important;
}

/* =========================================================
   RESPONSIVE MOBILE (< 480px)
========================================================= */
@media (max-width: 480px) {
    .ala_age_badge {
        width: 74px !important;
        height: 74px !important;
        top: -38px !important;
    }

    .ala_age_zone_upper {
        padding: 42px 16px 12px 16px !important;
    }

    .ala_age_zone_lower {
        padding: 16px 16px 18px 16px !important;
    }

    .ala_age_warning_title {
        font-size: 13.5px !important;
    }

    .ala_age_legal_text {
        font-size: 10px !important;
        line-height: 1.35 !important;
    }

    .ala_age_dob_title {
        font-size: 13.5px !important;
    }

    .ala_age_input_dob {
        width: 48px !important;
        height: 40px !important;
        font-size: 15px !important;
    }

    .ala_age_input_dob.ala_age_input_year {
        width: 66px !important;
    }

    .ala_age_btn_enter {
        height: 40px !important;
        padding: 0 12px !important;
        font-size: 13px !important;
    }

    .ala_age_client_title {
        font-size: 14.5px !important;
    }

    .ala_age_input_login {
        height: 40px !important;
        font-size: 12.5px !important;
    }

    .ala_age_btn_login {
        height: 40px !important;
        font-size: 14px !important;
    }
}
