/* ═══════════════════════════════════════════
   THE FOUNDATION ENGLISH ACADEMY — THEME
   ═══════════════════════════════════════════ */

:root {
  --cream:       #fdf8ed;
  --cream-dark:  #f5edcf;
  --gold:        #c9930a;
  --gold-light:  #e8b020;
  --gold-grad:   linear-gradient(135deg, #c9930a 0%, #e8b020 60%, #f5c842 100%);
  --navy:        #1a1d2e;
  --navy-light:  #252840;
  --text-dark:   #1a1d2e;
  --text-muted:  #6b6a5e;
  --white:       #ffffff;
  --radius:      18px;
  --shadow:      0 8px 40px rgba(180, 130, 0, 0.13);
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'DM Sans', sans-serif;
  --font-body:   'Sora', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--cream); color: var(--text-dark); overflow-x: hidden; }
.gold-text { color: var(--gold); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 80px 8vw;
  position: relative;
  overflow: hidden;
  background: var(--cream);
  max-width: 100%;
  margin: 0 auto;
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.orb-a { width: 500px; height: 500px; background: rgba(201,147,10,0.10); top: -120px; right: -100px; }
.orb-b { width: 380px; height: 380px; background: rgba(201,147,10,0.07); bottom: 0; left: -80px; }

.hero-left { flex: 0 0 auto; display: flex; justify-content: center; z-index: 1; }
.teacher-wrap { position: relative; width: 360px; }
.teacher-img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(180,130,0,0.18);
  display: block;
  animation: floatUpDown 4s ease-in-out infinite;
}
@keyframes floatUpDown {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-18px); }
  100% { transform: translateY(0px); }
}
.teacher-badge {
  position: absolute; bottom: -18px; right: -18px;
  background: white; border-radius: 14px; padding: 12px 18px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  font-family: var(--font-sans);
}
.badge-star { font-size: 28px; color: var(--gold-light); line-height: 1; }
.badge-title { font-weight: 600; font-size: 14px; color: var(--text-dark); }
.badge-sub { font-size: 12px; color: var(--text-muted); }

.hero-right { flex: 1; z-index: 1; max-width: 600px; }
.enroll-pill {
  display: inline-block; background: white; border: 1.5px solid var(--cream-dark);
  border-radius: 50px; padding: 8px 20px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 20px;
}
.presenter { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 10px; text-transform: uppercase; }
.hero-title { font-family: var(--font-serif); font-size: clamp(36px, 5vw, 62px); font-weight: 900; line-height: 1.1; color: var(--navy); margin-bottom: 18px; }
.title-rule { width: 60px; height: 3px; background: var(--gold-grad); border-radius: 2px; margin-bottom: 20px; }
.hero-desc { font-family: var(--font-body); font-size: 16px; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }

.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
.feature-chip { background: white; border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 500; color: var(--text-dark); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold-grad); color: white; padding: 16px 32px;
  border-radius: 50px; font-weight: 600; font-size: 15px; text-decoration: none;
  box-shadow: 0 6px 24px rgba(201,147,10,0.35); transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(201,147,10,0.45); }
.btn-outline {
  background: transparent; border: 2px solid var(--gold); color: var(--gold);
  padding: 14px 30px; border-radius: 50px; font-weight: 600; font-size: 15px;
  text-decoration: none; transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--gold); color: white; }

/* PAYMENT SECTION */
.payment-section {
  background: linear-gradient(180deg, var(--cream) 0%, #fdf4d8 100%);
  padding: 100px 8vw; display: flex; justify-content: center; position: relative; overflow: hidden;
}
.payment-orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.pa { width: 400px; height: 400px; background: rgba(201,147,10,0.09); top: -100px; right: 5%; }
.pb { width: 300px; height: 300px; background: rgba(201,147,10,0.07); bottom: 0; left: 5%; }

.pay-inner { width: 100%; max-width: 620px; text-align: center; position: relative; z-index: 1; }
.secure-pill {
  display: inline-block; background: white; border: 1.5px solid var(--cream-dark);
  border-radius: 50px; padding: 8px 22px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 20px;
}
.pay-title { font-family: var(--font-serif); font-size: clamp(32px, 5vw, 52px); font-weight: 900; color: var(--navy); margin-bottom: 12px; }
.pay-subtitle { font-size: 15px; color: var(--text-muted); margin-bottom: 14px; font-family: var(--font-body); }
.pay-rule { width: 50px; height: 3px; background: var(--gold-grad); border-radius: 2px; margin: 0 auto 40px; }

.pay-card { background: white; border-radius: var(--radius); padding: 40px 36px; box-shadow: var(--shadow); text-align: left; margin-bottom: 24px; }
.field-group { margin-bottom: 22px; }
.field-label { display: block; font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.field-icon { margin-right: 6px; }
.field-input {
  width: 100%; padding: 14px 16px; border: 1.5px solid #e8e2d0; border-radius: 12px;
  font-size: 15px; font-family: var(--font-sans); color: var(--text-dark);
  background: #fdfaf2; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.field-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,147,10,0.12); }
.field-input::placeholder { color: #bbb; }

.amount-wrap {
  display: flex; align-items: center; border: 1.5px solid #e8e2d0;
  border-radius: 12px; background: #fdfaf2; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s;
}
.amount-wrap:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,147,10,0.12); }
.currency-tag {
  padding: 0 14px; font-size: 13px; font-weight: 700; color: var(--gold);
  border-right: 1.5px solid #e8e2d0; background: #fdf8ed; height: 48px; display: flex; align-items: center;
}
.amount-input { border: none; background: transparent; box-shadow: none; padding: 14px 14px; flex: 1; }
.amount-input:focus { box-shadow: none; border: none; }
.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pay-summary { background: #fdf8ed; border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; border: 1px solid #f0e8c8; }
.sum-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); padding: 4px 0; }
.sum-row strong { color: var(--text-dark); }

.trust-badges { display: flex; gap: 18px; justify-content: center; font-size: 13px; color: var(--text-muted); margin-bottom: 18px; flex-wrap: wrap; }

.pay-btn {
  width: 100%; padding: 18px; background: var(--gold-grad); border: none; border-radius: 14px;
  font-size: 16px; font-weight: 700; color: white; cursor: pointer; letter-spacing: 0.03em;
  box-shadow: 0 6px 24px rgba(201,147,10,0.35); transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  font-family: var(--font-sans);
}
.pay-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(201,147,10,0.45); }
.pay-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.sandbox-note { text-align: center; font-size: 12px; color: #bbb; margin-top: 14px; }

.guarantees { display: flex; justify-content: center; gap: 28px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; margin-bottom: 40px; }

.test-cards-wrap { background: white; border-radius: var(--radius); padding: 24px 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.test-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--text-muted); text-align: center; margin-bottom: 14px; }
.test-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.test-card { border-radius: 10px; padding: 12px 14px; }
.success-card { background: #edfff3; border: 1px solid #b8f0cb; }
.fail-card { background: #fff3f3; border: 1px solid #f0c4c4; }
.card-type { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.card-num { font-size: 13px; letter-spacing: 0.1em; color: var(--text-dark); }
.card-hint { font-size: 12px; color: var(--text-muted); text-align: center; }

/* FOOTER */
.site-footer { background: var(--navy); padding: 60px 0 0; color: #a0a3b8; }
.footer-container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.footer-inner { display: flex; gap: 60px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.07); flex-wrap: wrap; justify-content: space-between; }
.footer-brand { flex: 0 0 300px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.logo-icon {
  width: 42px; height: 42px; background: var(--gold-grad); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: white; font-family: var(--font-serif);
}
.logo-name { font-weight: 700; font-size: 16px; color: white; }
.logo-sub { font-size: 12px; color: var(--gold-light); }
.footer-desc { font-size: 14px; line-height: 1.7; color: #7b7e96; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px; background: rgba(255,255,255,0.07); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  text-decoration: none; transition: background 0.2s;
}
.social-btn:hover { background: rgba(201,147,10,0.25); }
.footer-links { display: flex; gap: 60px; flex: 1; flex-wrap: wrap; justify-content: flex-end; }
.footer-col { min-width: 160px; }
.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: white; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li { font-size: 14px; color: #7b7e96; cursor: pointer; transition: color 0.2s; }
.footer-col ul li:hover { color: var(--gold-light); }
.contact-item { font-size: 14px; color: #7b7e96; margin-bottom: 10px; line-height: 1.5; }
.whatsapp-btn {
  display: inline-block; margin-top: 8px; background: var(--gold-grad); color: white;
  padding: 11px 22px; border-radius: 50px; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: opacity 0.2s, transform 0.2s;
}
.whatsapp-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 13px; color: #4e506a; flex-wrap: wrap; gap: 10px; }

/* TOAST */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: white; padding: 14px 28px; border-radius: 50px;
  font-size: 14px; font-weight: 500; opacity: 0; transition: opacity 0.3s, transform 0.3s;
  z-index: 9999; white-space: nowrap; box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.success-toast { background: #1a3a2a; border: 1px solid #2a6b42; }
.error-toast   { background: #3a1a1a; border: 1px solid #8b2020; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding: 60px 6vw; gap: 40px; }
  .teacher-wrap { width: 260px; }
  .hero-btns { justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 30px; }
  .footer-brand { flex: 0 0 100%; width: 100%; }
  .footer-links { flex: 0 0 100%; width: 100%; justify-content: flex-start; gap: 0; }
  .footer-col { min-width: 100%; }
  .contact-item { word-break: break-word; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; font-size: 12px; }
}
@media (max-width: 500px) {
  .features-grid { grid-template-columns: 1fr; }
  .test-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .pay-card { padding: 28px 20px; }
}
.iti { width: 100%; }
.iti__flag-container { z-index: 10; }
.iti input { width: 100%; }
/* ═══════════════════════════════════════════
   INVOICE MODAL STYLES
   ═══════════════════════════════════════════ */

/* Overlay */
.inv-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 12, 24, 0.75);
  backdrop-filter: blur(6px);
  z-index: 0;
}

#invoice-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.inv-container {
  position: relative; z-index: 1;
  width: 100%; max-width: 600px;
  animation: invSlideUp 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes invSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Invoice Paper */
.inv-paper {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  margin-bottom: 16px;
}

/* Header */
.inv-header {
  background: linear-gradient(135deg, #1a1d2e 0%, #252840 100%);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inv-logo-wrap {
  display: flex; align-items: center; gap: 14px;
}

.inv-logo-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #c9930a, #e8b020, #f5c842);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; color: white;
  font-family: 'Playfair Display', serif;
}

.inv-brand { font-weight: 700; font-size: 16px; color: white; font-family: 'Playfair Display', serif; }
.inv-brand-sub { font-size: 11px; color: #e8b020; font-weight: 600; letter-spacing: 0.5px; }

.inv-title-wrap { text-align: right; }
.inv-title { font-size: 28px; font-weight: 800; color: white; letter-spacing: 3px; font-family: 'Playfair Display', serif; }
.inv-paid-badge {
  display: inline-block; margin-top: 6px;
  background: linear-gradient(135deg, #00a152, #00e676);
  color: white; font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: 50px; letter-spacing: 1px;
}

/* Divider */
.inv-divider {
  height: 4px;
  background: linear-gradient(90deg, #c9930a, #e8b020, #f5c842, #e8b020, #c9930a);
}

/* Details Grid */
.inv-details-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 24px 32px; gap: 16px;
  background: #fdf8ed;
  border-bottom: 1px solid #f0e8c8;
}

.inv-detail-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  color: #c9930a; margin-bottom: 6px; text-transform: uppercase;
}
.inv-detail-value { font-size: 16px; font-weight: 700; color: #1a1d2e; margin-bottom: 2px; }
.inv-detail-sub { font-size: 12px; color: #888; }

/* Table */
.inv-table { padding: 24px 32px; }

.inv-table-head {
  display: flex; justify-content: space-between;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  color: #999; text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0e8c8;
  margin-bottom: 16px;
}

.inv-table-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px dashed #f0e8c8;
}

.inv-item-name { font-size: 15px; font-weight: 700; color: #1a1d2e; margin-bottom: 3px; }
.inv-item-desc { font-size: 12px; color: #888; }
.inv-item-amount { font-size: 15px; font-weight: 700; color: #1a1d2e; white-space: nowrap; }

.inv-table-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding: 14px 20px;
  background: linear-gradient(135deg, #1a1d2e, #252840);
  border-radius: 12px;
}

.inv-table-total span:first-child {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: rgba(255,255,255,0.6); text-transform: uppercase;
}

.inv-total-amount {
  font-size: 22px; font-weight: 800;
  background: linear-gradient(135deg, #c9930a, #e8b020, #f5c842);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Footer */
.inv-footer {
  padding: 20px 32px 28px;
  text-align: center;
  border-top: 1px solid #f0e8c8;
  background: #fdfaf4;
}

.inv-footer-text { font-size: 14px; font-weight: 600; color: #1a1d2e; margin-bottom: 6px; }
.inv-footer-contact { font-size: 12px; color: #888; margin-bottom: 6px; }
.inv-footer-note { font-size: 11px; color: #bbb; }

/* Action Buttons */
.inv-actions {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.inv-btn {
  padding: 14px 10px; border: none; border-radius: 14px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
}
.inv-btn:hover { transform: translateY(-2px); }
.inv-btn:active { transform: translateY(0); }

.inv-btn-download {
  background: linear-gradient(135deg, #c9930a, #e8b020);
  color: white;
  box-shadow: 0 4px 16px rgba(201,147,10,0.35);
}
.inv-btn-download:hover { box-shadow: 0 6px 24px rgba(201,147,10,0.5); }

.inv-btn-whatsapp {
  background: linear-gradient(135deg, #075e54, #128c7e);
  color: white;
  box-shadow: 0 4px 16px rgba(7,94,84,0.35);
}
.inv-btn-whatsapp:hover { box-shadow: 0 6px 24px rgba(7,94,84,0.5); }

.inv-btn-close {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}
.inv-btn-close:hover { background: rgba(255,255,255,0.2); }

@media (max-width: 500px) {
  .inv-actions { grid-template-columns: 1fr; }
  .inv-header { padding: 20px; flex-direction: column; gap: 12px; text-align: center; }
  .inv-table, .inv-details-grid, .inv-footer { padding: 16px 20px; }
}
.social-btn img {
  vertical-align: middle;
}