:root {
  --primary: #6c2331; /* Deep Wine Red */
  --primary-hover: #501924;
  --secondary: #d4af37; /* Gold */
  --secondary-hover: #c4a02f;
  --bg-color: #faf8f5; /* Cream */
  --text-dark: #2c2925;
  --text-light: #6a645d;
  --white: #ffffff;
  --error: #d93025;
  --radius: 12px;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* Status Screens */
.status-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 2rem;
}
.status-content h2 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 1rem;
}
.status-content p {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Main Layout */
.main-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(108,35,49,0.85) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: var(--white);
}
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.95;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Page Body */
.page-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Info Section */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.info-text .section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.info-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.subsection-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--primary);
}
.prize-list {
  list-style: none;
  margin-bottom: 2rem;
}
.prize-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}
.prize-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.2rem;
}
.prize-list a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 700;
  transition: color 0.3s ease;
}
.prize-list a:hover {
  color: var(--primary-hover);
}
.info-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Countdown */
.countdown-wrapper {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid rgba(108,35,49,0.1);
  margin-top: 2rem;
}
.countdown-title {
  text-align: center;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.cd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cd-box span {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-color);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}
.cd-box label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 0.5rem;
  font-weight: 700;
}
.countdown span.ended {
  width: auto;
  padding: 0 1rem;
  font-size: 1.5rem;
  color: var(--error);
  background: transparent;
  box-shadow: none;
}

/* Form Section */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-top: 4px solid var(--primary);
}
.form-header {
  text-align: center;
  margin-bottom: 2rem;
}
.form-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.form-desc {
  color: var(--text-light);
  font-size: 1.1rem;
}

.how-to-enter {
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2.5rem;
  border-left: 4px solid var(--secondary);
}
.how-to-enter h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}
.how-to-enter ol {
  padding-left: 1.25rem;
  color: var(--text-dark);
}
.how-to-enter li {
  margin-bottom: 0.5rem;
}
.how-to-enter li:last-child {
  margin-bottom: 0;
}

.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}
.label-note {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.8rem;
}
.form-group input {
  padding: 0.875rem 1rem;
  border: 1px solid #e0dcd5;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  background-color: #fff;
}
.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,35,49,0.1);
}
.checkbox-group {
  margin: 2rem 0;
  flex-direction: row;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 0.3rem;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  accent-color: var(--primary);
}
.checkbox-text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

.btn-primary {
  width: 100%;
  padding: 1.25rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(108,35,49,0.2);
}
.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-secondary {
  padding: 0.875rem 1.5rem;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-secondary:hover {
  background: var(--secondary-hover);
}

.error-msg {
  color: var(--error);
  background: #fdecea;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

/* Success Screen */
.success-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 4rem 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  text-align: center;
  border-top: 4px solid var(--secondary);
}
.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(212,175,55,0.1);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}
.success-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.success-desc {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Share Panel */
.share-panel {
  background: var(--bg-color);
  padding: 2.5rem;
  border-radius: var(--radius);
  max-width: 600px;
  margin: 0 auto;
}
.share-panel h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.share-panel p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.share-input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.share-input-group input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 1px solid #e0dcd5;
  border-radius: 8px;
  background: var(--white);
  color: var(--text-dark);
  font-family: monospace;
  font-size: 0.95rem;
}
.social-share {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.social-btn {
  flex: 1;
  padding: 0.875rem;
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.3s;
}
.social-btn:hover {
  opacity: 0.9;
}
.fb-btn { background: #1877F2; }
.tw-btn { background: #000000; }

/* Rules Accordion */
.rules-section {
  max-width: 800px;
  margin: 0 auto;
}
.rules-accordion {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid rgba(108,35,49,0.1);
  overflow: hidden;
}
.rules-accordion summary {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--bg-color);
  color: var(--primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rules-accordion summary::-webkit-details-marker {
  display: none;
}
.rules-accordion summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
}
.rules-accordion[open] summary::after {
  content: '−';
}
.rules-content {
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
}
.rules-content p {
  margin-bottom: 1rem;
}
.rules-content p:last-child {
  margin-bottom: 0;
}

/* Powered by slot centering */
#wbx-powered-by-slot {
  margin: 0 auto;
  padding: 2rem 0;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 2.75rem; }
  .hero-subtitle { font-size: 1.15rem; }
  .info-grid { grid-template-columns: 1fr; }
  .info-image { order: -1; }
  .form-row { flex-direction: column; gap: 1rem; }
  .form-card { padding: 2rem 1.5rem; }
  .success-card { padding: 3rem 1.5rem; }
  .share-input-group { flex-direction: column; }
  .social-share { flex-direction: column; }
  .page-body { padding: 2.5rem 1rem; }
}
