:root {
  --color-pine: #1a3a2e;
  --color-cranberry: #9c1c1c;
  --color-ivory: #f5e9d3;
  --color-gold: #c2a361;
  --color-dark: #11221b;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Lora', serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-ivory);
  color: var(--color-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Ambient Snow Effect */
.snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  background: white;
  border-radius: 50%;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.8));
  opacity: 0.8;
  animation: fall linear forwards;
}

@keyframes fall {
  0% { transform: translateY(-10px) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.8; }
  100% { transform: translateY(100vh) translateX(20px); opacity: 0; }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transform: scale(1.05);
  animation: slowZoom 25s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(26, 58, 46, 0.3) 0%, rgba(26, 58, 46, 0.8) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  color: var(--color-ivory);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(194, 163, 97, 0.5);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-style: italic;
  font-family: var(--font-display);
  color: var(--color-gold);
}

/* Prize Section */
.prize-section {
  padding: 90px 0;
  background-color: var(--color-ivory);
}

.prize-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.prize-text h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-pine);
  margin-bottom: 20px;
}

.prize-text p {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #444;
}

.prize-list {
  list-style: none;
}

.prize-list li {
  font-size: 1.1rem;
  margin-bottom: 15px;
  padding-left: 35px;
  position: relative;
}

.prize-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--color-gold);
  font-size: 1.2rem;
}

.prize-list li span {
  font-weight: 600;
  color: var(--color-cranberry);
}

.prize-image {
  position: relative;
}

.prize-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(26, 58, 46, 0.15);
  border: 8px solid white;
  display: block;
}

.prize-image::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid var(--color-gold);
  border-radius: 12px;
  z-index: -1;
}

/* Entry Section */
.entry-section {
  padding: 80px 0 100px;
  background-color: var(--color-pine);
  color: white;
  position: relative;
}

.entry-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    45deg,
    var(--color-cranberry),
    var(--color-cranberry) 20px,
    var(--color-ivory) 20px,
    var(--color-ivory) 40px
  );
}

.advent-calendar-container {
  text-align: center;
  margin-bottom: 60px;
}

.advent-header h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-gold);
  margin-bottom: 15px;
}

.advent-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 40px;
  color: rgba(255,255,255,0.85);
}

.advent-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.advent-window {
  width: 110px;
  height: 130px;
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(194, 163, 97, 0.2);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default;
}

.advent-window.active {
  border-color: var(--color-gold);
  background: rgba(194, 163, 97, 0.15);
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3), 0 0 20px rgba(194, 163, 97, 0.4);
}

.advent-window.completed {
  background: var(--color-cranberry);
  border-color: var(--color-cranberry);
  opacity: 0.9;
}

.advent-window .day-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255,255,255,0.3);
  transition: color 0.3s;
}

.advent-window.active .day-num {
  color: var(--color-gold);
}

.advent-window.completed .day-num {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.advent-window .status {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.3s;
  color: rgba(255,255,255,0.6);
}

.advent-window.active .status {
  opacity: 1;
  color: var(--color-gold);
}

.advent-window.completed .status {
  opacity: 1;
  color: white;
}

/* Form Styles */
.form-card {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 50px;
  color: var(--color-dark);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  position: relative;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(194, 163, 97, 0.4);
  border-radius: 10px;
  pointer-events: none;
}

.form-card h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--color-pine);
  margin-bottom: 10px;
  text-align: center;
}

.form-desc {
  text-align: center;
  color: #666;
  margin-bottom: 35px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-pine);
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #faf8f5;
  transition: all 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(194, 163, 97, 0.2);
  background: white;
}

.submit-btn {
  width: 100%;
  padding: 18px;
  background: var(--color-cranberry);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
  box-shadow: 0 4px 6px rgba(156, 28, 28, 0.2);
}

.submit-btn:hover {
  background: #7a1515;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(156, 28, 28, 0.35);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-error {
  margin-top: 20px;
  color: var(--color-cranberry);
  text-align: center;
  font-size: 0.95rem;
  padding: 12px;
  background: rgba(156, 28, 28, 0.08);
  border-radius: 8px;
  font-weight: 600;
}

/* Success State */
.success-icon {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 10px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.share-panel {
  margin-top: 40px;
  padding-top: 35px;
  border-top: 1px solid #eee;
  text-align: center;
}

.share-panel h3 {
  font-family: var(--font-display);
  color: var(--color-pine);
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.share-panel p {
  color: #555;
  margin-bottom: 20px;
}

.share-input-group {
  display: flex;
  gap: 10px;
}

.share-input-group input {
  flex: 1;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f9f9f9;
  font-family: monospace;
  font-size: 0.95rem;
  color: #333;
}

.share-input-group button {
  padding: 0 24px;
  background: var(--color-gold);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.share-input-group button:hover {
  background: #a3874c;
}

.copy-feedback {
  color: var(--color-pine);
  font-weight: 600;
  margin-top: 12px;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 40px;
  text-align: center;
  font-size: 0.85rem;
}

.compliance {
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

#wbx-powered-by-slot {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 60px 20px; min-height: 70vh; }
  .prize-grid { grid-template-columns: 1fr; gap: 40px; }
  .prize-text h2 { font-size: 2rem; }
  .prize-image::after { display: none; }
  
  .advent-window { width: 65px; height: 85px; }
  .advent-window .day-num { font-size: 1.3rem; }
  .advent-window .status { display: none; }
  .advent-window.completed .day-num { font-size: 1.2rem; margin: 0; }
  
  .form-card { padding: 30px 20px; }
  .share-input-group { flex-direction: column; }
  .share-input-group button { padding: 14px; }
}
