/* "Get our deals first" bottom sheet (markup in App.razor, behaviour in js/dealsSheet.js).
   Same look as the Book a Party save-your-booking sheet. */
.deals-overlay {
    position: fixed;
    inset: 0;
    z-index: 100002;
    display: flex;
    align-items: flex-end;
    background: rgba(34, 40, 92, 0.45);
    animation: deals-fade .25s ease-out;
    font-family: Nunito, sans-serif;
}

.deals-overlay[hidden] { display: none; }

/* The page behind is pinned by js/scrollLock.js. Touches on the dimmed part go
   nowhere, and scrolling inside the sheet never carries on into the page. */
.deals-overlay { touch-action: none; overscroll-behavior: contain; }

.deals-sheet {
    position: relative;
    width: 100%;
    max-height: 85vh;
    max-height: 85dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 14px max(20px, calc((100% - 640px) / 2)) 28px;
    border-top: 4px solid #22285C;
    border-radius: 26px 26px 0 0;
    background: #fff;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
    text-align: left;
    animation: deals-up .32s cubic-bezier(.2, .8, .2, 1);
}

@keyframes deals-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

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

.deals-handle {
    display: block;
    width: 48px;
    height: 5px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: #cfd5e6;
}

.deals-tag {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 12px;
    border: 2px solid #22285C;
    border-radius: 999px;
    background: #FFE116;
    color: #22285C;
    font-family: Poppins, sans-serif;
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.deals-sheet h2 {
    margin: 0 0 6px;
    font-family: 'Fredoka One', Poppins, sans-serif;
    font-size: 1.7rem;
    color: #22285C;
}

.deals-sub {
    margin: 0 0 14px;
    color: #5b6479;
    font-size: .98rem;
}

.deals-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px 16px;
}

@media (min-width: 640px) {
    .deals-fields { grid-template-columns: 1.4fr 1fr; }
}

.deals-sheet label {
    display: block;
    margin: 10px 0 4px;
    font-weight: 700;
    font-size: .92rem;
    color: #22285C;
}

.deals-req { color: #D6262D; }
.deals-opt { font-weight: 500; color: #8a91a5; }

.deals-sheet input {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #cfd5e6;
    border-radius: 12px;
    font-size: 1rem;
}

.deals-sheet input:focus {
    outline: none;
    border-color: #22285C;
}

/* The bot trap: off-screen, never seen or tabbed to by people. */
.deals-trap {
    position: absolute !important;
    left: -9999px;
    width: 1px !important;
    height: 1px;
    opacity: 0;
}

.deals-error {
    margin: 12px 0 0;
    color: #D6262D;
    font-weight: 600;
    font-size: .92rem;
}

.deals-error[hidden], .deals-done[hidden], .deals-form[hidden] { display: none; }

.deals-submit {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 22px auto 0;
    padding: 13px 20px;
    border: 3px solid #22285C;
    border-radius: 999px;
    background: #F05A9A;
    color: #fff;
    font-family: Poppins, sans-serif;
    font-weight: 800;
    font-size: 1.08rem;
    letter-spacing: .02em;
    box-shadow: 3px 3px 0 #22285C;
    cursor: pointer;
}

.deals-submit:disabled { opacity: .65; cursor: wait; }

.deals-fine {
    margin: 12px 0 0;
    text-align: center;
    color: #8a91a5;
    font-size: .82rem;
}

.deals-fine a { color: #22285C; }

.deals-done { text-align: center; padding: 6px 0 4px; }
.deals-done p { color: #5b6479; font-size: 1rem; margin: 0; }

.deals-close {
    position: absolute;
    top: 12px;
    right: max(16px, calc((100% - 640px) / 2 - 8px));
    border: 0;
    background: none;
    font-size: 1.9rem;
    line-height: 1;
    color: #8a91a5;
    cursor: pointer;
}

/* Optional picture (set in admin): a banner on top on phones, beside the form on wider screens. */
.deals-image {
    display: block;
    width: 100%;
    height: 130px;
    margin-bottom: 14px;
    border: 3px solid #22285C;
    border-radius: 16px;
    object-fit: cover;
}

@media (min-width: 760px) {
    .deals-sheet--image { padding-left: max(20px, calc((100% - 860px) / 2)); padding-right: max(20px, calc((100% - 860px) / 2)); }
    .deals-sheet--image .deals-close { right: max(16px, calc((100% - 860px) / 2 - 8px)); }
    .deals-sheet--image .deals-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; }
    .deals-image { height: 240px; margin: 0; box-shadow: 4px 4px 0 #22285C; }
}

.deals-main { min-width: 0; }

/* On phones, keep the picture clear of the close button. */
@media (max-width: 759px) {
    .deals-sheet--image .deals-handle { margin-bottom: 30px; }
}
