/* ============================================================
   BakatFit Landing Page — Public CSS
   Uses CSS variables injected per-page from DB theme settings
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Variables are injected inline per page:
   --navy, --gold, --red, --light-blue, --white, --gray,
   --light-gray, --border
*/

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--white);
  color: #1F2937;
  line-height: 1.6;
}

/* ── HEADER ── */
header {
  background: var(--navy);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.logo-area { display: flex; align-items: center; gap: 14px; }
.logo-img   { width: 52px; height: 52px; object-fit: contain; }
.logo-placeholder {
  width: 52px; height: 52px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.logo-text { color: white; }
.logo-text .brand   { font-size: 22px; font-weight: 700; letter-spacing: 0.5px; }
.logo-text .tagline { font-size: 11px; font-weight: 300; opacity: 0.85; }
.header-contact { color: rgba(255,255,255,0.85); font-size: 13px; }
.header-contact a { color: var(--gold); text-decoration: none; font-weight: 600; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2A4A8A 60%, var(--navy) 100%);
  color: white;
  padding: 80px 24px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.campaign-badge {
  display: inline-block;
  background: var(--red);
  color: white;
  font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 18px; border-radius: 20px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 50px);
  font-weight: 800; line-height: 1.15; margin-bottom: 10px;
}
.hero-bm {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 400; opacity: 0.85; margin-bottom: 24px; font-style: italic;
}
.hero-desc {
  font-size: 16px; max-width: 620px;
  margin: 0 auto 32px; opacity: 0.9; line-height: 1.7;
}
.hero-dates {
  display: inline-flex; gap: 8px; align-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 30px; padding: 8px 20px;
  font-size: 13px; font-weight: 500; margin-bottom: 40px;
}
.hero-cta {
  display: inline-block;
  background: var(--gold); color: var(--navy);
  font-size: 16px; font-weight: 700;
  padding: 16px 40px; border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(230,168,23,0.4);
  cursor: pointer;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(230,168,23,0.5); }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--light-blue);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  display: flex; justify-content: center;
  gap: 40px; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--navy); font-weight: 500; }
.trust-icon { font-size: 18px; }

/* ── SECTION WRAPPER ── */
.section { padding: 64px 24px; max-width: 1100px; margin: 0 auto; }
.section-label {
  text-align: center; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--red); margin-bottom: 12px;
}
.section-title {
  text-align: center; font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.25;
}
.section-subtitle {
  text-align: center; font-size: 15px; color: var(--gray);
  max-width: 580px; margin: 0 auto 48px;
}

/* ── HOW IT WORKS ── */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px; margin-top: 48px;
}
.step-card {
  text-align: center; padding: 32px 20px;
  border-radius: 16px; border: 1px solid var(--border); background: var(--white);
}
.step-number {
  width: 48px; height: 48px; background: var(--navy); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; margin: 0 auto 16px;
}
.step-card h3 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.step-card p  { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* ── PACKAGES ── */
.packages-bg { background: var(--light-gray); padding: 64px 24px; }
.packages-inner { max-width: 900px; margin: 0 auto; }
.packages-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px; margin-top: 48px;
}
.package-card {
  background: var(--white); border-radius: 20px;
  border: 2px solid var(--border); overflow: hidden; position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.package-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(27,53,100,0.12); }
.package-card.featured { border-color: var(--navy); box-shadow: 0 8px 30px rgba(27,53,100,0.15); }
.package-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--red); color: white;
  font-size: 11px; font-weight: 700; padding: 4px 12px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px;
}
.package-header { background: var(--navy); color: white; padding: 28px 28px 24px; }
.package-card.featured .package-header { background: linear-gradient(135deg, var(--navy) 0%, #2A4A8A 100%); }
.package-name { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; opacity: 0.8; margin-bottom: 6px; }
.package-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.package-price-area { padding: 24px 28px 0; }
.package-price { font-size: 38px; font-weight: 800; color: var(--navy); line-height: 1; }
.package-price span { font-size: 16px; font-weight: 400; color: var(--gray); }
.package-savings {
  display: inline-block; background: #FEF3C7; color: #92400E;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px; margin-top: 8px;
}
.package-features { padding: 20px 28px 28px; list-style: none; }
.package-features li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: #374151; margin-bottom: 12px; line-height: 1.5;
}
.package-features li .check { color: #2E8B5A; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.package-cta {
  display: block; margin: 4px 28px 28px;
  background: var(--navy); color: white; text-align: center;
  padding: 14px; border-radius: 12px; font-size: 15px; font-weight: 600;
  text-decoration: none; transition: background 0.2s; cursor: pointer;
}
.package-card.featured .package-cta { background: var(--gold); color: var(--navy); }
.package-cta:hover { opacity: 0.9; }

/* ── PHASES ── */
.phases-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; margin-top: 40px;
}
.phase-card {
  border-left: 4px solid var(--navy); background: var(--light-blue);
  padding: 20px; border-radius: 0 12px 12px 0;
}
.phase-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.phase-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.phase-desc  { font-size: 13px; color: #374151; line-height: 1.6; }
.phase-result { margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--red); }

/* ── TESTIMONIAL ── */
.testimonial-bg { background: var(--navy); padding: 64px 24px; text-align: center; color: white; }
.testimonial-quote {
  font-size: clamp(18px, 2.5vw, 26px); font-style: italic;
  max-width: 700px; margin: 0 auto 24px; line-height: 1.7; opacity: 0.95;
}
.testimonial-quote::before { content: '\201C'; }
.testimonial-quote::after  { content: '\201D'; }
.testimonial-author { font-size: 14px; font-weight: 600; opacity: 0.8; }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-q {
  padding: 18px 20px; font-size: 15px; font-weight: 600; color: var(--navy);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  background: var(--white); user-select: none;
}
.faq-q:hover { background: var(--light-blue); }
.faq-a { padding: 0 20px 16px; font-size: 14px; color: var(--gray); line-height: 1.7; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q { background: var(--light-blue); }
.chevron { transition: transform 0.2s; }
.faq-item.open .chevron { transform: rotate(180deg); }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--red) 0%, #A93226 100%);
  color: white; text-align: center; padding: 64px 24px;
}
.cta-banner h2 { font-size: clamp(22px, 3.5vw, 36px); font-weight: 800; margin-bottom: 10px; }
.cta-banner p  { font-size: 16px; opacity: 0.9; max-width: 520px; margin: 0 auto 32px; }
.cta-btn-white {
  display: inline-block; background: white; color: var(--red);
  font-size: 16px; font-weight: 700; padding: 16px 44px; border-radius: 50px;
  text-decoration: none; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform 0.2s; cursor: pointer;
}
.cta-btn-white:hover { transform: translateY(-2px); }
.deadline-note { margin-top: 16px; font-size: 13px; opacity: 0.8; }

/* ── FOOTER ── */
footer {
  background: #0F2040; color: rgba(255,255,255,0.7);
  text-align: center; padding: 32px 24px; font-size: 13px;
}
footer a { color: var(--gold); text-decoration: none; }
.footer-logo { font-size: 18px; font-weight: 700; color: white; margin-bottom: 8px; }
.footer-links { margin: 8px 0; }
.footer-sep { margin: 0 8px; opacity: 0.4; }
.footer-copy { margin-top: 8px; opacity: 0.6; }

/* ── MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(10,20,50,0.75); backdrop-filter: blur(4px);
  z-index: 9999; overflow-y: auto; padding: 24px 16px;
}
.modal-overlay.open { display: flex; align-items: flex-start; justify-content: center; }
.modal-box {
  background: white; border-radius: 20px; width: 100%; max-width: 700px;
  margin: auto; box-shadow: 0 24px 60px rgba(0,0,0,0.35); overflow: hidden;
max-height: 90vh; display: flex; flex-direction: column;
}
.modal-header { flex-shrink: 0; }
.modal-footer { flex-shrink: 0; }
#modalFormWrap { overflow-y: auto; flex: 1; }
.modal-header {
  background: linear-gradient(135deg, var(--navy) 0%, #2A4A8A 100%);
  color: white; padding: 28px 32px 24px; position: relative;
}
.modal-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.modal-header p  { font-size: 14px; opacity: 0.85; }
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: rgba(255,255,255,0.15); border: none; color: white;
  width: 32px; height: 32px; border-radius: 50%; font-size: 18px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.3); }
.modal-body { padding: 28px 32px 0; }
.form-section-title {
  font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--navy); border-bottom: 2px solid var(--light-blue);
  padding-bottom: 8px; margin: 24px 0 16px;
}
.form-section-title:first-child { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 13px; font-weight: 600; color: #374151; }
.form-group label .req { color: var(--red); margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: 'Poppins', sans-serif; color: #1F2937;
  transition: border-color 0.2s; background: var(--light-gray);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--navy); background: white;
}
.selected-package-box {
  background: var(--light-blue); border: 1.5px solid var(--navy);
  border-radius: 12px; padding: 14px 16px;
  font-size: 15px; font-weight: 700; color: var(--navy);
}
.payment-box {
  background: var(--light-blue); border: 1.5px solid var(--navy);
  border-radius: 14px; padding: 18px 20px; margin-top: 4px;
}
.payment-box .bank-name { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.payment-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; border-bottom: 1px solid #C7D9F5; font-size: 13px;
}
.payment-row:last-child { border-bottom: none; }
.payment-row .label { color: var(--gray); font-weight: 500; }
.payment-row .value { font-weight: 700; color: var(--navy); font-size: 14px; }
.payment-row .value.amount { color: var(--red); font-size: 16px; }
.copy-btn {
  background: var(--navy); color: white; border: none; border-radius: 6px;
  padding: 3px 10px; font-size: 11px; cursor: pointer;
  font-family: 'Poppins', sans-serif; font-weight: 600; margin-left: 8px;
}
.copy-btn:hover { opacity: 0.85; }
.payment-note { font-size: 12px; color: var(--gray); margin-top: 10px; line-height: 1.5; }
.pdpa-box {
  background: #FFF8F0; border: 1.5px solid var(--gold);
  border-radius: 12px; padding: 16px 18px; margin-top: 4px;
}
.checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.checkbox-item { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.checkbox-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--navy); margin-top: 1px; flex-shrink: 0; }
.checkbox-item span { font-size: 13px; color: #374151; line-height: 1.5; }
.checkbox-item span a { color: var(--navy); text-decoration: underline; }
.form-errors {
  background: #FEF2F2; border: 1px solid #FECACA; border-radius: 10px;
  padding: 12px 16px; margin-top: 16px;
}
.form-errors p { font-size: 13px; color: #DC2626; margin-bottom: 4px; }
.form-errors p:last-child { margin-bottom: 0; }
.modal-footer { padding: 24px 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.btn-submit {
  width: 100%; background: linear-gradient(135deg, var(--navy), #2A4A8A);
  color: white; border: none; padding: 16px; border-radius: 12px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  font-family: 'Poppins', sans-serif; transition: opacity 0.2s, transform 0.2s;
}
.btn-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-submit:disabled { background: #9CA3AF; cursor: not-allowed; transform: none; }
.submit-note { font-size: 12px; color: var(--gray); text-align: center; line-height: 1.5; }
.success-screen { display: none; padding: 48px 32px; text-align: center; }
.success-screen.show { display: block; }
.success-icon { font-size: 56px; margin-bottom: 16px; }
.success-screen h3 { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.success-screen p  { font-size: 14px; color: var(--gray); line-height: 1.7; margin-bottom: 16px; }
.mt-12 { margin-top: 12px; }
.form-optional { font-size: 11px; color: var(--gray); font-weight: 400; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .trust-bar { gap: 16px; }
  .packages-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .modal-body { padding: 20px 20px 0; }
  .modal-footer { padding: 20px 20px 24px; }
  .modal-header { padding: 20px 20px 16px; }
}
