:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --secondary: #0ea5e9;
  --bg-dark: #0f172a;
  --text-light: #f8fafc;
  --text-muted: #cbd5e1;
  --error: #ef4444;
  --success: #10b981;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-light);
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  display: flex;
  flex-direction: column;
}

.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 40px 20px;
  min-height: 100vh;
}

h1, h2, h3, .cta-btn, .winner-date {
  font-family: 'Poppins', sans-serif;
}

/* MANDATORY UTILITY CLASS */
.hidden {
  display: none !important;
}

.main-container {
  width: 100%;
  max-width: 650px;
  margin: auto; /* Vertically and horizontally centers in the flex layout */
  display: flex;
  flex-direction: column;
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
  overflow: hidden;
  margin-bottom: 24px;
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 400px;
}

.card-content {
  padding: 40px 24px;
}

@media (min-width: 600px) {
  .card-content {
    padding: 50px 60px;
  }
}

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

.centered-content h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.winner-date {
  font-weight: 700;
  color: var(--secondary);
  font-size: 1.05rem;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.centered-content .subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #e2e8f0;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input::placeholder {
  color: #475569;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

/* Checkbox specific styles */
.form-group.checkbox-group label.checkbox-label {
  display: flex;
  align-items: flex-start;
  flex-direction: row;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 0;
}

.form-group.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
  margin-right: 12px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.checkbox-text {
  line-height: 1.5;
}

.cta-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
  box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -5px rgba(99, 102, 241, 0.5);
}

.cta-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Loaders and Alerts */
.loader {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

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

.error-alert {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  text-align: left;
}

/* Success State */
.success-content {
  text-align: center;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--success);
}

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

.success-content h2 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.success-content p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Share Panel */
.share-panel {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.share-panel h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #fff;
}

.share-input-group {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.share-input-group input {
  flex: 1;
  padding: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
}

.secondary-btn {
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Status Banners (Ended / Coming Soon) */
.status-banner {
  text-align: center;
  padding: 50px 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 600px;
  margin: auto;
}

.status-banner h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.status-banner p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Footer / Powered By Slot */
#wbx-powered-by-slot {
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
}
