/**
 * ST Age Verification
 * Developed by SimonTodd
 */

#stav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#stav-overlay.stav-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#stav-overlay * {
    box-sizing: border-box;
}

.stav-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: stav-fadeIn 0.3s ease;
}

@keyframes stav-fadeIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.stav-logo {
    max-width: 160px;
    max-height: 60px;
    margin-bottom: 20px;
}

.stav-modal h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
}

.stav-modal > p {
    margin: 0 0 20px;
    color: #555;
    font-size: 14px;
}

.stav-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.stav-date-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.stav-field {
    flex: 1;
    text-align: left;
}

.stav-field span {
    display: block;
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stav-field select {
    width: 100%;
    padding: 12px 10px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.stav-field select:hover {
    border-color: #ccc;
}

.stav-field select:focus {
    outline: none;
    border-color: var(--stav-accent, #006fb4);
}

.stav-error {
    color: #dc3545;
    font-size: 13px;
    min-height: 18px;
    margin-bottom: 12px;
}

.stav-buttons {
    display: flex;
    gap: 10px;
}

.stav-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.stav-btn-primary {
    background: var(--stav-accent, #006fb4);
    color: #fff;
}

.stav-btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.stav-btn-secondary {
    background: #f0f0f0;
    color: #555;
}

.stav-btn-secondary:hover {
    background: #e5e5e5;
}

.stav-disclaimer {
    margin: 16px 0 0;
    font-size: 11px;
    color: #999;
}

@media (max-width: 440px) {
    .stav-modal {
        padding: 24px 20px;
    }
    
    .stav-date-inputs {
        flex-wrap: wrap;
    }
    
    .stav-field:last-child {
        flex: 100%;
    }
}
