/* ============================================================
   MAIN CSS — Jasyar / Pacific Travel proxy sites
   ============================================================ */

:root {
  --navy:    #003781;
  --navy-d:  #002560;
  --navy-l:  #EEF3FF;
  --accent:  #FF6B00;
  --accent-d:#E05A00;
  --white:   #FFFFFF;
  --bg:      #F5F8FF;
  --gray-50: #F8FAFC;
  --gray-100:#F1F5F9;
  --gray-400:#94A3B8;
  --gray-500:#64748B;
  --gray-700:#334155;
  --gray-900:#0F172A;
  --r-sm:    6px;
  --r-md:    12px;
  --r-lg:    20px;
  --shadow:  0 2px 16px rgba(0,55,129,.10);
  --shadow-lg:0 8px 32px rgba(0,55,129,.15);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--gray-700);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── NAVBAR ────────────────────────────────────────────────── */
.navbar {
  background: var(--navy);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.3px;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
}

.nav-wa {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: var(--white);
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  /* Class NinjaTeam WhatsApp untuk GTM trigger */
  transition: background .15s;
}
.nav-wa:hover { background: #1fbb5a; }
.nav-wa svg { width: 16px; height: 16px; fill: currentColor; }

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0044a8 60%, #0055cc 100%);
  padding: 32px 20px 0;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: rgba(255,107,0,.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  max-width: 480px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -.4px;
  margin-bottom: 10px;
}

.hero-title span { color: #FFB347; }

.hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ── FORM CARD ─────────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 24px 20px 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.form-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-card-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--navy-l);
  border-radius: 2px;
}

/* Field labels */
.fc-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: .3px;
  text-transform: uppercase;
  margin-bottom: 6px;
  margin-top: 14px;
}
.fc-label:first-of-type { margin-top: 0; }

/* Inputs */
.fc-input,
.fc-select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #D1DCF0;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--gray-900);
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.fc-input:focus,
.fc-select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0,55,129,.10);
}

.fc-select-wrap {
  position: relative;
}
.fc-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
  font-size: 12px;
}

/* Date row */
.date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Peserta section */
.peserta-section {
  margin-top: 14px;
}

.peserta-block {
  background: var(--navy-l);
  border-radius: var(--r-sm);
  padding: 14px;
  margin-bottom: 10px;
}

.peserta-block-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.peserta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-tambah {
  width: 100%;
  padding: 10px;
  border: 1.5px dashed #B0C4E8;
  border-radius: var(--r-sm);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  background: transparent;
  margin-top: 6px;
  transition: background .15s, border-color .15s;
}
.btn-tambah:hover { background: var(--navy-l); border-color: var(--navy); }

/* Tombol hitung */
.btn-hitung {
  width: 100%;
  padding: 15px;
  background: var(--navy);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--r-md);
  margin-top: 20px;
  letter-spacing: .2px;
  transition: background .15s, transform .1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-hitung:hover { background: var(--navy-d); transform: translateY(-1px); }
.btn-hitung:active { transform: translateY(0); }

.btn-hitung-note {
  font-size: 11px;
  color: var(--gray-400);
  text-align: center;
  margin-top: 8px;
}

/* ── BENEFITS ──────────────────────────────────────────────── */
.benefits {
  padding: 32px 20px;
  background: var(--white);
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 20px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.benefit-card {
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 16px 14px;
  border: 1px solid #E2ECFF;
}

.benefit-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.benefit-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.benefit-desc {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ── TIPE PERJALANAN ───────────────────────────────────────── */
.trip-types {
  padding: 24px 20px;
  background: var(--bg);
}

.trip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.trip-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 16px 10px;
  text-align: center;
  border: 1px solid #E2ECFF;
  box-shadow: var(--shadow);
}

.trip-card-icon { font-size: 28px; margin-bottom: 8px; }
.trip-card-title { font-size: 12px; font-weight: 700; color: var(--navy); }
.trip-card-desc  { font-size: 11px; color: var(--gray-500); margin-top: 4px; line-height: 1.4; }

/* ── HOW IT WORKS ──────────────────────────────────────────── */
.how-it-works {
  padding: 32px 20px;
  background: var(--white);
}

.step-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.step-content-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ── CTA SECTION ───────────────────────────────────────────── */
.cta-section {
  padding: 28px 20px;
  background: linear-gradient(135deg, var(--navy), #0044a8);
  text-align: center;
}

.cta-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.cta-sub {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  margin-bottom: 20px;
}

.btn-wa-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  /* Class NinjaTeam WhatsApp untuk GTM trigger */
  transition: background .15s, transform .1s;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
}
.btn-wa-cta:hover  { background: #1fbb5a; transform: translateY(-2px); }
.btn-wa-cta:active { transform: translateY(0); }
.btn-wa-cta svg { width: 20px; height: 20px; fill: currentColor; }

/* ── FOOTER ────────────────────────────────────────────────── */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.7);
  padding: 28px 20px 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
}

.footer-desc {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  transition: color .15s;
}
.footer-links a:hover { color: var(--white); }

.footer-social {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.footer-social a:hover { background: rgba(255,255,255,.15); }
.footer-social svg { width: 16px; height: 16px; fill: rgba(255,255,255,.7); }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.08);
  margin: 16px 0;
}

.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  text-align: center;
}

.footer-disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  line-height: 1.6;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-sm);
  font-style: italic;
}

/* ── FLOATING WA BUTTON ────────────────────────────────────── */
.float-wa {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  /* Class NinjaTeam WhatsApp untuk GTM trigger */
  transition: transform .2s, box-shadow .2s;
  animation: float-pulse 2.5s ease-in-out infinite;
}
.float-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.6);
}
.float-wa svg { width: 28px; height: 28px; fill: var(--white); }

@keyframes float-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.5); }
  50%       { box-shadow: 0 4px 28px rgba(37,211,102,.7); }
}

/* ── TOAST ─────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--gray-900);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 1000;
  white-space: nowrap;
  max-width: 90vw;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.error { background: #DC2626; }

/* ── UTILS ─────────────────────────────────────────────────── */
.text-error {
  font-size: 11px;
  color: #DC2626;
  margin-top: 4px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── TIPE TABS ─────────────────────────────────────────────── */
.tipe-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 2px;
}

.tipe-tab {
  padding: 9px 8px;
  border: 1.5px solid #D1DCF0;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--white);
  text-align: center;
  transition: all .15s;
}
.tipe-tab:hover  { border-color: var(--navy); color: var(--navy); background: var(--navy-l); }
.tipe-tab.active { border-color: var(--navy); color: var(--white); background: var(--navy); }

/* ── PLAN TABS ─────────────────────────────────────────────── */
.plan-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.plan-tab {
  padding: 9px 6px;
  border: 1.5px solid #D1DCF0;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--white);
  text-align: center;
  transition: all .15s;
}
.plan-tab:hover  { border-color: var(--accent); color: var(--accent); }
.plan-tab.active { border-color: var(--accent); color: var(--white); background: var(--accent); }
