#christmasOffer {
    --christmas-ink: #13352d;
    --christmas-paper: #fcf9f1;
    --christmas-gold: #e7c584;
    position: fixed;
    inset: 0;
    margin: auto;
    padding: 0;
    width: min(1080px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    height: fit-content;
    overflow: auto;
    border: 1px solid #d9bf8b;
    border-radius: 20px;
    background: var(--christmas-paper);
    color: var(--christmas-ink);
    box-shadow: 0 24px 90px #061b1a70;
}

#christmasOffer::backdrop {
    background: #0b1822b5;
    backdrop-filter: blur(6px);
}

.christmas-shell {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

.christmas-art {
    isolation: isolate;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: radial-gradient(ellipse at 50% 74%, #327060, #133e33 55%, #092c26);
}

.christmas-art::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        radial-gradient(circle, #ffebbc 0 1px, transparent 2px) 0 0 / 77px 87px,
        radial-gradient(circle, #e8f6ed 0 1px, transparent 2px) 20px 39px / 57px 61px;
    opacity: .28;
    mask-image: linear-gradient(transparent, #000 34%, #000);
    animation: christmas-snow-twinkle 9s ease-in-out infinite alternate;
}

.christmas-brand {
    color: #f8e4b9;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.christmas-art p {
    margin: 24px 0 0;
    color: #fff8e9;
    font: 400 clamp(2.6rem, 4.5vw, 4.3rem)/.96 Georgia, serif;
    letter-spacing: -.06em;
}

.christmas-art em { color: var(--christmas-gold); }

.christmas-tree {
    position: relative;
    flex: 1;
    width: min(100%, 240px);
    height: 280px;
    min-height: 275px;
    max-height: 325px;
    margin: auto auto 0;
}

.christmas-star {
    position: absolute;
    z-index: 1;
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
    color: #fff0bb;
    font-size: 2.4rem;
    text-shadow: 0 0 22px #f9cc6b;
    animation: christmas-star-twinkle 5.5s ease-in-out infinite alternate;
}

.christmas-branch {
    position: absolute;
    left: 50%;
    width: 92%;
    height: 48%;
    transform: translateX(-50%);
    clip-path: polygon(50% 0, 98% 87%, 77% 96%, 50% 100%, 23% 96%, 2% 87%);
    background: linear-gradient(155deg, #d9b974, #618e6f 35%, #285847 70%, #143e35);
}

.christmas-branch::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 32% 72%, #ffe0a2 0 2px, transparent 4px),
        radial-gradient(circle at 60% 56%, #ffdd97 0 2px, transparent 4px),
        radial-gradient(circle at 73% 81%, #e7a28e 0 2px, transparent 4px);
    opacity: .8;
    animation: christmas-light-twinkle 4.5s ease-in-out infinite alternate;
}

.christmas-branch:nth-child(2) { z-index: 3; top: 19%; width: 53%; height: 35%; }
.christmas-branch:nth-child(3) { z-index: 2; top: 33%; width: 72%; height: 41%; }
.christmas-branch:nth-child(4) { z-index: 1; top: 47%; }
.christmas-branch:nth-child(3)::after { animation-delay: -3s; }
.christmas-branch:nth-child(4)::after { animation-delay: -6s; }
.christmas-trunk {
    position: absolute;
    bottom: 0;
    left: 45%;
    width: 10%;
    height: 16%;
    border-radius: 3px;
    background: linear-gradient(90deg, #826b46, #b99664);
}

.christmas-content { padding: clamp(24px, 4vw, 38px); }
.christmas-eyebrow {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding-right: 36px;
    color: #8d392f;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.christmas-eyebrow span { color: #8c5b18; font-size: 1.2rem; }
.christmas-content h2 {
    margin: 12px 0;
    color: var(--christmas-ink);
    font: 400 clamp(1.85rem, 3.8vw, 2.65rem)/1.07 Georgia, serif;
    letter-spacing: -.035em;
}
.christmas-content h2 em { color: #953e32; }
#christmas-description { margin: 0; color: #495d56; font-size: .9rem; line-height: 1.55; }

.christmas-close {
    position: absolute;
    z-index: 5;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #c8d1c6;
    border-radius: 50%;
    background: #fffdf7;
    color: var(--christmas-ink);
    font: 24px/1 Arial, sans-serif;
    cursor: pointer;
}

.christmas-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.christmas-fields label { margin: 0; color: var(--christmas-ink); font-size: .78rem; font-weight: 650; }
.christmas-fields input,
.christmas-fields select {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-top: 4px;
    padding: 8px 11px;
    border: 1px solid #b7c5ba;
    border-radius: 8px;
    background: #fffefa;
    color: #19392f;
    font: inherit;
    font-weight: 400;
}
.christmas-full { grid-column: 1 / -1; }
.christmas-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    margin-top: 14px;
    padding: 10px;
    border: 0;
    border-radius: 8px;
    background: #154839;
    color: #fff8e8;
    font-size: .9rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}
.christmas-submit:hover { background: #22624d; color: #fff8e8; }
.christmas-submit:disabled { opacity: .7; cursor: wait; }
.christmas-note, .christmas-terms {
    margin: 8px 0 0;
    color: #50645c;
    font-size: .72rem;
    text-align: center;
}
.christmas-note a, .christmas-dismiss { color: #245945; text-decoration: underline; }
.christmas-status { margin: 8px 0 0; color: #923c34; font-size: .8rem; }
.christmas-status:empty { display: none; }
.christmas-trap { position: absolute; left: -10000px; }
.christmas-success { padding-top: 22px; text-align: center; }
.christmas-success > span { color: #8c5b18; font-size: 2rem; }
.christmas-success h3 { color: var(--christmas-ink); font: 400 1.8rem Georgia, serif; }
.christmas-dismiss { padding: 12px; border: 0; background: none; cursor: pointer; }
#christmasOffer [hidden] { display: none !important; }
#christmasOffer :focus-visible { outline: 2px solid #9a681f; outline-offset: 3px; }

@keyframes christmas-snow-twinkle {
    to { opacity: .38; }
}

@keyframes christmas-star-twinkle {
    to { text-shadow: 0 0 28px #f9cc6b, 0 0 8px #fff0bb80; }
}

@keyframes christmas-light-twinkle {
    to { opacity: .58; }
}

@media (prefers-reduced-motion: reduce) {
    .christmas-art::before, .christmas-star, .christmas-branch::after { animation: none; }
}

@media (min-width: 900px) {
    .christmas-fields .christmas-full { grid-column: auto; }
}

@media (max-width: 640px) {
    #christmasOffer { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
    .christmas-shell { grid-template-columns: 1fr; }
    .christmas-art { padding: 17px 20px; }
    .christmas-art p { margin-top: 7px; font-size: 2rem; }
    .christmas-art p br, .christmas-tree { display: none; }
    .christmas-art p em { margin-left: .15em; }
    .christmas-content { padding: 18px 20px; }
    .christmas-fields input, .christmas-fields select { font-size: 1rem; }
}

@media (max-width: 390px) {
    .christmas-fields { grid-template-columns: 1fr; }
    .christmas-close { top: 8px; right: 8px; }
}
