/* ==========================================================================
   NOTICE POP-UP — global "the call is over" dialog (templates/components/
   notice_modal.html, wired up by static/js/components/notice_modal.js).

   Opened by the ACCREDITATION and SUBMIT A FILM buttons, which no longer
   navigate anywhere. Follows the house look: white card, maroon (#BE1333)
   accents, uppercase Magistral / BPG Nino labels, dimmed + blurred backdrop
   (same treatment as the event modal in css/pages/daily.css).
   ========================================================================== */

.notice-modal {
    position: fixed;
    inset: 0;
    z-index: 100000; /* above the fixed header (999) and the event modal (9999) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* The dialog ships hidden; JS flips the attribute to show it. */
.notice-modal[hidden] {
    display: none !important;
}

.notice-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: noticeModalFade 0.3s ease;
}

.notice-modal__box {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #fff;
    padding: clamp(30px, 5vw, 48px) clamp(22px, 5vw, 52px);
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    animation: noticeModalRise 0.35s ease;
}

.notice-modal__eyebrow {
    display: block;
    font-family: "Magistral", "BPG Nino Medium Caps", sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #BE1333;
}

.notice-modal__rule {
    display: block;
    width: 60px;
    height: 2px;
    margin: 14px auto 24px;
    background: #BE1333;
}

.notice-modal__view[hidden] {
    display: none !important;
}

.notice-modal__title {
    font-size: clamp(1.35rem, 3.4vw, 2rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #030A19;
    margin: 0 0 14px;
}

.notice-modal__text {
    font-size: 15px;
    line-height: 1.65;
    color: #555;
    margin: 0 0 30px;
}

.notice-modal__close {
    display: inline-block;
    min-width: 150px;
    padding: 12px 34px;
    background: #fff;
    color: #BE1333;
    border: 1px solid #BE1333;
    font-family: "Magistral", "BPG Nino Medium Caps", sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notice-modal__close:hover,
.notice-modal__close:focus-visible {
    background: #BE1333;
    color: #fff;
    border-color: #BE1333;
}

/* Scroll lock while the dialog is up (the class is toggled by the JS). */
body.notice-modal-open {
    overflow: hidden;
}

@keyframes noticeModalFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes noticeModalRise {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .notice-modal__close {
        width: 100%;
    }
}
