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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0;
}

.hidden {
  display: none !important;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #f8fafc;
  color: #334155;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* --- BRAND LOGO --- */
.brand-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin: 16px auto;
}

#brand-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

#brand-logo {
  width: 60px; /* Reduced to ~33% of original 180px */
  height: 60px; /* Ensures a proportional aspect ratio */
  border-radius: 50%; /* Keeps the logo circular */
  object-fit: contain; /* Keeps entire logo visible */
  display: block;
  margin: 0 auto;
}

/* --- PROMO HEADER (BLUE BOX) --- */
.promo-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  width: 100%;
  padding: 40px 20px 90px 20px; /* 90px bottom padding creates space for card overlap */
  text-align: center;
  color: #fff;
}

.promo-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.headline {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.subhead {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  font-weight: 400;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
  max-width: 700px;
  margin: 0 auto;
}

/* --- SCROLL BUTTON --- */
.btn-scroll-down {
  display: inline-block;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); /* Prominent amber/gold */
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(217, 119, 6, 0.4);
  margin: 10px auto 16px;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-scroll-down:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 25px rgba(217, 119, 6, 0.5);
}

/* --- LAYOUT --- */
.site-wrapper {
  flex: 1;
  width: 100%;
  margin: -60px auto 0; /* Pulls content up over the blue promo header */
  padding: 0 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* --- MAIN CARD --- */
.main-content {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-card {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(30, 58, 138, 0.25);
  overflow: hidden;
  margin-bottom: 40px;
}

.hero-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 30px auto;
}

.card-content {
  padding: 40px;
}

.info-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
  justify-content: center;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.badge svg {
  color: #2563eb;
}

/* --- FORMS & INPUTS --- */
.form-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  text-align: center;
}

.form-desc {
  text-align: center;
  color: #64748b;
  margin-bottom: 30px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #1e293b;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  height: 52px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  padding: 0 16px;
  font-size: 1rem;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  transition: all 0.3s ease;
  outline: none;
}

input:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.btn-primary {
  width: 100%;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(37, 99, 235, 0.4);
}

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

.error-msg {
  background: #fee2e2;
  color: #b91c1c;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-weight: 600;
  text-align: center;
  border: 1px solid #fecaca;
}

.status-box {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 20px 40px;
  border-radius: 16px;
  margin-bottom: 40px;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
}

/* --- OFFICIAL RULES SECTION --- */
.official-rules-container {
  margin-top: 40px;
  border-top: 1px solid #e2e8f0;
  padding-top: 32px;
}

.official-rules-container h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.rules-content {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
}

.rules-content h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #0f172a;
  margin-top: 24px;
  margin-bottom: 8px;
}

.rules-content h4:first-child {
  margin-top: 0;
}

.rules-content p {
  margin-bottom: 16px;
}

.rules-content p:last-child {
  margin-bottom: 0;
}

/* --- SHARE STATE --- */
.success-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.success-header {
  text-align: center;
  margin-bottom: 30px;
}

.success-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.success-desc {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.6;
}

/* --- BONUS SECTION --- */
#bonus-section {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 32px 24px;
  margin-top: 32px;
}

.bonus-title {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
}

.bonus-desc {
  text-align: center;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 20px;
}

.bonus-highlight {
  background: #f1f5f9;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 20px;
}

.bonus-highlight p {
  margin-bottom: 8px;
}

.bonus-highlight p:last-child {
  margin-bottom: 0;
}

.bonus-legal {
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 24px;
  line-height: 1.5;
}

.share-box {
  display: flex;
  gap: 12px;
}

.share-box input {
  flex: 1;
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
  min-width: 0;
  cursor: text;
}

.btn-copy, .btn-facebook {
  padding: 0 24px;
  height: 52px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
  font-size: 1rem;
  font-family: inherit;
  white-space: nowrap;
}

.btn-copy {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-copy:hover {
  background: #cbd5e1;
}

.btn-facebook {
  background: #1877f2;
  color: #ffffff;
}

.btn-facebook:hover {
  background: #166fe5;
}

/* --- FOOTER --- */
#wbx-powered-by-slot {
  margin-top: 40px;
  width: 100%;
}

/* --- RESPONSIVE --- */
@media (max-width: 640px) {
  .site-wrapper {
    padding: 0 16px 30px;
  }
  
  .promo-header {
    padding: 24px 16px 60px 16px; /* Reduced padding so top items fit better on mobile */
  }

  .headline {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }

  .subhead {
    font-size: 1rem;
    line-height: 1.4;
    margin-top: 4px;
  }

  .brand-container {
    margin: 12px auto;
  }

  .btn-scroll-down {
    width: 100%;
    font-size: 1.1rem;
    padding: 14px 20px;
    margin: 8px auto 16px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .card-content {
    padding: 32px 20px;
  }

  .hero-image {
    max-width: 180px;
    margin: 0 auto 24px auto;
  }
  
  .rules-content {
    padding: 16px;
  }

  #bonus-section {
    padding: 24px 16px;
  }

  .share-box {
    flex-direction: column;
  }
  
  .btn-copy, .btn-facebook {
    width: 100%;
    height: 52px;
  }
  
  .info-badges {
    flex-direction: column;
    align-items: stretch;
  }
  
  .badge {
    justify-content: center;
  }
}
