/* ── Eterna Age Verification Overlay v1.1 ────────────────────────────────── */

/* Backdrop */
#eav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: inherit;
}

/* Modal — fixed 700×700, centered */
#eav-modal {
    background: var(--wp--preset--color--base, #ffffff);
    color: var(--wp--preset--color--contrast, #111111);
    border-radius: 16px;
    width: 700px;
    height: 700px;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 56px;
    box-sizing: border-box;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
    animation: eav-fadeIn 0.35s ease;
    overflow: hidden;
}

@keyframes eav-fadeIn {
    from { opacity: 0; transform: scale(0.96) translateY(12px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* Logo */
#eav-logo {
    margin-bottom: 28px;
}
#eav-logo img {
    max-height: 72px;
    width: auto;
}
#eav-site-name {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--wp--preset--color--contrast, #111);
}

/* Headings */
#eav-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--wp--preset--color--contrast, #111);
}
#eav-subtitle {
    font-size: 1rem;
    opacity: 0.65;
    margin: 0 0 32px;
    line-height: 1.5;
}

/* Form */
#eav-form {
    width: 100%;
}
#eav-form fieldset {
    border: none;
    padding: 0;
    margin: 0 0 18px;
}
#eav-form legend {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
    margin-bottom: 14px;
    display: block;
    width: 100%;
    text-align: center;
}

/* DOB fields */
#eav-dob-fields {
    display: flex;
    gap: 16px;
    justify-content: center;
}
.eav-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}
.eav-field label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.5;
}
.eav-field input {
    width: 80px;
    padding: 14px 8px;
    font-size: 1.2rem;
    text-align: center;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 10px;
    background: transparent;
    color: var(--wp--preset--color--contrast, #111);
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}
.eav-field input::-webkit-outer-spin-button,
.eav-field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
.eav-field input:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary, #000);
}
.eav-field:last-child input {
    width: 100px;
}

/* Error message */
#eav-error {
    min-height: 22px;
    font-size: 0.875rem;
    color: #e53e3e;
    margin: 6px 0 14px;
}

/* Buttons */
#eav-submit,
#eav-deny {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

#eav-submit {
    background: var(--wp--preset--color--primary, #111111);
    color: var(--wp--preset--color--base, #ffffff);
    margin-bottom: 12px;
}
#eav-submit:hover  { opacity: 0.85; }
#eav-submit:active { transform: scale(0.98); }
#eav-submit:disabled { opacity: 0.45; cursor: not-allowed; }

#eav-deny {
    background: transparent;
    color: var(--wp--preset--color--contrast, #111111);
    border: 2px solid rgba(0,0,0,0.18);
    font-size: 0.85rem;
}
#eav-deny:hover { background: rgba(0,0,0,0.05); }

/* Legal */
#eav-legal {
    font-size: 0.75rem;
    opacity: 0.4;
    margin-top: 22px;
}
#eav-legal a {
    color: inherit;
    text-decoration: underline;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 740px) {
    #eav-modal {
        width: 95vw;
        height: auto;
        min-height: 90vh;
        padding: 40px 28px 36px;
        border-radius: 12px;
    }
}
