/* ═══════════════════════════════════════════════════
   GEL Express — Global Styles
   ═══════════════════════════════════════════════════ */

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

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

:root {
  --navy:      #0d1b2a;
  --blue:      #1e40af;
  --accent:    #2563eb;
  --orange:    #e55a2b;
  --bg:        #f1f5f9;
  --card:      #ffffff;
  --text:      #0f172a;
  --muted:     #64748b;
  --border:    #e2e8f0;
  --radius:    10px;
  --shadow:    0 2px 16px rgba(0,0,0,.08);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── HEADER ── */
.site-header {
  background: var(--navy);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand-logo { height: 38px; object-fit: contain; }
.header-badges { display: flex; gap: .6rem; flex: 1; }
.badge {
  background: rgba(255,255,255,.1);
  color: #93c5fd;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.header-contact { color: #cbd5e1; font-size: 13px; font-weight: 600; white-space: nowrap; }

/* ── HERO ── */
.hero-banner {
  background: linear-gradient(135deg, #0d1b2a 0%, #1e3a6e 60%, #1e40af 100%);
  padding: 3rem 2rem;
  text-align: center;
}
.hero-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: .12em;
}
.hero-sub  { color: #93c5fd; font-size: 1rem; font-weight: 600; letter-spacing: .2em; margin-top: .5rem; }
.hero-addr { color: #94a3b8; font-size: .85rem; margin-top: .6rem; }

/* ── FORM WRAPPER ── */
.form-wrapper {
  max-width: 1100px;
  margin: 2rem auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ── TABS ── */
.tabs {
  display: flex;
  background: var(--navy);
}
.tab {
  flex: 1;
  padding: 14px 10px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  cursor: pointer;
  transition: all .2s;
  border-bottom: 3px solid transparent;
}
.tab:hover  { color: #fff; background: rgba(255,255,255,.05); }
.tab.active { color: #60a5fa; border-bottom-color: #60a5fa; }

/* ── FORM CONTENT ── */
.tab-content { padding: 1.5rem 2rem; }
.tab-content.hidden { display: none; }

.form-subtitle {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  color: var(--muted);
  margin-bottom: 1.2rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* ── FORM ROWS ── */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: .75rem;
}
.form-row.align-center { align-items: center; }

.row-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--muted);
  min-width: 60px;
  padding-top: 10px;
}

.field-group { display: flex; flex-direction: column; gap: 4px; }
.field-group.grow { flex: 1; min-width: 160px; }

.field-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--muted);
}

.field-input {
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #f8fafc;
  transition: border-color .2s;
  outline: none;
  width: 100%;
}
.field-input:focus { border-color: var(--accent); background: #fff; }
textarea.field-input { resize: vertical; }

/* ── TOGGLE BUTTONS ── */
.toggle-group { display: flex; gap: .4rem; }
.toggle-btn {
  padding: 7px 16px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: #f8fafc;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}
.toggle-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── PACKAGE TABLE ── */
.pkg-table-wrap {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: .75rem 0;
}
.pkg-table-header {
  display: grid;
  grid-template-columns: 60px 60px 60px 60px 70px 1fr 90px 80px 36px;
  gap: 4px;
  background: var(--navy);
  padding: 8px 10px;
}
.pkg-table-header span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #94a3b8;
  text-align: center;
}
.ph-desc { text-align: left !important; }

.pkg-row {
  display: grid;
  grid-template-columns: 60px 60px 60px 60px 70px 1fr 90px 80px 36px;
  gap: 4px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.pkg-row:last-child { border-bottom: none; }
.pkg-row:nth-child(even) { background: #f8fafc; }

.pkg-row input {
  width: 100%;
  padding: 6px 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 13px;
  font-family: inherit;
  text-align: center;
  background: #fff;
  outline: none;
}
.pkg-row input:focus { border-color: var(--accent); }
.desc-input { text-align: left !important; }

.row-total {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
  padding-right: 4px;
}

.btn-del-row {
  width: 28px; height: 28px;
  border: none;
  border-radius: 6px;
  background: #fee2e2;
  color: #ef4444;
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.btn-del-row:hover { background: #ef4444; color: #fff; }

/* ── FORM BOTTOM ── */
.form-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-top: .5rem;
}

.btn-add-item {
  padding: 9px 20px;
  background: var(--navy);
  color: #60a5fa;
  border: 2px dashed #334155;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  transition: all .2s;
}
.btn-add-item:hover { background: #1e293b; border-color: var(--accent); }

.totals-area {
  min-width: 260px;
  background: #f8fafc;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: .75rem 1rem;
}
.totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.totals-row:last-child { border-bottom: none; }
.totals-row.grand {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-top: 4px;
}
.tax-input {
  width: 50px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  text-align: center;
}

/* ── CTA BUTTONS ── */
.form-cta {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1.5px solid var(--border);
}

.btn-reset {
  padding: 12px 24px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}
.btn-reset:hover { background: var(--bg); }

.btn-generate {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37,99,235,.4);
  transition: all .2s;
}
.btn-generate:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.5); }

/* ── TRACK RESULT ── */
.track-result {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-top: 1rem;
}
.track-result.error {
  background: #fef2f2;
  border-color: #fca5a5;
}
.track-status {
  font-size: 18px;
  font-weight: 800;
  color: #16a34a;
  margin-bottom: .5rem;
}

/* ══════════════════════════════════════════
   PRINT INVOICE
   ══════════════════════════════════════════ */
.invoice-print { padding: 2rem; max-width: 900px; margin: 2rem auto; display: none; }
.invoice-print.show { display: block; }

.inv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.inv-brand { display: flex; align-items: center; gap: 1rem; }
.inv-logo-img { height: 50px; object-fit: contain; }
.inv-company { font-size: 1.4rem; font-weight: 900; color: var(--navy); letter-spacing: .05em; }
.inv-tagline { font-size: .75rem; color: var(--muted); font-weight: 600; letter-spacing: .1em; }

.inv-meta { text-align: right; }
.inv-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: .5rem;
}
.inv-meta-table { font-size: 12px; color: var(--muted); }
.inv-meta-table th { text-align: right; padding-right: 8px; font-weight: 600; }
.inv-meta-table td { color: var(--text); font-weight: 700; }

.inv-stripe { height: 5px; background: linear-gradient(90deg, var(--accent), #06b6d4); border-radius: 3px; margin: 1rem 0; }

.inv-addresses { display: flex; gap: 2rem; margin: 1rem 0; }
.addr-col { flex: 1; }
.addr-arrow { font-size: 2rem; display: flex; align-items: center; color: var(--muted); }
.addr-label { font-size: 10px; font-weight: 800; letter-spacing: .15em; color: var(--accent); margin-bottom: .3rem; }
.addr-name  { font-size: 15px; font-weight: 700; color: var(--text); }
.addr-info  { font-size: 12px; color: var(--muted); margin-top: 2px; }

.inv-section {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--muted);
  margin: 1rem 0 .4rem;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--accent);
}

.inv-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.inv-table th {
  background: var(--navy);
  color: #94a3b8;
  padding: 7px 10px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}
.inv-table td { padding: 7px 10px; border-bottom: 1px solid var(--border); }
.inv-table tbody tr:nth-child(even) { background: #f8fafc; }
.tf-row td { padding: 6px 10px; font-size: 13px; color: var(--muted); }
.tf-grand td { font-size: 16px; font-weight: 800; color: var(--text); background: #f0f9ff; }

.inv-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1.5px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.inv-footer strong { color: var(--navy); }
.inv-footer-sub { margin-top: 4px; font-size: 11px; }

/* ── PRINT MEDIA ── */
@media print {
  body > *:not(#invoice-print) { display: none !important; }
  #invoice-print { display: block !important; margin: 0 !important; padding: 1.5cm !important; }
  .inv-stripe { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .inv-table th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ── STEP LABELS ── */
.step-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--accent);
  background: #eff6ff;
  border-left: 3px solid var(--accent);
  padding: 6px 12px;
  margin: 1rem 0 .6rem;
  border-radius: 0 6px 6px 0;
}

/* ── CURRENCY STATIC ── */
.currency-static {
  background: #f1f5f9;
  color: var(--muted);
  font-weight: 600;
  cursor: default;
}

/* ── PACKAGE ITEMS (booking style) ── */
.pkg-row { align-items: center; }
.row-sn {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}
.row-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
  padding-right: 4px;
}
.pkg-total-row {
  display: grid;
  grid-template-columns: 40px 1fr 80px 80px 110px 110px 36px;
  gap: 4px;
  padding: 8px 10px;
  background: #f0f9ff;
  border-top: 2px solid var(--accent);
  align-items: center;
}
.pkg-total-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--muted);
  text-align: right;
}
.pkg-total-val {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
  text-align: right;
  padding-right: 4px;
}

/* ── DECLARATION ── */
.declaration-wrap {
  margin: 1rem 0 .75rem;
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.declaration-label {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  cursor: pointer;
  flex: 1;
}
.declaration-label input[type="checkbox"] { display: none; }
.declaration-box {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border: 2px solid #d97706;
  border-radius: 4px;
  margin-top: 2px;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.declaration-label input:checked ~ .declaration-box {
  background: #d97706;
}
.declaration-label input:checked ~ .declaration-box::after {
  content: '✓';
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.declaration-text {
  font-size: 10px;
  line-height: 1.6;
  color: #78350f;
  font-weight: 500;
  letter-spacing: .01em;
}
.btn-print-decl {
  flex-shrink: 0;
  padding: 7px 14px;
  background: #fff;
  border: 1.5px solid #d97706;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #d97706;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
}
.btn-print-decl:hover { background: #d97706; color: #fff; }

/* ── CAPTCHA ── */
.captcha-wrap {
  margin: .75rem 0;
  padding: .75rem 1rem;
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.captcha-label { margin-bottom: 0 !important; white-space: nowrap; }
.captcha-row { display: flex; align-items: center; gap: .75rem; }
.captcha-question {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
}
.captcha-input { max-width: 100px; }

/* ── FORM ERROR ── */
.form-error {
  margin: .5rem 0;
  padding: .75rem 1rem;
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 8px;
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
}

/* ── SPINNER ── */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SUCCESS MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}
.modal-overlay.hidden { display: none; }
.modal-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.modal-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
  font-size: 28px;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.modal-title { font-size: 22px; font-weight: 800; color: var(--text); }
.modal-msg   { color: var(--muted); font-size: 14px; margin-top: .5rem; }
.modal-ref-wrap {
  background: #f0fdf4;
  border: 2px dashed #86efac;
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0;
}
.modal-ref-label { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.modal-ref { font-size: 1.4rem; font-weight: 900; color: #16a34a; margin-top: 4px; letter-spacing: .05em; }
.modal-note { font-size: 12px; color: var(--muted); margin-bottom: 1rem; }
.modal-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── TRACK INPUT ── */
.track-big-input { font-size: 1rem !important; padding: 14px 16px !important; }
.track-result { margin-top: 1rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .pkg-table-header,
  .pkg-row,
  .pkg-total-row {
    grid-template-columns: 30px 1fr 60px 60px 80px 80px 30px !important;
    font-size: 12px;
  }
  .header-badges { display: none; }
  .tab-content { padding: 1rem; }
  .declaration-wrap { flex-direction: column; }
  .modal-actions { flex-direction: column; }
}
