/* Explain: CSS for the new patient offer popup styling and animations. */
/* New patient 15% offer popup for the landing page. */
.promo-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(31, 46, 35, 0.42);
    backdrop-filter: blur(4px);
}

.promo-overlay.is-open {
    display: flex;
    min-height: 100%;
    align-items: center;
    justify-content: center;
    animation: promo-fade 240ms ease;
}

.promo-panel {
    position: relative;
    width: 100%;
    max-width: 30rem;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    background: var(--background-color);
    border-radius: 2.2rem;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    animation: promo-rise 300ms ease;
}

.promo-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--surface-color);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: background 300ms ease, color 300ms ease;
}

.promo-close:hover {
    background: var(--button-color);
}

@keyframes promo-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes promo-rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .promo-overlay.is-open,
    .promo-panel {
        animation: none;
    }
}