/* CSS Reset & Variables */
:root {
  --primary-color: #D23827;      /* Barn Red */
  --primary-hover: #b83021;
  --secondary-color: #2A7343;    /* Tree Green */
  --accent-color: #F2C439;       /* Star Yellow */
  
  --bg-color: #59a6be;           /* Sky Teal */
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  
  --text-main: #212c32;
  --text-muted: #53646d;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --transition: all 0.3s ease;
}

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

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

/* Utilities */
.hidden {
  display: none !important;
}

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

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

/* Hero Section */
.hero {
  position: relative;
  padding: 40px 20px 60px;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 750px;
  margin: 0 auto;
}

.hero-illustration {
  width: 100%;
  max-width: 750px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
  border: 6px solid #ffffff;
  background-color: #ffffff;
}

.pill-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-color);
  color: #634f0c;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.text-gradient {
  color: var(--accent-color);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Countdown Timer */
.countdown-wrapper {
  margin-top: 30px;
  display: inline-block;
}

.countdown-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

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

.cd-box {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  min-width: 70px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cd-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.cd-txt {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Glass Card Containers */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1), 
              0 8px 16px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

/* Form Styles */
.form-section {
  margin-bottom: 40px;
}

.form-section h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

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

.input-group {
  margin-bottom: 20px;
  text-align: left;
}

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

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--primary-color);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(210, 56, 39, 0.15);
}

input::placeholder {
  color: #adb5bd;
}

/* Radio / Checkbox Card Grid */
.radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.movie-card {
  cursor: pointer;
  display: block;
  position: relative;
}

.movie-card:has(input[type="checkbox"]:disabled) {
  cursor: not-allowed;
}

.movie-card input[type="radio"],
.movie-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.card-content {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 16px;
  background: #ffffff;
  border: 2px solid #e9ecef;
  border-radius: var(--radius-md);
  min-height: 80px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.movie-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
}

.movie-card:hover .card-content {
  background: #f8f9fa;
  border-color: #ced4da;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

.movie-card input[type="radio"]:checked + .card-content,
.movie-card input[type="checkbox"]:checked + .card-content {
  background: rgba(210, 56, 39, 0.05);
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(210, 56, 39, 0.15);
}

.movie-card input[type="radio"]:checked + .card-content .movie-title,
.movie-card input[type="checkbox"]:checked + .card-content .movie-title {
  color: var(--primary-color);
}

.movie-card input[type="radio"]:focus-visible + .card-content,
.movie-card input[type="checkbox"]:focus-visible + .card-content {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.movie-card input[type="checkbox"]:disabled + .card-content {
  opacity: 0.5;
  filter: grayscale(1);
  background: #f1f3f5;
}

.movie-card input[type="checkbox"]:disabled:hover + .card-content {
  transform: none;
  box-shadow: none;
  border-color: #e9ecef;
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 16px 30px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(210, 56, 39, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(210, 56, 39, 0.4);
}

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

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Status & Errors */
.error-banner {
  background: rgba(210, 56, 39, 0.1);
  border-left: 4px solid var(--primary-color);
  color: var(--primary-color);
  padding: 15px 20px;
  margin-bottom: 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 600;
}

.status-message {
  text-align: center;
  padding: 60px 20px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.status-message h2 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

/* Thank You State */
#thank-you-container {
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(42, 115, 67, 0.15);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-icon svg {
  width: 32px;
  height: 32px;
}

#thank-you-container h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

#thank-you-container p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 30px;
}

/* Share Panel */
.share-box {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: var(--radius-md);
  padding: 30px;
  margin-top: 30px;
}

.share-box h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.share-url-group {
  display: flex;
  margin: 20px 0;
}

.share-url-group input {
  flex: 1;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-right: none;
  background: #ffffff;
  border: 1px solid #ced4da;
  color: var(--text-main);
  padding-left: 15px;
}

.share-url-group button {
  padding: 0 20px;
  background: var(--secondary-color);
  color: white;
  border: 1px solid var(--secondary-color);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.share-url-group button:hover {
  background: #205c34;
}

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

.social-btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.social-btn.fb { background: #1877f2; }
.social-btn.fb:hover { background: #166fe5; }
.social-btn.tw { background: #1da1f2; }
.social-btn.tw:hover { background: #1a91da; }

/* Powered By Slot Padding */
#wbx-powered-by-slot {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 30px 15px 40px;
  }
  
  .hero-illustration {
    border-width: 4px;
    margin-bottom: 20px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .main-content {
    padding: 0 15px;
  }
  
  .glass-card {
    padding: 25px 20px;
  }
  
  .input-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .radio-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  
  .social-shares {
    flex-direction: column;
  }
  
  .social-btn {
    width: 100%;
    text-align: center;
  }
}
