:root {
  --yellow: #ffc423;        /* the button yellow */
  --yellow-soft: #ffc423;   /* make boxes same as button */
  --black: #111111;
  --grey: #666666;
  --border-radius: 14px;
  --shadow-soft: 0 10px 25px rgba(0,0,0,0.06);
  --max-width: 960px;
}



* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  background: #FFF8E6;
  color: var(--black);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  padding: 24px 16px 48px;
  display: flex;
  justify-content: center;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
}

header.hero {
  background: var(--yellow-soft);
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

@media (max-width: 720px) {
  header.hero {
    grid-template-columns: 1fr;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  margin-bottom: 8px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.06);
}
.language-switch {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.lang-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.3);
  background: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-btn.active {
  background: #ffc423;
  border-color: #d4a600;
}


h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin: 0 0 8px;
  font-weight: 800;
}

.hero p.lead {
  margin: 0 0 16px;
  color: var(--grey);
  font-size: 0.98rem;
}

.hero-points {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.hero-points span::before {
  content: "• ";
  font-weight: 700;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #d00000;
  color: #fff;
  font-weight: 700;
  font-size: 0.96rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(208,0,0,0.35);
}

.btn-primary span {
  font-size: 1.1rem;
}

.hero-subtext {
  font-size: 0.85rem;
  color: var(--grey);
}

.hero-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px 14px;
  border: 1px dashed rgba(0,0,0,0.08);
}

.hero-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-card-points {
  font-size: 0.85rem;
  color: var(--grey);
  display: grid;
  gap: 4px;
}

.hero-card-pill {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--yellow);
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 10px;
}

main section {
  margin-bottom: 32px;
}

h2.section-title {
  font-size: 1.25rem;
  margin: 0 0 6px;
  font-weight: 800;
}

.section-subtitle {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--grey);
}

.quiz-grid {
  display: grid;
  gap: 12px;
}

.quiz-card {
  background: var(--yellow-soft);
  border-radius: var(--border-radius);
  padding: 14px 14px 12px;
  border: 1px solid var(--yellow);
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.quiz-label {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.quiz-help {
  font-size: 0.8rem;
  color: var(--grey);
  margin-bottom: 6px;
}

.quiz-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.9rem;
}

.quiz-options label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.quiz-options input[type="radio"] {
  accent-color: var(--black);
}

.quiz-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border-radius: 999px;
  border: 1px solid var(--black);
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.quiz-note {
  font-size: 0.8rem;
  color: var(--grey);
}

.result-box {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--border-radius);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  display: none;
}

.result-badge {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--yellow);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.result-title {
  font-weight: 800;
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.result-text {
  font-size: 0.9rem;
  color: var(--grey);
}

.result-cta {
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* WhatsApp section */
.wa-section {
  background: var(--yellow-soft);    /* same yellow as other boxes */
  border-radius: 18px;
  padding: 18px 16px;
  border: 1px solid var(--yellow);   /* match quiz/rate card border */
  box-shadow: var(--shadow-soft);
}


.wa-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wa-copy {
  font-size: 0.9rem;
  color: var(--grey);
}

.wa-copy strong {
  color: var(--black);
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  background: #25d366;          /* WhatsApp green */
  color: #ffffff;               /* white text */
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(0,0,0,0.14);
  white-space: nowrap;
}


.btn-wa-icon {
  font-size: 1.1rem;
}

.wa-hint {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--grey);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal {
  background: #fff;
  border-radius: 18px;
  padding: 18px 16px 16px;
  width: min(420px, 92vw);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.modal-title {
  font-weight: 800;
  font-size: 1rem;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-body {
  font-size: 0.9rem;
}

.field {
  margin-top: 8px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.18);
  font-size: 0.9rem;
  font-family: inherit;
}

.field textarea {
  resize: vertical;
  min-height: 60px;
}

.field-small {
  font-size: 0.78rem;
  color: var(--grey);
  margin-top: 2px;
}

.modal-footer {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.error-msg {
  color: #b3261e;
  font-size: 0.78rem;
  margin-top: 4px;
}

/* Rates */
.rates-section {
  background: var(--yellow);          /* strong yellow for the big box */
  border-radius: 18px;
  padding: 18px 16px 16px;
  border: 1px solid var(--yellow);
  box-shadow: var(--shadow-soft);
}


.rates-note {
  font-size: 0.8rem;
  color: var(--grey);
  margin-bottom: 10px;
}

.rates-updated {
  font-size: 0.8rem;
  color: var(--grey);
  margin-bottom: 10px;
}

.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.rate-card {
  background: #ffffff;                /* white cards inside */
  border-radius: 14px;
  padding: 10px 10px 9px;
  border: 1px solid rgba(0,0,0,0.08); /* subtle border */
  font-size: 0.86rem;
}


.rate-bank {
  font-weight: 800;
  margin-bottom: 2px;
}

.rate-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.rate-value {
  font-weight: 800;
  font-size: 1rem;
}

.rate-tag {
  font-size: 0.76rem;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.18);
}

.rate-meta {
  font-size: 0.78rem;
  color: var(--grey);
}

footer {
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--grey);
  text-align: center;
}
/* ========================
   RATES SECTION
   ======================== */

.rates-section {
  background: var(--yellow-strong, #ffc423);
  border-radius: 28px;
  padding: 24px 24px 20px;
  box-shadow: var(--shadow-soft);
  color: var(--black);
}

.rates-note {
  font-size: 0.9rem;
  color: rgba(0,0,0,0.7);
  margin-bottom: 10px;
}

.rates-updated {
  font-size: 0.8rem;
  color: rgba(0,0,0,0.75);
  margin-bottom: 12px;
}

.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

/* Individual rate card */
.rate-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 10px 12px 9px;
  border: 1px solid rgba(0,0,0,0.06);
  font-size: 0.86rem;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* 👇 NEW: logo row */
.rate-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.rate-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  background: #ffffff;
}

/* Bank name */
.rate-bank {
  font-weight: 800;
}

/* Rate row */
.rate-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.rate-value {
  font-weight: 800;
  font-size: 1rem;
}

.rate-tag {
  font-size: 0.76rem;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.18);
}

.rate-meta {
  font-size: 0.78rem;
  color: rgba(0,0,0,0.7);
}
.language-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.lang-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #333;
  background: white;
  cursor: pointer;
}

.lang-btn.active {
  background: #ffd84d;
  border-color: #d4a600;
}
/* Floating WhatsApp FAB */
.wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  border: none;
  background: transparent;      /* let the image show cleanly */
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
}

/* Control the image size */
.wa-img {
  width: 56px;   /* adjust as you like, e.g. 48–64px */
  height: 56px;
  display: block;
  border-radius: 18px;  /* matches the rounded-square shape */
}


.wa-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.28);
}

@media (max-width: 600px) {
  .wa-fab {
    right: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
}
