:root {
    --hero-blue-1: #223153;
    --hero-blue-2: #31466e;
    --hero-blue-3: #18223c;

    --pine: #516d65;
    --warm: #e6c374;
    --gold: #d2ab57;
    --gold-dark: #9e7731;
    --red: #ad4741;
    --text: #233129;
    --muted: #6b746f;
    --line: #ebe3d8;
    --green-soft: #eef5ed;
    --taken-text: #5f655f;
    --shadow: 0 22px 55px rgba(28, 40, 62, .12);
    --shadow-soft: 0 10px 28px rgba(28, 40, 62, .08);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    line-height: 1.58;
    background:
        radial-gradient(circle at 12% 10%, rgba(217,184,106,.13), transparent 28rem),
        radial-gradient(circle at 88% 8%, rgba(222,232,252,.45), transparent 30rem),
        linear-gradient(180deg, #fffdf9 0%, #f8f3ea 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image: radial-gradient(circle, rgba(255,255,255,.7) 0 1.2px, transparent 1.4px);
    background-size: 54px 54px;
    opacity: .16;
}

a {
    color: inherit;
    text-underline-offset: 3px;
}

button,
input,
textarea {
    font: inherit;
}

.snow-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
}

.snow-layer-one {
    opacity: .16;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.92) 0 1.7px, transparent 2px),
        radial-gradient(circle, rgba(255,255,255,.72) 0 1px, transparent 1.2px);
    background-size: 160px 160px, 100px 100px;
    background-position: 0 0, 34px 52px;
}

.snow-layer-two {
    opacity: .06;
    background-image: radial-gradient(circle, rgba(255,255,255,.9) 0 2.2px, transparent 2.5px);
    background-size: 220px 220px;
    background-position: 70px 34px;
}

.page-shell {
    min-height: 100vh;
    padding: 30px 0 50px;
}

.wrap {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(250px, .9fr) minmax(0, 1.4fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    min-height: 530px;
    padding: clamp(36px, 5vw, 64px);
    border-radius: 36px;
    color: #fff;
    background:
        radial-gradient(circle at 78% 13%, rgba(255,255,255,.20), transparent 18rem),
        radial-gradient(circle at 74% 20%, rgba(217,184,106,.18), transparent 22rem),
        radial-gradient(circle at 18% 0%, rgba(255,255,255,.08), transparent 16rem),
        linear-gradient(145deg, var(--hero-blue-2) 0%, var(--hero-blue-1) 42%, var(--hero-blue-3) 100%);
    box-shadow: var(--shadow);
}

.hero::before {
    content: "★";
    position: absolute;
    right: 44px;
    top: 26px;
    font-size: 8.3rem;
    line-height: 1;
    color: rgba(247, 229, 174, .16);
    pointer-events: none;
    text-shadow: 0 0 50px rgba(245, 222, 157, .12);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 40%, rgba(255,255,255,.05), transparent 35rem);
}

.hero-stars {
    position: absolute;
    inset: 20px 30px auto auto;
    display: flex;
    gap: 18px;
    color: rgba(255,246,214,.83);
    font-size: 1rem;
}

.hero-stars span:nth-child(1) { transform: translateY(8px); font-size: .95rem; opacity: .75; }
.hero-stars span:nth-child(2) { transform: translateY(24px); font-size: .70rem; opacity: .72; }
.hero-stars span:nth-child(3) { transform: translateY(0px); font-size: 1.25rem; }
.hero-stars span:nth-child(4) { transform: translateY(18px); font-size: .82rem; opacity: .72; }
.hero-stars span:nth-child(5) { transform: translateY(6px); font-size: 1rem; }

.brand,
.hero-copy {
    position: relative;
    z-index: 3;
}

.brand {
    align-self: start;
    padding-top: 8px;
}

.brand-link {
    display: inline-block;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: min(100%, 430px);
    height: auto;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,.14));
    transition: transform .2s ease, filter .2s ease;
}

.brand-link:hover .brand-logo {
    transform: translateY(-3px);
    filter: drop-shadow(0 16px 28px rgba(0,0,0,.19));
}

.brand-link:focus-visible {
    outline: 3px solid rgba(255,248,210,.8);
    outline-offset: 7px;
    border-radius: 8px;
}

.hero-copy {
    padding-bottom: 86px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #f8e7b5;
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: #5c6674;
}

h1 {
    margin: 0 0 23px;
    font-size: clamp(2.6rem, 5.4vw, 4.9rem);
    line-height: .95;
    letter-spacing: -.052em;
}

h2 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    line-height: 1.12;
    letter-spacing: -.03em;
}

.hero-copy p {
    margin: .78rem 0;
    color: rgba(255,255,255,.93);
}

.hero-copy .lead {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 630;
}

.hero-copy a {
    color: #fff;
    font-weight: 700;
}

.deadline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 12px;
    color: #fff !important;
    background: rgba(255,248,220,.12);
    border: 1px solid rgba(255,248,220,.18);
    backdrop-filter: blur(2px);
}

.deadline-star {
    color: #f8e2a0;
}

.hero-scene {
    position: absolute;
    inset: auto 0 0 0;
    height: 170px;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.scene-star {
    position: absolute;
    color: rgba(242, 221, 156, .82);
    text-shadow: 0 0 18px rgba(236, 202, 108, .35);
    line-height: 1;
}

.scene-star-a { left: 9%; bottom: 84px; font-size: 1.7rem; opacity: .85; }
.scene-star-b { left: 22%; bottom: 109px; font-size: 1rem; opacity: .72; }
.scene-star-c { right: 28%; bottom: 88px; font-size: 1.35rem; opacity: .80; }
.scene-star-d { right: 12%; bottom: 116px; font-size: 2rem; opacity: .92; }
.scene-star-e { left: 49%; bottom: 68px; font-size: .92rem; opacity: .72; }
.scene-star-f { left: 63%; bottom: 118px; font-size: 1.15rem; opacity: .74; }

.village {
    position: absolute;
    bottom: 34px;
    background: rgba(240, 245, 255, .16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.village i {
    position: absolute;
    background: rgba(247, 226, 160, .95);
    box-shadow: 0 0 10px rgba(247, 226, 160, .26);
}

.chalet {
    width: 74px;
    height: 44px;
    border-radius: 5px 5px 0 0;
}

.chalet::before {
    content: "";
    position: absolute;
    left: -10px;
    top: -28px;
    width: 0;
    height: 0;
    border-left: 47px solid transparent;
    border-right: 47px solid transparent;
    border-bottom: 30px solid rgba(240, 245, 255, .16);
}

.chalet i {
    width: 12px;
    height: 15px;
    bottom: 12px;
}

.chalet i:first-child { left: 17px; }
.chalet i:last-child { right: 17px; }

.chalet-a { left: 9%; transform: scale(.82); }
.chalet-b { left: 23%; transform: scale(1.03); }
.chalet-c { right: 13%; transform: scale(.90); }

.church {
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 58px;
    border-radius: 5px 5px 0 0;
    background: rgba(240, 245, 255, .18);
}

.church::before {
    content: "";
    position: absolute;
    left: 7px;
    top: -16px;
    width: 24px;
    height: 24px;
    background: rgba(240, 245, 255, .18);
    clip-path: polygon(50% 0%, 100% 45%, 100% 100%, 0 100%, 0 45%);
}

.church::after {
    content: "";
    position: absolute;
    left: 16px;
    top: -44px;
    width: 6px;
    height: 28px;
    background: rgba(240, 245, 255, .22);
    border-radius: 2px;
}

.church i:nth-child(1) {
    width: 4px;
    height: 12px;
    left: 17px;
    top: -54px;
    background: rgba(240,245,255,.32);
    box-shadow: none;
}

.church i:nth-child(2) {
    width: 12px;
    height: 16px;
    left: 13px;
    bottom: 12px;
}

.church i:nth-child(3) {
    width: 8px;
    height: 8px;
    left: 15px;
    bottom: 35px;
}

.snowdrift {
    position: absolute;
    left: -5%;
    width: 110%;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.snowdrift-back {
    bottom: 14px;
    height: 74px;
    background: rgba(237, 244, 255, .84);
}

.snowdrift-front {
    bottom: -8px;
    height: 96px;
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(239,244,255,.98) 100%);
}

.error,
.success,
.form-section {
    margin: 28px 0;
    padding: clamp(22px, 4vw, 36px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255,253,248,.98);
    box-shadow: var(--shadow-soft);
}

.error {
    border-left: 5px solid var(--red);
}

.error p {
    margin: .3rem 0;
}

.success {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding-top: 48px;
    padding-bottom: 48px;
}

.success-decoration {
    color: var(--gold);
    letter-spacing: .6rem;
    margin-bottom: 14px;
}

.success-icon {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--pine);
    font-size: 1.9rem;
    font-weight: 900;
}

.calendar-section {
    margin: 48px 0 32px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 8px;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-size: .9rem;
}

.legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.free-dot { background: var(--warm); box-shadow: 0 0 7px rgba(216,169,63,.4); }
.taken-dot { background: #bfc2bd; }
.selected-dot { background: var(--pine); }

.muted {
    color: var(--muted);
}

.days {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.day-choice {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.day-choice:focus-visible + .day {
    outline: 3px solid var(--hero-blue-2);
    outline-offset: 3px;
}

.selected-state {
    display: none;
}

.day-choice:checked + .day .free-state {
    display: none;
}

.day-choice:checked + .day .selected-state {
    display: inline;
}

.day {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    padding: 18px 14px 16px;
    border: 1px solid #eee6d8;
    border-radius: 22px;
    color: var(--text);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        radial-gradient(circle at 50% 28%, rgba(255,241,194,.95), transparent 4.4rem),
        linear-gradient(180deg, #fffdfa 0%, #fff8ea 100%);
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.day-star {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.3rem;
    line-height: 1;
    color: var(--gold);
    text-shadow: 0 0 22px rgba(217, 184, 106, .42);
}

.day-number {
    position: relative;
    z-index: 2;
    font-size: 2rem;
    font-weight: 880;
    line-height: 1;
    letter-spacing: -.045em;
}

.day-month {
    position: relative;
    z-index: 2;
    margin-top: 3px;
    font-weight: 700;
}

.day small {
    position: relative;
    z-index: 2;
    margin-top: 9px;
    font-size: .71rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.day.free {
    cursor: pointer;
}

.day.free small {
    color: var(--gold-dark);
}

.day.free:hover {
    transform: translateY(-5px);
    box-shadow: 0 17px 34px rgba(28, 40, 62, .12);
    border-color: rgba(210, 171, 87, .42);
}

.day.free:hover .day-star {
    color: #e4b74e;
    text-shadow: 0 0 26px rgba(217,184,106,.58);
}

.day-choice:checked + .day {
    outline: 3px solid var(--hero-blue-2);
    outline-offset: 2px;
    background:
        radial-gradient(circle at 50% 28%, rgba(255,241,194,.98), transparent 4.6rem),
        linear-gradient(180deg, #f6fbf2 0%, #eef6e8 100%);
    transform: translateY(-3px);
    box-shadow:
        0 0 0 6px rgba(49,70,110,.10),
        0 16px 32px rgba(28,40,62,.12);
}

.day-choice:checked + .day::after {
    content: "✓";
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 4;
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--hero-blue-2);
    color: #fff;
    font-weight: 900;
}

.day.taken {
    color: var(--taken-text);
    cursor: not-allowed;
    background: linear-gradient(180deg, #f1f0eb 0%, #e8e7e2 100%);
    box-shadow: none;
    border-color: #dfddd7;
}

.day.taken .day-star {
    color: #c1c0b9;
    text-shadow: none;
}

.form-section {
    position: relative;
    overflow: hidden;
    scroll-margin-top: 18px;
}

.form-section::after {
    content: "★";
    position: absolute;
    right: 26px;
    bottom: 10px;
    font-size: 10rem;
    line-height: 1;
    color: rgba(217,184,106,.08);
    pointer-events: none;
}

.form-stars {
    position: absolute;
    right: 24px;
    top: 19px;
    color: rgba(217,184,106,.55);
    letter-spacing: .18rem;
}

.selected {
    position: relative;
    z-index: 2;
    min-height: 56px;
    margin: 22px 0 28px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px dashed #ccc5b8;
    border-radius: 13px;
    background: #fbfaf6;
    color: var(--muted);
}

.selected.has-date {
    border-style: solid;
    border-color: rgba(49,70,110,.24);
    background: #f2f6fc;
    color: var(--hero-blue-1);
}

.selected-check {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--hero-blue-2);
    color: #fff;
    font-weight: 900;
}

.grid,
.apero-times {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

label {
    position: relative;
    z-index: 2;
    display: block;
    margin-bottom: 17px;
    font-size: .94rem;
    font-weight: 730;
}

input,
textarea {
    width: 100%;
    margin-top: 6px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    transition: border-color .18s ease, box-shadow .18s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--hero-blue-2);
    box-shadow: 0 0 0 4px rgba(49,70,110,.12);
}

.comment-field {
    min-height: 110px;
    resize: vertical;
}

fieldset {
    position: relative;
    z-index: 2;
    margin: 7px 0 19px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, #fffdf8 0%, #fbf8ef 100%);
}

legend {
    padding: 0 8px;
    font-weight: 800;
}

.inline,
.check {
    font-weight: 500;
}

.inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 24px 0 0;
}

.inline input,
.check input {
    width: auto;
}

.privacy-note {
    position: relative;
    z-index: 2;
    margin: 22px 0 10px;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fbfaf6;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 500;
}

.privacy-note p {
    margin: 0;
}

.privacy-note a {
    color: var(--hero-blue-2);
    font-weight: 700;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 18px 0 22px;
}

.check input {
    margin-top: 4px;
}

.submit,
.button {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 51px;
    padding: 12px 22px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--hero-blue-2), var(--hero-blue-1));
    color: #fff;
    font-weight: 820;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(31,47,87,.19);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.submit:hover,
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 27px rgba(31,47,87,.24);
}

.submit span {
    color: #f2dc9f;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

footer {
    margin-top: 48px;
    padding: 30px 0 4px;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--muted);
}

.footer-stars {
    margin-bottom: 8px;
    color: var(--gold);
    letter-spacing: .45rem;
}

.footer-brand {
    margin-bottom: 3px;
    color: var(--text);
    font-weight: 850;
}

.footer-links {
    margin-top: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--hero-blue-1);
    font-weight: 680;
}

@media (max-width: 940px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 25px;
        padding-bottom: 140px;
    }

    .brand-logo {
        width: min(100%, 360px);
    }

    .hero-copy {
        padding-bottom: 0;
    }

    .days {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .snow-layer-one { opacity: .11; }
    .snow-layer-two { opacity: .04; }

    .page-shell {
        padding: 12px 0 34px;
    }

    .wrap {
        width: min(100% - 20px, 1100px);
    }

    .hero {
        padding: 24px 18px 128px;
        border-radius: 24px;
    }

    .hero::before {
        right: 18px;
        top: 18px;
        font-size: 5rem;
    }

    .brand-logo {
        width: min(100%, 300px);
    }

    h1 {
        font-size: clamp(2.35rem, 12vw, 3.45rem);
    }

    .hero-copy p {
        font-size: .98rem;
    }

    .hero-stars {
        right: 12px;
        gap: 12px;
        opacity: .52;
    }

    .scene-star-a { left: 7%; bottom: 74px; }
    .scene-star-b { left: 22%; bottom: 98px; }
    .scene-star-c { right: 29%; bottom: 80px; }
    .scene-star-d { right: 9%; bottom: 103px; font-size: 1.7rem; }
    .scene-star-e { left: 52%; bottom: 60px; }
    .scene-star-f { left: 66%; bottom: 98px; }

    .chalet-a { left: 4%; transform: scale(.65); }
    .chalet-b { left: 24%; transform: scale(.80); }
    .chalet-c { right: 3%; transform: scale(.72); }
    .church { transform: translateX(-50%) scale(.82); }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .days {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .day {
        min-height: 145px;
    }

    .grid,
    .apero-times {
        grid-template-columns: 1fr;
    }

    .form-section,
    .error,
    .success {
        padding: 22px 17px;
        border-radius: 19px;
    }

    .form-stars {
        right: 14px;
        top: 13px;
        font-size: .85rem;
    }

    .submit,
    .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
