:root {
  --primary: #1b1b1b;
  --primary-hover: #4c4c4c;
  --secondary: #1b1b1b;
  --secondary-hover: #4c4c4c;
  --accent: #41a928;
  --text-dark: #1b1b1b;
  --text-body: #1b1b1b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --success: #046a38;
  --error: #ef4444;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --radius: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 20px rgba(65, 169, 40, 0.3);
}

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

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-page);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hidden {
  display: none !important;
}

.mt-4 { margin-top: 1.5rem; }
.text-center { text-align: center; }

/* Main Layout */
.main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.content-wrapper {
  max-width: 800px;
  margin: -60px auto 40px;
  padding: 0 20px;
  width: 100%;
  position: relative;
  z-index: 10;
  flex: 1;
}

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

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('https://offertabs.s3.amazonaws.com/offer/9am558/site/media/6a18a088112805.16836344.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(152, 152, 154, 0.9) 0%, rgba(65, 169, 40, 0.8) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 700px;
  color: #fff;
}

.logo-container {
  margin-bottom: 24px;
}

.logo-container img {
  height: 90px;
  width: auto;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}

.logo-container a {
  display: inline-block;
}

.logo-container a:hover img {
  transform: scale(1.05);
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

/* Countdown */
.countdown-wrapper {
  margin-top: 40px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  display: inline-block;
}

.countdown-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: #fff;
}

.countdown {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.cd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.cd-box span {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.cd-box small {
  font-size: 0.75rem;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 4px;
}

/* Cards & Containers */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.card h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

/* Welcome Prize Announcement */
.prize-announcement {
  background: #f0fdf4;
  border: 2px dashed var(--primary);
  border-radius: 12px;
  padding: 20px;
  margin: 24px auto 0;
  max-width: 500px;
}

.prize-announcement p {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text-dark);
}

.prize-announcement strong {
  color: var(--primary);
  font-weight: 800;
}

.prize-announcement small {
  font-weight: 600;
  color: var(--text-body);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary);
  color: #fff;
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--secondary-hover);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Quiz Specifics */
.quiz-container {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 30px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.4s ease;
}

.question-header {
  margin-bottom: 30px;
  text-align: center;
}

.question-counter {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.question-text {
  font-size: 1.75rem;
  font-weight: 700;
}

.question-image-wrapper {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
}

.question-image-wrapper img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

/* Choices Grid */
.choices-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .choices-grid.has-images {
    grid-template-columns: repeat(2, 1fr);
  }
}

.choice-btn {
  background: var(--bg-page);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.choice-btn:hover {
  border-color: var(--primary);
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.choice-btn.has-image {
  padding: 0;
}

.choice-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.choice-btn.has-image .choice-text {
  padding: 20px;
  text-align: center;
  font-weight: 600;
}

.choice-text {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Forms */
.form-card {
  max-width: 600px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg-page);
  transition: border-color 0.2s;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

/* Checkboxes */
.checkbox-group {
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-weight: 400;
  text-align: left;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-label span {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.5;
}

.checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
}

.checkbox-label a:hover {
  text-decoration: none;
}

/* Results */
.result-card {
  text-align: center;
}

.result-eyebrow {
  display: block;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.result-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 30px;
}

.result-image-wrapper {
  margin-bottom: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.result-image-wrapper img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.result-desc {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

/* Share Panel */
.share-panel {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.share-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

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

.share-controls {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.share-controls input {
  flex: 1;
  background: var(--bg-page);
}

/* Messages */
.error-message {
  color: var(--error);
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.success-message {
  color: var(--success);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 10px;
}

.status-card {
  max-width: 500px;
  margin: 100px auto;
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

/* Footer & Powered By */
.site-footer {
  text-align: center;
  padding: 20px;
  margin-top: 20px;
}

.site-footer a {
  color: var(--text-body);
  font-size: 0.875rem;
  text-decoration: underline;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--primary);
}

#wbx-powered-by-slot {
  margin: 20px auto 40px;
  text-align: center;
  width: 100%;
}

/* Modal */
.modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  padding: 30px;
  position: relative;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.3s ease;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--secondary);
  transition: color 0.2s;
}

.close-modal:hover {
  color: var(--text-dark);
}

.rules-text-content {
  white-space: pre-wrap;
  font-size: 0.875rem;
  color: var(--text-body);
  margin-top: 20px;
  line-height: 1.6;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .hero { padding: 60px 15px 100px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .card, .quiz-container { padding: 24px; }
  .share-controls { flex-direction: column; }
  .modal-content { padding: 20px; }
}