/* ============================================================
   Seasonal skin — scope toàn bộ theo [data-theme] trên <html>.
   Bỏ data-theme => trang quay về evergreen, form/tracking không đổi.
   ============================================================ */

/* Décor dùng chung: không bắt sự kiện, clip trong wrapper riêng */
.season-decor { display: none; }

/* ------------------------------------------------------------
   CHRISTMAS
   ------------------------------------------------------------ */
:root[data-theme="christmas"] {
    --season-hero: #FBF7EF;
    --season-surface: #F1F7F3;
    --season-card: #FFFFFF;
    --season-heading: #173F35;
    --season-body: #475569;
    --season-accent: #B28A42;
    --season-berry: #9D3046;
    --season-border: #DFE8E0;
    --season-on-dark: #FFFFFF;
    --season-muted-dark: #DDEBE4;
    --cta-bg: #1463FF;
    --cta-hover: #0F4ED1;

    /* Token Tailwind (bg-tint, border-line) */
    --tint: var(--season-surface);
    --line: var(--season-border);
}

[data-theme="christmas"] .season-decor {
    display: block;
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    border-radius: inherit;
}
[data-theme="christmas"] .season-decor svg { position: absolute; }

[data-theme="christmas"] .season-heading { color: var(--season-heading); }

/* Header */
[data-theme="christmas"] .season-header { background: rgba(251, 247, 239, 0.95); }

/* Hero: kem + ánh champagne nhẹ; mép dưới là đống tuyết chuyển sang trắng */
[data-theme="christmas"] .season-hero {
    background:
        radial-gradient(ellipse 60% 55% at 85% 0%, rgba(178, 138, 66, 0.12), transparent 70%),
        radial-gradient(ellipse 45% 40% at 0% 10%, rgba(23, 63, 53, 0.05), transparent 70%),
        linear-gradient(to bottom, var(--season-hero), #F5F1E8);
}
[data-theme="christmas"] .season-hero .season-drift {
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 34px;
}
@media (min-width: 1024px) {
    [data-theme="christmas"] .season-hero .season-drift { height: 52px; }
}

/* Tuyết rơi nhẹ — chỉ trong hero, nằm sau nội dung; JS không tạo khi reduced-motion */
[data-theme="christmas"] .season-snow { position: absolute; inset: 0; }
/* Nền kem sáng: bông tuyết cần viền xanh băng để nổi rõ */
[data-theme="christmas"] .season-flake {
    position: absolute;
    top: -16px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #FFFFFF 0 45%, #D2E2EF 100%);
    box-shadow: 0 0 0 1px rgba(110, 145, 175, 0.55), 0 2px 5px rgba(23, 63, 53, 0.22);
    animation: season-fall linear infinite;
    will-change: top, transform;
}
/* Bông tuyết tinh thể 6 cánh */
[data-theme="christmas"] .season-flake--crystal {
    border-radius: 0;
    box-shadow: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237FA3C0' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17 20.7 7M12 2l-2.2 2.2M12 2l2.2 2.2M12 22l-2.2-2.2M12 22l2.2-2.2M3.3 7l.8 3M3.3 7l3-.8M20.7 17l-.8-3M20.7 17l-3 .8M3.3 17l3 .8M3.3 17l.8-3M20.7 7l-3-.8M20.7 7l-.8 3'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 1.5px #FFFFFF);
}
@keyframes season-fall {
    0%   { top: -16px; transform: translateX(0) rotate(0deg); }
    50%  { transform: translateX(var(--sway, 18px)) rotate(180deg); }
    100% { top: 100%; transform: translateX(0) rotate(360deg); }
}

/* Santa + tuần lộc: vùng trống phía trên eyebrow, chỉ desktop để form mobile không bị đẩy xuống */
[data-theme="christmas"] .season-santa { display: none; }
@media (min-width: 1024px) {
    [data-theme="christmas"] .season-santa {
        display: block;
        top: 6px;
        left: calc(max(0px, (100% - 1180px) / 2) + 290px);
        width: 250px;
        height: 70px;
        animation: season-float 4s ease-in-out infinite;
    }
}
@media (min-width: 1280px) {
    [data-theme="christmas"] .season-santa { width: 290px; height: 81px; left: calc((100% - 1180px) / 2 + 300px); }
}
@keyframes season-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-5px) rotate(1deg); }
}

/* Cây thông nhỏ đứng trên đống tuyết, chỉ ở lề ngoài container khi màn hình đủ rộng */
[data-theme="christmas"] .season-hero .season-tree { display: none; }
@media (min-width: 1360px) {
    [data-theme="christmas"] .season-hero .season-tree {
        display: block;
        bottom: 22px;
        width: 72px;
        height: 89px;
        left: calc((100% - 1180px) / 2 - 92px);
    }
    [data-theme="christmas"] .season-hero .season-tree--2 {
        width: 50px;
        height: 62px;
        bottom: 20px;
        left: calc((100% - 1180px) / 2 - 130px);
    }
}
@media (min-width: 1500px) {
    [data-theme="christmas"] .season-hero .season-tree { width: 96px; height: 119px; left: calc((100% - 1180px) / 2 - 130px); }
    [data-theme="christmas"] .season-hero .season-tree--2 { width: 64px; height: 79px; left: calc((100% - 1180px) / 2 - 180px); }
}

[data-theme="christmas"] .season-eyebrow {
    color: var(--season-heading);
    border-color: rgba(178, 138, 66, 0.45);
}
[data-theme="christmas"] .season-eyebrow > span { background: var(--season-berry); }

/* Cành thông: mobile chỉ 1 góc phải, rộng ≤ 88px */
[data-theme="christmas"] .season-pine {
    top: -6px;
    right: -14px;
    width: 88px;
    height: 52px;
    transform: scaleX(-1);
    opacity: 0.9;
}
[data-theme="christmas"] .season-pine--left,
[data-theme="christmas"] .season-ornament { display: none; }

@media (min-width: 768px) {
    /* Giữ đáy cành trên mép form (form desktop bắt đầu ở 56px) */
    [data-theme="christmas"] .season-pine { width: 120px; height: 71px; top: -16px; right: -10px; }
}

/* Desktop rộng: décor nằm ngoài container 1180px, không chạm headline/form */
@media (min-width: 1280px) {
    [data-theme="christmas"] .season-pine {
        top: -6px;
        width: 210px;
        height: 124px;
        right: calc((100% - 1180px) / 2 - 190px);
    }
    [data-theme="christmas"] .season-pine--left {
        display: block;
        right: auto;
        left: calc((100% - 1180px) / 2 - 200px);
        width: 190px;
        height: 112px;
        transform: none;
        opacity: 0.75;
    }
    [data-theme="christmas"] .season-ornament {
        display: block;
        top: 0;
        width: 30px;
        height: 90px;
        right: calc((100% - 1180px) / 2 - 50px);
        color: var(--season-berry);
    }
    [data-theme="christmas"] .season-ornament--2 { display: none; }
}
/* Quả châu thứ hai chỉ khi lề ngoài đủ rộng */
@media (min-width: 1440px) {
    [data-theme="christmas"] .season-ornament--1 { right: calc((100% - 1180px) / 2 - 60px); }
    [data-theme="christmas"] .season-ornament--2 {
        display: block;
        height: 130px;
        width: 26px;
        right: calc((100% - 1180px) / 2 - 100px);
        color: var(--season-accent);
    }
}

/* Form: trắng, viền xanh xám nhạt, shadow nhẹ */
[data-theme="christmas"] .season-card {
    background: var(--season-card);
    border-color: var(--season-border);
    box-shadow: 0 18px 44px -24px rgba(23, 63, 53, 0.28);
}

/* Nền section */
[data-theme="christmas"] .season-bg-surface { background-color: var(--season-surface); }
[data-theme="christmas"] .season-bg-white { background-color: #FFFFFF; }
[data-theme="christmas"] .season-bg-cream { background-color: var(--season-hero); }
[data-theme="christmas"] .season-divider { border-top: 1px solid var(--season-border); }

/* Final CTA: nền xanh thông, sao champagne ở góc */
[data-theme="christmas"] .season-final {
    background: var(--season-heading);
    border-color: var(--season-heading);
    color: var(--season-muted-dark);
    padding-bottom: 72px; /* chừa chỗ cho tuyết + cây thông dưới button */
}
@media (min-width: 768px) {
    [data-theme="christmas"] .season-final { padding-top: 56px; padding-bottom: 72px; }
}
[data-theme="christmas"] .season-final .season-drift {
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 26px;
}
[data-theme="christmas"] .season-final .season-tree--a { width: 40px; height: 50px; bottom: 12px; right: 22px; }
[data-theme="christmas"] .season-final .season-tree--b { width: 28px; height: 35px; bottom: 11px; right: 62px; }
[data-theme="christmas"] .season-holly { width: 46px; height: 29px; top: 8px; left: 12px; }
@media (min-width: 768px) {
    [data-theme="christmas"] .season-final .season-tree--a { width: 52px; height: 64px; right: 34px; }
    [data-theme="christmas"] .season-final .season-tree--b { width: 36px; height: 45px; right: 86px; }
    [data-theme="christmas"] .season-holly { width: 58px; height: 36px; top: 10px; left: 18px; }
}
[data-theme="christmas"] .season-final h2 { color: var(--season-on-dark); }
[data-theme="christmas"] .season-final [data-cta] {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}
[data-theme="christmas"] .season-star { color: var(--season-accent); }
/* Mobile: chỉ trong khoảng padding trên/dưới; desktop: góc trên phải, trên button */
[data-theme="christmas"] .season-star--1 { width: 24px; height: 24px; top: 9px; right: 18px; opacity: 0.9; }
[data-theme="christmas"] .season-star--2 { width: 11px; height: 11px; top: 14px; right: 50px; opacity: 0.7; }
[data-theme="christmas"] .season-star--3 { width: 10px; height: 10px; bottom: 12px; left: 18px; opacity: 0.55; }
@media (min-width: 768px) {
    [data-theme="christmas"] .season-star--1 { width: 32px; height: 32px; top: 12px; right: 24px; }
    [data-theme="christmas"] .season-star--2 { width: 13px; height: 13px; top: 18px; right: 66px; }
    [data-theme="christmas"] .season-star--3 { width: 12px; height: 12px; bottom: 16px; left: 24px; }
}

/* Footer: xanh thông đậm */
[data-theme="christmas"] .season-footer {
    background-color: #12332B;
    border-top: 4px solid var(--season-berry);
}

/* Sticky CTA mobile: nền cream */
[data-theme="christmas"] .season-sticky { background: rgba(251, 247, 239, 0.96); }
