:root {
  --primary: #0A2540; /* Amtrak Navy */
  --secondary: #00537e; /* Updated Color */
  --accent: #00537e; /* Updated color for CTA / form elements */
  --text: #2D3748;
  --text-light: #4A5568;
  --bg: #F7FAFC;
  --white: #FFFFFF;
  --font-heading: 'Frutiger', 'Frutiger Linotype', 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-body: 'Frutiger', 'Frutiger Linotype', 'Segoe UI', 'Helvetica Neue', sans-serif;
  --shadow: 0 10px 40px rgba(10, 37, 64, 0.08);
  --radius: 16px;
}

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

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

.hidden { display: none !important; }
.text-center { text-align: center; }

.site-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  background-image: linear-gradient(135deg, rgba(10, 37, 64, 0.6) 0%, rgba(10, 37, 64, 0.4) 100%), url('https://offertabs.s3.amazonaws.com/offer/cnuk9y/site/media/6a2b1b5b1205a8.08271630.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 100px 20px 80px;
  position: relative;
  overflow: hidden;
}

.hero-blur {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 83, 126, 0.3), transparent 70%);
  filter: blur(60px);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
  display: block;
  mix-blend-mode: screen;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.hero .subtitle {
  font-size: 1.25rem;
  max-width: 750px;
  margin: 0 auto;
  opacity: 0.9;
  font-weight: 300;
  line-height: 1.7;
}

/* Countdown */
.countdown-timer {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: rgba(10, 37, 64, 0.6);
  backdrop-filter: blur(12px);
  padding: 20px 35px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.countdown-timer .unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.countdown-timer .val {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: 1;
  color: var(--white);
}

.countdown-timer .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #E2E8F0;
  margin-top: 8px;
  font-weight: 600;
}

.unit-colon {
  font-size: 2rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  transform: translateY(-8px);
}

.ended {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}

/* Main Content Grid */
.main-content {
  padding: 80px 20px;
  flex: 1;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

/* Status Message */
.status-message {
  text-align: center;
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 40px;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.05);
}

/* Prize Info Panel */
.prize-info {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.05);
}

.prize-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.prize-details {
  padding: 40px;
}

.prize-details h2 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.prize-subtitle {
  color: var(--secondary);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.prize-details p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 25px;
}

.features {
  list-style: none;
  margin-top: 30px;
  border-top: 1px solid #edf2f7;
  padding-top: 30px;
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 500;
}

.features svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Form Container */
.form-container, .success-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 50px 40px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.05);
  border-top: 5px solid var(--accent);
  position: relative;
}

.form-header {
  margin-bottom: 35px;
}

.form-header h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.form-header p {
  color: var(--text-light);
}

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

.form-group {
  margin-bottom: 24px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #f8fafc;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 83, 126, 0.15);
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A5568' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 40px;
}

textarea {
  resize: vertical;
}

/* Radio Group */
.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0;
}

.radio-group input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 30px;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.checkbox-group label {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.5;
}

.checkbox-group a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

/* Follow Us Block */
.follow-us-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin: 30px 0;
  text-align: center;
}

.follow-title {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.brand-socials {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 480px) {
  .brand-socials {
    flex-direction: row;
    justify-content: space-around;
  }
}

.brand-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.brand-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-links a:hover .social-icon {
  transform: scale(1.15);
  opacity: 0.8;
}

.privacy-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 15px;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  width: 100%;
  padding: 18px;
  background: var(--accent);
  color: var(--white);
  font-size: 1.15rem;
  margin-top: 10px;
  box-shadow: 0 4px 15px rgba(0, 83, 126, 0.3);
}

.btn-primary:hover {
  background: #003f5f;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 83, 126, 0.4);
}

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

.loader {
  width: 22px; height: 22px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-message {
  color: var(--secondary);
  background: rgba(0, 83, 126, 0.08);
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  font-weight: 500;
  border-left: 4px solid var(--secondary);
}

/* Success Panel */
.success-icon {
  width: 80px; height: 80px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 25px;
  box-shadow: 0 10px 25px rgba(0, 83, 126, 0.3);
}

.success-panel {
  text-align: center;
  border-top-color: var(--accent);
}

.success-panel h2 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.success-panel p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Share Panel */
.share-panel {
  margin-top: 40px;
  padding: 35px 30px;
  background: linear-gradient(to bottom, #ffffff, #f7fafc);
  border-radius: 16px;
  border: 1px dashed #cbd5e0;
}

.share-panel h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.share-input-group {
  display: flex;
  margin: 25px 0;
  gap: 12px;
}

.share-input-group input {
  background: var(--white);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
}

.btn-secondary {
  background: var(--primary);
  color: var(--white);
  padding: 0 25px;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: #06192E;
}

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

.btn-social {
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
  font-size: 1rem;
  transition: all 0.3s;
}

.btn-social.fb { background: #1877f2; }
.btn-social.tw { background: #0f1419; }

.btn-social:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Explore More */
.explore-more {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #edf2f7;
}

.explore-more p {
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 15px;
}

.btn-outline {
  padding: 14px 30px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  text-decoration: none;
  display: inline-block;
}

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

/* Footer */
.site-footer {
  padding: 50px 20px;
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

#wbx-powered-by-slot {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

/* Responsive */
@media (max-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 20px 60px;
  }
  
  .hero h1 { 
    font-size: 2.8rem; 
  }
  
  .countdown-timer {
    padding: 15px 20px;
    gap: 10px;
  }
  
  .countdown-timer .val { font-size: 2rem; }
  .countdown-timer .unit { min-width: 45px; }
  
  .form-row, .share-input-group, .social-share {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  
  .form-container {
    padding: 40px 25px;
  }
}
