:root {
  --color-primary: #f05a22; /* Tub O' Towels Orange */
  --color-primary-dark: #cc4919;
  --color-secondary: #d12027; /* WoO Red */
  --color-bg: #0a0a0c;
  --color-surface: #18181c;
  --color-surface-light: #24242a;
  --color-text: #f4f4f5;
  --color-text-muted: #a1a1aa;
  
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

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

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  line-height: 1.2;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(240, 90, 34, 0.3);
}

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

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.25rem;
}

.btn-block {
  width: 100%;
  padding: 1.25rem;
  font-size: 1.25rem;
  margin-top: 1rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem 2rem;
  background-image: url('https://offertabs.s3.amazonaws.com/offer/2ypeh2/site/media/6a9037a19ffbe7.84679143.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 12, 0.4), rgba(10, 10, 12, 0.95));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.brands {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.brand-tag {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.25rem 1rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.brand-tag.orange {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(240, 90, 34, 0.1);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.hero-title span {
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #e4e4e7;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Prizes Section */
.prizes {
  padding: 2.5rem 2rem 5rem;
  background-image: url('https://offertabs.s3.amazonaws.com/offer/2ypeh2/site/media/6a8de5e8382a71.53172015.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.prizes::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 12, 0.85);
  z-index: 0;
}

.section-header {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* Prize Image */
.prize-image-container {
  position: relative;
  z-index: 1;
  max-width: 675px; /* Reduced by 25% from 900px */
  margin: 0 auto 4rem;
  text-align: center;
}

.prize-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
}

.prize-grid {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.prize-card {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-light);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  position: relative;
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.prize-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.1);
}

.prize-card.first-place {
  background: linear-gradient(145deg, var(--color-surface) 0%, #2a150e 100%);
  border-color: rgba(240, 90, 34, 0.3);
  transform: scale(1.05);
}

.prize-card.first-place:hover {
  transform: scale(1.05) translateY(-5px);
}

.prize-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  white-space: nowrap;
}

.prize-badge.silver { background: #94a3b8; color: #0f172a; }
.prize-badge.bronze { background: #b45309; }

.prize-list {
  list-style: none;
  margin-top: 1.5rem;
}

.prize-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.prize-list li:last-child {
  border-bottom: none;
}

.prize-list li strong {
  color: #fff;
}

/* Entry Section */
.entry-section {
  padding: 6rem 2rem;
  background-color: var(--color-bg);
}

.entry-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-light);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.entry-header {
  margin-bottom: 3rem;
}

.entry-header h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.entry-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(255,255,255,0.02);
  padding: 2rem;
  border-radius: 8px;
  border: 1px dashed rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .entry-methods {
    flex-direction: row;
    align-items: center;
  }
}

.method {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.method-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
}

.method p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.method p strong {
  color: #fff;
}

.method-or {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  padding: 1rem;
  text-align: center;
}

.requirement {
  background: rgba(209, 32, 39, 0.1);
  border-left: 4px solid var(--color-secondary);
  padding: 1rem;
  font-size: 0.95rem;
  color: #fff;
}

/* Form Styles */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  color: #fff;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 1rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.2s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255,255,255,0.08);
}

/* Checkbox */
.form-group.checkbox-group label.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 0;
}

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

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

.checkbox-label a:hover {
  color: var(--color-primary-dark);
}

/* File Upload Box */
.file-upload-box {
  position: relative;
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 2rem 1rem;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.file-upload-box:hover {
  border-color: var(--color-primary);
  background: rgba(240, 90, 34, 0.05);
}

.file-upload-box input[type="file"] {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-dummy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-muted);
}

.file-upload-box.has-file .file-dummy {
  color: var(--color-primary);
}

.file-instructions {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  line-height: 1.4;
}

.file-instructions strong {
  color: #fff;
}

/* Alerts */
.error-alert {
  background: rgba(209, 32, 39, 0.1);
  border: 1px solid var(--color-secondary);
  color: #fff;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Success View */
#success-view {
  padding: 4rem 2rem;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 20px rgba(240, 90, 34, 0.3);
}

#success-view h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

#success-view p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.social-reminder {
  background: rgba(255,255,255,0.05);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}

.social-reminder p {
  margin: 0;
  color: #fff;
}

.social-reminder strong {
  color: var(--color-primary);
}


/* Gallery Section */
.gallery-section {
  padding: 5rem 2rem;
  background-color: var(--color-surface-light);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.gallery-section .section-header {
  margin-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-card {
  background: var(--color-surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.gallery-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.gallery-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.gallery-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img-wrap img {
  transform: scale(1.05);
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(240, 90, 34, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: background 0.3s ease, transform 0.3s ease;
}

.play-icon svg {
  margin-left: 4px; /* visually center the play triangle */
}

.gallery-card:hover .play-icon {
  background: var(--color-primary);
  transform: translate(-50%, -50%) scale(1.1);
}

.gallery-info {
  padding: 1.25rem;
}

.gallery-info h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-info p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.empty-gallery {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem;
  color: var(--color-text-muted);
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border: 1px dashed rgba(255,255,255,0.1);
  font-size: 1.1rem;
}

/* Footer Links */
.site-footer {
  padding: 2.5rem 2rem;
  text-align: center;
  background-color: var(--color-bg);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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


/* Footer / Powered By */
#wbx-powered-by-slot {
  margin-top: auto;
  padding: 2rem;
  display: flex;
  justify-content: center;
  background-color: var(--color-bg);
}

@media (max-width: 900px) {
  .prize-card.first-place {
    transform: none;
  }
  .prize-card.first-place:hover {
    transform: translateY(-5px);
  }
  .hero-title {
    font-size: 3rem;
  }
}
@media (max-width: 600px) {
  .entry-wrapper {
    padding: 2rem 1.5rem;
  }
  .gallery-section {
    padding: 3rem 1.5rem;
  }
}