:root {
  --bg-primary:    #0f0f0f;
  --bg-secondary:  #1a1a1a;
  --bg-card:       #222222;
  --border:        #333333;
  --text-primary:  #f5f5f5;
  --text-secondary:#999999;
  --accent:        #c8a96e;
  --accent-hover:  #d4b97e;
  /* festive */
  --xmas-red:      #b3353b;
  --xmas-red-deep: #8b2a2f;
  --pine:          #2f6b4f;
  --snow:          #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(179,53,59,0.10), transparent 60%),
    var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  padding-bottom: 80px;
  overflow-x: hidden;
}

/* ── Snow canvas ─────────────────────────────────────────────────── */
#snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

/* ── Fixed top nav ───────────────────────────────────────────────── */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 60px;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.top-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-home {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-home:hover { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 10px; }
.nav-btn-outline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  padding: 7px 18px;
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-btn-outline:hover { color: var(--accent); border-color: var(--accent); }

/* ── Hero ────────────────────────────────────────────────────────── */
.site-hero {
  margin-top: 60px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.60) 0%, rgba(0,0,0,0.74) 60%, #0f0f0f 100%),
    url('/images/bgpicgalna.jpg') center center / cover no-repeat;
  border-bottom: 1px solid var(--border);
  padding: 64px 24px 52px;
  text-align: center;
}
.site-hero-inner { max-width: 640px; margin: 0 auto; position: relative; }
.hero-logo {
  width: 84px; height: 84px;
  object-fit: contain;
  filter: invert(1);
  mix-blend-mode: screen;
  display: block;
  margin: 0 auto 18px;
  opacity: 0.92;
}
.hero-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--xmas-red);
  margin-bottom: 10px;
  font-weight: 600;
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 9vw, 5.8rem);
  letter-spacing: 0.05em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
}
.hero-title .year { color: var(--text-primary); -webkit-text-stroke: 0; }
.hero-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  line-height: 1.6;
}

/* ── Main ────────────────────────────────────────────────────────── */
.main {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 60;
}
.intro {
  text-align: center;
  padding: 44px 0 8px;
}
.intro p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto;
  font-weight: 300;
}
.intro .price-tag {
  display: inline-block;
  margin-top: 20px;
  background: rgba(200,169,110,0.1);
  border: 1px solid rgba(200,169,110,0.28);
  color: var(--accent);
  border-radius: 999px;
  padding: 8px 22px;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* ── Section titles ──────────────────────────────────────────────── */
.section-title {
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin: 40px 0 6px;
}
.section-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}

/* ── Date grid ───────────────────────────────────────────────────── */
.date-board {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 8px 28px;
  align-items: start;
  background: linear-gradient(180deg, rgba(34,34,34,0.7), rgba(20,20,20,0.7));
  border: 1px solid var(--border);
  border-top: 3px solid var(--xmas-red);
  border-radius: 16px;
  padding: 28px 26px;
}
.date-col-rule { background: var(--border); width: 1px; height: 100%; }
.date-month {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-size: 1.15rem;
  text-align: center;
  margin-bottom: 14px;
}
.date-list { display: flex; flex-direction: column; gap: 8px; }
.date-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  user-select: none;
}
.date-chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.date-chip .dc-day {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-primary);
  min-width: 34px;
}
.date-chip .dc-meta { text-align: right; line-height: 1.2; }
.date-chip .dc-wd {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-transform: capitalize;
}
.date-chip .dc-mon { font-size: 0.68rem; color: var(--text-secondary); letter-spacing: 0.08em; text-transform: uppercase; }
.date-chip.selected {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(200,169,110,0.16), rgba(200,169,110,0.06));
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.date-chip.selected .dc-day { color: var(--accent); }
.date-chip.selected::after {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 640px) {
  .date-board { grid-template-columns: 1fr; gap: 6px; }
  .date-col-rule { display: none; }
  .date-month { margin-top: 10px; }
}

/* ── Form ────────────────────────────────────────────────────────── */
.request-card {
  margin: 34px 0 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 28px 34px;
}
.selected-banner {
  text-align: center;
  padding: 12px 16px;
  margin-bottom: 22px;
  border-radius: 10px;
  background: rgba(47,107,79,0.12);
  border: 1px solid rgba(47,107,79,0.3);
  color: #9ad7b5;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.selected-banner.empty { background: rgba(255,255,255,0.03); border-color: var(--border); color: var(--text-secondary); }
.selected-banner strong { color: #c6f0d8; }

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.field label .req { color: var(--xmas-red); }
.field input, .field textarea {
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 84px; }
.field .hint { font-size: 0.72rem; color: var(--text-secondary); }

@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }

.form-error {
  color: #e98a8a;
  font-size: 0.86rem;
  margin-top: 14px;
  min-height: 1em;
  text-align: center;
}

/* ── Submit button with Santa hat ────────────────────────────────── */
.submit-wrap { text-align: center; margin-top: 24px; position: relative; }
.btn-julbord {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, var(--xmas-red), var(--xmas-red-deep));
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  padding: 15px 42px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(179,53,59,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform 0.12s, box-shadow 0.15s, filter 0.15s;
  overflow: visible;
}
.btn-julbord:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 14px 36px rgba(179,53,59,0.45); }
.btn-julbord:active { transform: translateY(0); }
.btn-julbord:disabled { filter: grayscale(0.4) brightness(0.8); cursor: not-allowed; transform: none; }

/* The santa hat, perched on the top-left corner of the button */
.santa-hat {
  position: absolute;
  top: -26px;
  right: -20px;
  width: 58px;
  height: 52px;
  transform: scaleX(-1) rotate(-18deg);   /* mirrored to sit on the right corner */
  transform-origin: bottom left;
  pointer-events: none;
  animation: hat-bob 3.2s ease-in-out infinite;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,0.4));
}
@keyframes hat-bob {
  0%, 100% { transform: scaleX(-1) rotate(-18deg) translateY(0); }
  50%      { transform: scaleX(-1) rotate(-15deg) translateY(-2px); }
}
.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn-julbord.loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.disclaimer { text-align: center; color: var(--text-secondary); font-size: 0.74rem; margin-top: 14px; line-height: 1.6; }

/* ── Success overlay ─────────────────────────────────────────────── */
.success {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8,8,8,0.82);
  backdrop-filter: blur(6px);
}
.success.show { display: flex; }
.success-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-top: 4px solid var(--pine);
  border-radius: 18px;
  padding: 44px 36px;
  text-align: center;
  max-width: 440px;
  animation: pop 0.3s ease;
}
@keyframes pop { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-card .big { font-size: 3rem; margin-bottom: 8px; }
.success-card h2 { font-family: 'Bebas Neue', sans-serif; font-size: 1.9rem; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 12px; }
.success-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-bottom: 22px; }
.success-card .summary { color: var(--text-primary); font-size: 0.92rem; }
.success-card button {
  background: var(--accent);
  color: #0f0f0f;
  border: none;
  border-radius: 10px;
  padding: 12px 30px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s;
}
.success-card button:hover { background: var(--accent-hover); }

/* ── Footer ──────────────────────────────────────────────────────── */
.foot { text-align: center; color: var(--text-secondary); font-size: 0.78rem; padding: 40px 24px 0; line-height: 1.7; position: relative; z-index: 60; }
.foot a { color: var(--accent); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .santa-hat, .btn-julbord { animation: none; }
}
