:root {
  --color-primary: #D32027; /* Scene Red */
  --color-primary-hover: #b31920;
  --color-black: #111111;
  --color-dark-gray: #333333;
  --color-gray: #767676;
  --color-light-gray: #e0e0e0;
  --color-bg: #f9f9fb;
  --color-white: #ffffff;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  --border-radius: 12px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 25px rgba(0,0,0,0.08);
}

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

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

.hidden {
  display: none !important;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background-image: url("https://offertabs.s3.amazonaws.com/offer/uhyb32/site/media/6ad79f13c85187.40000706.jpg");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(17,17,17,0.8) 0%, rgba(17,17,17,0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  color: var(--color-white);
}

.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}

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

/* Main Container */
.main-content {
  padding: 60px 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

/* Progress Bar */
.progress-container {
  margin-bottom: 40px;
}

.progress-bar {
  height: 6px;
  background-color: var(--color-light-gray);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--progress, 16.66%);
  background-color: var(--color-primary);
  transition: width 0.4s ease;
}

.progress-text {
  font-size: 0.9rem;
  color: var(--color-gray);
  font-weight: 500;
  text-align: right;
}

/* Form Styles */
#survey-form {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.step {
  animation: fadeIn 0.4s ease;
}

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

.form-group {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--color-light-gray);
}

.form-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.q-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 16px;
}

/* Options Layouts */
.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.grid-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.flex-options {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
}

/* Custom Checkbox & Radio */
.option {
  position: relative;
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-dark-gray);
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s ease;
  user-select: none;
}

.option:hover {
  background-color: rgba(0,0,0,0.03);
}

.option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-chk, .custom-radio {
  display: inline-block;
  min-width: 20px;
  height: 20px;
  border: 2px solid var(--color-gray);
  background-color: var(--color-white);
  margin-right: 12px;
  margin-top: 2px;
  transition: all 0.2s ease;
  position: relative;
}

.custom-chk { border-radius: 4px; }
.custom-radio { border-radius: 50%; }

.option input:checked ~ .custom-chk,
.option input:checked ~ .custom-radio {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.option input:focus-visible ~ .custom-chk,
.option input:focus-visible ~ .custom-radio {
  box-shadow: 0 0 0 3px rgba(211, 32, 39, 0.3);
}

/* Checkmark SVG */
.custom-chk::after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.option input:checked ~ .custom-chk::after {
  display: block;
}

/* Radio dot */
.custom-radio::after {
  content: "";
  position: absolute;
  display: none;
  top: 5px;
  left: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
}

.option input:checked ~ .custom-radio::after {
  display: block;
}

/* Text Inputs */
.text-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-black);
  border: 1px solid var(--color-gray);
  border-radius: 8px;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-top: 8px;
}

.text-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(211, 32, 39, 0.1);
}

textarea.text-input {
  resize: vertical;
  min-height: 100px;
}

.req {
  color: var(--color-primary);
}

/* Sweepstakes Entry Form */
.sweepstakes-entry {
  margin-top: 20px;
  padding: 30px;
  background-color: #fcf4f4;
  border: 1px solid #f2d7d8;
  border-radius: var(--border-radius);
}

.sweepstakes-entry h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.sweepstakes-entry p {
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.input-col {
  flex: 1;
}

.input-col label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.divider {
  border: none;
  border-top: 1px dashed var(--color-light-gray);
  margin: 40px 0;
}

/* Buttons */
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--color-light-gray);
}

.spacer { flex-grow: 1; }

.btn {
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn.primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(211,32,39,0.3);
}

.btn.primary:disabled {
  background-color: #e09295;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn.secondary {
  background-color: var(--color-light-gray);
  color: var(--color-dark-gray);
}

.btn.secondary:hover {
  background-color: #d0d0d0;
}

/* Error/Success alerts */
.error-alert {
  background-color: #fee2e2;
  border: 1px solid #ef4444;
  color: #b91c1c;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-weight: 500;
}

/* Result Screen */
.result-card {
  background: var(--color-white);
  padding: 60px 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px; height: 80px;
  border-radius: 50%;
  background-color: #ecfdf5;
  color: #10b981;
  margin-bottom: 24px;
}

.result-card h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--color-black);
}

.result-card p {
  font-size: 1.1rem;
  color: var(--color-gray);
}

/* Powered By */
#wbx-powered-by-slot {
  margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 60px 20px;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  #survey-form {
    padding: 24px 20px;
  }
  .form-row {
    flex-direction: column;
    gap: 16px;
  }
  .form-group {
    margin-bottom: 30px;
    padding-bottom: 20px;
  }
  .btn {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
  .form-footer {
    flex-direction: column-reverse;
  }
  .spacer { display: none; }
}


/* Required multiple-choice questions */
.q-title .req {
  color: var(--color-primary);
  font-weight: 700;
}
.form-group.has-error .options {
  outline: 2px solid var(--color-primary);
  outline-offset: 6px;
  border-radius: 6px;
}
.field-error {
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 12px;
}
