/* RESET & UTILITIES */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Updated color palette: VIP Gold/Amber vibe to match new elegant background */
  --primary-color: #f59e0b; 
  --secondary-color: #ea580c; 
  --bg-dark: #0f172a;
  --text-light: #f8fafc;
  --text-muted: #cbd5e1;
  --error: #ef4444;
  --success: #10b981;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

.hidden {
  display: none !important;
}

body {
  font-family: var(--font-body);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background-color: var(--bg-dark);
  overflow-x: hidden;
}

/* BACKGROUND (Updated AI Image + Moody Vignette) */
.page-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  /* Updated to the newly requested background image */
  background-image: url('https://offertabs.s3.amazonaws.com/offer/jd3ott/site/media/6a6629e1b814f2.48686585.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.page-background::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Moody dark vignette to let the center of the updated background shine through */
  background: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(15,23,42,0.85) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* LAYOUT */
.main-container {
  width: 100%;
  max-width: 700px;
  padding: 3rem 1.5rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* HEADER */
.header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}

.station-badge {
  display: inline-block;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--primary-color);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.campaign-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.highlight {
  /* VIP Gold Gradient */
  background: linear-gradient(to right, #fde047, #f59e0b, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}

.tour-details {
  font-size: 1.125rem;
  color: #e2e8f0;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* COUNTDOWN */
.countdown-wrapper {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.countdown-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.countdown-timer {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
}

.countdown-timer .ended {
  color: var(--error);
  font-size: 1rem;
}

/* GLASS CARD (Main Content Container) */
.glass-card {
  background: rgba(10, 15, 25, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

/* Status Messages */
.status-message {
  text-align: center;
  padding: 2rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-light);
}

/* FORM STYLES */
.form-instructions {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
  font-size: 1.05rem;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #e2e8f0;
  letter-spacing: 0.02em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"] {
  width: 100%;
  padding: 1.125rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  transition: all 0.3s ease;
  color-scheme: dark;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

/* BUTTONS */
.submit-btn {
  width: 100%;
  padding: 1.125rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(234, 88, 12, 0.5);
}

.submit-btn:active {
  transform: translateY(0);
}

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

/* SPINNER */
.btn-spinner {
  position: absolute;
}

.spinner-svg {
  animation: rotate 2s linear infinite;
  width: 24px;
  height: 24px;
}

.spinner-svg .path {
  stroke: #ffffff;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

@keyframes dash {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* SUCCESS SECTION */
.success-section {
  text-align: center;
  animation: fadeIn 0.5s ease;
}

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

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: rgba(245, 158, 11, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

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

.success-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.success-section p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* SHARE & EARN */
.share-panel {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.share-panel h3 {
  font-family: var(--font-heading);
  color: #fff;
  margin-bottom: 0.5rem;
}

.share-panel p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.share-input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.share-input-group input {
  margin-bottom: 0;
  flex: 1;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0 1rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

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

.copy-feedback {
  color: var(--success) !important;
  font-size: 0.85rem !important;
  margin-bottom: 1.5rem !important;
}

.social-share-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-btn {
  flex: 1;
  text-align: center;
  padding: 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s;
  color: #fff;
}

.social-btn:hover {
  opacity: 0.85;
}

.fb-btn { background: #1877f2; }
.tw-btn { background: #000000; border: 1px solid rgba(255, 255, 255, 0.2); }


/* POWERED BY SLOT */
#wbx-powered-by-slot {
  margin-top: auto;
  padding-bottom: 2rem;
  width: 100%;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .glass-card {
    padding: 1.5rem;
    border-radius: 16px;
  }
  
  .campaign-title {
    font-size: 2.25rem;
  }
  
  .share-input-group {
    flex-direction: column;
  }
  
  .copy-btn {
    padding: 0.875rem;
  }
  
  .social-share-buttons {
    flex-direction: column;
  }
}
