:root {
  --bank-navy: #2e3b52;
  --bank-navy-dark: #202a3d;
  --bank-orange: #f5821f;
  --bank-orange-dark: #d96c0f;
  --afi-teal: #003b4b;
  --afi-teal-dark: #002832;
  --afi-cream: #f6f1e7;
  --afi-gold: #c9a15a;
  --ink: #202226;
  --muted: #6b7280;
  --white: #ffffff;
  --radius: 14px;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans Hebrew", "Arial Hebrew", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--afi-cream);
  line-height: 1.5;
}

h1, h2, h3 {
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.mockup-banner {
  background: var(--bank-orange);
  color: var(--white);
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5em 1em;
  letter-spacing: 0.02em;
}

.site-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1rem;
  background: var(--white);
  border-bottom: 1px solid #e5e0d4;
}

.brand-lockup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.brand-bank {
  color: var(--bank-navy);
}

.brand-afi {
  color: var(--afi-teal);
}

.brand-logo-bank {
  display: block;
  height: 34px;
  width: auto;
}

.brand-logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--afi-teal);
  border-radius: 10px;
  padding: 0.4em 0.6em;
}

.brand-logo-afi {
  display: block;
  height: 40px;
  width: auto;
}

.partnership-tag {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.lang-switch button {
  border: 1px solid #d7d0be;
  background: var(--white);
  color: var(--ink);
  padding: 0.35em 0.9em;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
}

.lang-switch button.active {
  background: var(--bank-navy);
  border-color: var(--bank-navy);
  color: var(--white);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.hero {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  background: linear-gradient(135deg, var(--bank-navy) 0%, var(--bank-navy-dark) 45%, var(--afi-teal) 100%);
  color: var(--white);
  border-radius: var(--radius);
  margin-top: 1.5rem;
}

.hero h1 {
  font-size: 1.9rem;
}

.hero-sub {
  max-width: 42em;
  margin-inline: auto;
  color: #e7e9ee;
}

.cta-button {
  display: inline-block;
  background: var(--bank-orange);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 0.75em 1.75em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s ease;
}

.cta-button:hover {
  background: var(--bank-orange-dark);
}

.countdown-wrap {
  margin-top: 2.25rem;
}

.countdown-label {
  font-size: 0.9rem;
  color: #dfe3ea;
  margin-bottom: 0.75rem;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.countdown-unit {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 0.6em 0.5em;
  min-width: 4.2em;
}

.countdown-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--afi-gold);
  font-variant-numeric: tabular-nums;
}

.countdown-name {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #cfd4dd;
  margin-top: 0.2em;
}

section h2 {
  text-align: center;
  font-size: 1.5rem;
  color: var(--bank-navy);
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 40em;
  margin-inline: auto;
}

.vouchers,
.how-it-works,
.entry-section,
.terms {
  padding: 2.5rem 0;
}

.voucher-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.voucher-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 59, 75, 0.08);
  border-top: 6px solid var(--afi-gold);
}

.voucher-card--gold {
  border-top-color: var(--afi-gold);
}

.voucher-card--silver {
  border-top-color: #a9b4bd;
}

.voucher-card--bronze {
  border-top-color: #b5754a;
}

.voucher-visual {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 4px 14px rgba(0, 59, 75, 0.18);
}

.voucher-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.voucher-progress {
  background: #e9e3d3;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.voucher-progress-bar {
  background: var(--bank-orange);
  height: 100%;
}

.voucher-meta {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.voucher-meta strong {
  color: var(--ink);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 59, 75, 0.06);
}

.step h3 {
  color: var(--afi-teal);
  font-size: 1.05rem;
}

.step p {
  color: var(--muted);
  margin: 0;
}

.entry-cta-wrap {
  text-align: center;
  margin-top: 1.5rem;
}

.terms {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 42em;
  margin-inline: auto;
}

.terms h2 {
  font-size: 1.1rem;
  text-align: center;
  color: var(--bank-navy);
}

.terms-intro {
  text-align: center;
}

.terms-list {
  margin: 0;
  padding-inline-start: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Raffle entry modal */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 22, 30, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.5rem;
  width: 100%;
  max-width: 30em;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: none;
  background: var(--afi-cream);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.modal-step-indicator {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--afi-gold);
  margin-bottom: 0.25rem;
}

.modal h3 {
  text-align: center;
  color: var(--bank-navy);
}

#modal-step-2 h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

#raffle-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

#raffle-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bank-navy);
}

#raffle-form input[type="text"],
#raffle-form input[type="tel"],
#raffle-form input[type="email"] {
  border: 1px solid #d7d0be;
  border-radius: 8px;
  padding: 0.65em 0.8em;
  font-size: 1rem;
  font-family: inherit;
}

.field-error {
  color: #b3261e;
  font-size: 0.8rem;
  font-weight: 400;
}

.consent-label {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.6rem !important;
  font-weight: 400 !important;
  font-size: 0.85rem !important;
  color: var(--ink) !important;
}

.consent-label input {
  margin-top: 0.2em;
}

.terms-link {
  color: var(--bank-navy);
  font-weight: 600;
}

.raffle-ticket {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, var(--afi-teal) 0%, var(--afi-teal-dark) 100%);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  color: var(--white);
  border: 2px dashed var(--afi-gold);
  box-shadow: 0 10px 26px rgba(0, 59, 75, 0.22);
}

.raffle-ticket-brands {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--afi-gold);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.raffle-ticket-number {
  font-size: 1.7rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  margin: 0 0 0.6rem;
}

.raffle-ticket-name {
  margin: 0;
  font-size: 0.95rem;
  color: #e7e9ee;
}

.raffle-ticket-name strong {
  color: var(--white);
}

.ticket-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 1.25rem auto 0;
  max-width: 26em;
  line-height: 1.6;
}

#confirm-customer-link {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  transition: opacity 0.15s ease;
}

#confirm-customer-link.is-loading {
  opacity: 0.6;
  pointer-events: none;
  cursor: default;
}

.confirm-btn-mark {
  color: var(--afi-gold);
}

.ticket-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
  margin: 0.6rem auto 0;
  max-width: 26em;
}

.ticket-note-mark {
  color: var(--afi-gold);
  font-weight: 700;
  margin-inline-end: 0.2em;
}

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 2.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .voucher-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-header {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .hero h1 {
    font-size: 2.8rem;
  }
}
