/* ── VARIABLES ── */
:root {
  --primary: #1c5e98;
  --primary-dark: #164a7a;
  --navy: #1a1f71;
  --orange: #c85a17;
  --orange-dark: #a84b12;
  --dark: #404041;
  --tab-blue: #6b9fd4;
  --gray-bg: #e8e8e8;
  --gray-light: #f8f9fa;
  --text: #212529;
  --text-muted: #6c757d;
  --border: #ced4da;
  --white: #ffffff;
  --success: #28a745;
  --danger: #dc3545;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto Condensed', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ── CONTAINER ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ── HEADER ── */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: relative;
}
.header__logo { display: flex; align-items: center; text-decoration: none; }
.visa-logo { width: 80px; height: 26px; }
.header__right { display: flex; align-items: center; gap: 16px; }

.btn-get-card {
  background: var(--orange);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: default;
  white-space: nowrap;
}

.hamburger {
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
  padding: 4px;
}
.hamburger__line {
  display: block; width: 22px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: transform 0.2s;
}

.header__dropdown {
  display: none;
  position: absolute;
  top: 60px; right: 0;
  background: var(--dark);
  min-width: 300px;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 999;
}
.header__dropdown.open { display: block; }
.dropdown__link {
  display: block;
  padding: 12px 20px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s;
}
.dropdown__link:hover { background: rgba(255,255,255,0.08); }
.dropdown__link:last-child { border-bottom: none; }

/* ── TIPS ── */
.tips {
  padding: 32px 0;
  border-bottom: 1px solid #eee;
}
.tips__intro {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text);
}
.tips__list {
  list-style: decimal;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tips__list li {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}

/* ── CARD FORM WIDGET ── */
.card-section {
  padding: 40px 0;
}
.card-widget {
  background: var(--gray-bg);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.card-tabs {
  display: flex;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}
.card-tab {
  padding: 14px 24px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  background: var(--tab-blue);
  color: var(--white);
  transition: background 0.2s, color 0.2s;
}
.card-tab:first-child { border-radius: 8px 0 0 0; }
.card-tab:last-child { border-radius: 0 8px 0 0; }
.card-tab--active {
  background: var(--white);
  color: var(--text);
  border-bottom: 2px solid var(--white);
}
.card-tab:not(.card-tab--active):hover {
  background: #5590c4;
}

.card-body {
  background: var(--white);
  padding: 28px 24px;
  border-radius: 0 0 8px 8px;
}
.card-body__instruction {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 24px;
}

/* ── FORM ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.form-col { display: flex; flex-direction: column; }

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(28,94,152,0.15);
}
.form-input::placeholder { color: #adb5bd; }
.form-input--error { border-color: var(--danger); }

.form-input--exp {
  width: 70px;
  text-align: center;
}

.expiry-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.expiry-slash {
  font-size: 1.2rem;
  color: var(--text-muted);
  padding: 0 2px;
}

.cvv-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cvv-row .form-input { flex: 1; }
.cvv-help {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cvv-help:hover { background: var(--gray-light); }

/* ── FORM BUTTONS ── */
.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.btn-cancel {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 10px 20px;
}
.btn-cancel:hover { color: var(--text); }

.btn-submit {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 10px 28px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--primary-dark); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.btn-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.secured-badge {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── FORM ERRORS ── */
.form__error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 4px;
}
.form__error--general {
  background: #fff5f5;
  border: 1px solid #f5c6cb;
  color: var(--danger);
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

/* ── BALANCE RESULT ── */
.balance-result { margin: 24px 0 40px; }
.balance-result__card {
  background: var(--white);
  border-left: 4px solid var(--primary);
  border-radius: 4px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.balance-result__row {
  display: flex;
  gap: 40px;
  margin-bottom: 16px;
}
.balance-result__item {}
.balance-result__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.balance-result__amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}
.balance-result__amount--secondary {
  font-size: 1.4rem;
  color: var(--text-muted);
}
.balance-result__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}
.balance-result__badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}
.balance-result__badge--active { background: #d4edda; color: #155724; }
.balance-result__badge--neutral { background: #e9ecef; color: #495057; }
.balance-result__sub { font-size: 0.9rem; color: var(--text-muted); }

.balance-result__txn { margin-top: 20px; }
.balance-result__txn-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.balance-result__txn-body {
  font-family: 'Roboto Condensed', monospace;
  font-size: 0.85rem;
  background: var(--gray-light);
  padding: 12px;
  border-radius: 4px;
  white-space: pre-wrap;
  overflow-x: auto;
}

/* ── SEO CONTENT ── */
.content-section {
  padding: 48px 0;
}
.content-inner {
  max-width: 900px;
}
.content-inner h1,
.content-inner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 12px;
}
.content-inner h1:first-child,
.content-inner h2:first-child { margin-top: 0; }
.content-inner h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}
.content-inner p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 12px;
}

/* Steps */
.steps { margin: 20px 0 32px; }
.step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.step__num {
  width: 36px; height: 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.step__body { flex: 1; }

/* FAQ inline */
.faq-inline { margin-top: 8px; }
.faq-inline__item {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}
.faq-inline__item:last-child { border-bottom: none; }
.faq-inline__item h3 { margin-bottom: 6px; }

/* ── ISSUING STATEMENT ── */
.issuing-section {
  background: var(--gray-light);
  padding: 40px 0;
}
.issuing-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.issuing-section p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 12px;
}

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 48px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__col {}
.footer__title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer__list { display: flex; flex-direction: column; gap: 10px; }
.footer__link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  cursor: pointer;
}
a.footer__link:hover { color: var(--white); text-decoration: underline; }
span.footer__link { cursor: default; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.footer__disclaimer {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--primary);
  padding: 40px 0;
  text-align: center;
}
.page-hero__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
}
.page-hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-top: 6px;
}

/* ── FAQ PAGE ── */
.faq-section { padding: 40px 0; }
.faq-container { max-width: 800px; }
.faq-group { margin-bottom: 32px; }
.faq-group__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}
.faq-item {
  border-bottom: 1px solid #eee;
}
.faq-item__q {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item__q:hover { color: var(--primary); }
.faq-item__icon {
  width: 12px; height: 12px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item__q[aria-expanded="true"] .faq-item__icon {
  transform: rotate(180deg);
}
.faq-item__a {
  padding: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

/* ── CONTACT PAGE ── */
.contact-section { padding: 40px 0; }
.contact-container { max-width: 800px; }
.contact-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}
.contact-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.contact-card__desc {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
}
.contact-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.contact-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 6px;
}
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.contact-info__icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: #eef2f7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.contact-info__icon svg {
  width: 18px;
  height: 18px;
}
.contact-info__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.contact-info__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.contact-info__note {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}
@media (max-width: 600px) {
  .contact-info { grid-template-columns: 1fr; }
}

/* ── PRIVACY / POLICY ── */
.policy-section { padding: 40px 0; }
.policy-container { max-width: 800px; }
.policy-block {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}
.policy-block:last-child { border-bottom: none; }
.policy-block__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.policy-block__sub {
  font-size: 1rem;
  font-weight: 600;
  margin: 12px 0 6px;
}
.policy-block p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 8px;
}
.policy-block ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 8px;
}
.policy-block li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 4px;
}

/* ── 404 ── */
.not-found {
  text-align: center;
  padding: 80px 20px;
}
.not-found__code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.not-found__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 12px 0;
}
.not-found__desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.not-found__btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}
.not-found__btn:hover { background: var(--primary-dark); }

/* ── BTN SUCCESS ── */
.btn-continue--success { background: #2e7d32 !important; }
.btn-continue--success:hover { background: #256b29 !important; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .card-tab { font-size: 0.85rem; padding: 12px 16px; }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .btn-get-card { display: none; }
  .content-inner h2 { font-size: 1.3rem; }
  .balance-result__row { flex-direction: column; gap: 16px; }
}

@media (max-width: 480px) {
  .header__inner { height: 52px; }
  .visa-logo { width: 64px; }
  .card-widget { padding: 10px; }
  .card-body { padding: 20px 16px; }
  .form-actions { flex-direction: column; }
  .form-actions .btn-submit,
  .form-actions .btn-cancel { width: 100%; }
  .not-found__code { font-size: 4rem; }
}
