:root {
  --navy: #1e3a8a;
  --pink: #fb7185;
  --yellow: #facc15;
  --white: #ffffff;
  --text-dark: #0f172a;
  --text-light: #64748b;
  --bg-gray: #f8fafc;
  
  --font-heading: 'DM Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Fira Code', monospace;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-gray);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hidden {
  display: none !important;
}

/* Background Store Illustration */
.store-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  background-image: url('https://offertabs.s3.amazonaws.com/offer/aivrpn/site/media/69f1318c5bc6f9.16902293.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.store-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  background: rgba(30, 58, 138, 0.7); /* Deep navy overlay */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

main {
  position: relative;
  z-index: 10;
}

/* Hero & Modal */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.1);
  overflow: hidden;
  position: relative;
  animation: modalPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
  0% { transform: scale(0.95) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-inner {
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
}

/* Decorative top border */
.modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--pink), var(--yellow));
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.close-btn:hover {
  background: rgba(0,0,0,0.05);
  color: var(--navy);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

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

input[type="email"] {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--text-dark);
  transition: all 0.3s;
  outline: none;
  background: #ffffff;
}

input[type="email"]:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.15);
}

input[type="email"]::placeholder {
  color: #94a3b8;
}

.btn-submit {
  width: 100%;
  padding: 1.125rem;
  background: var(--pink);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-submit:hover {
  background: #f43f5e;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(244, 63, 94, 0.4);
}

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

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

.microcopy {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.error {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Success View */
.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(251, 113, 133, 0.1);
  color: var(--pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.code-box {
  display: flex;
  align-items: center;
  background: var(--bg-gray);
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 2rem;
}

#coupon-code-display {
  flex-grow: 1;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.1em;
}

.btn-copy {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: #1e40af;
}

.shop-now-link {
  display: inline-block;
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.shop-now-link:hover {
  color: var(--pink);
  border-bottom-color: var(--pink);
}

/* Info Section */
.info-section {
  background: var(--white);
  padding: 6rem 2rem 4rem; /* Bottom padding accommodates powered by slot */
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 4rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.benefit-card {
  background: var(--bg-gray);
  padding: 2.5rem;
  border-radius: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #f1f5f9;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.icon-circle {
  width: 56px;
  height: 56px;
  background: var(--navy);
  color: var(--yellow);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.benefit-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.benefit-card p {
  color: var(--text-light);
}

#wbx-powered-by-slot {
  display: flex;
  justify-content: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #f1f5f9;
}

@media (max-width: 768px) {
  .modal-inner {
    padding: 2.5rem 1.5rem;
  }
  .modal-title {
    font-size: 1.75rem;
  }
  .section-title {
    font-size: 2rem;
  }
}