/* ============================================================
   LUX TRAVELY — Partner API portal (travel-agency / TMC page)
   Scoped to .pa-* — loaded only by partner_api templates on the
   base_page shell. Uses the styles.css design tokens.
   ============================================================ */

/* ---------- Hero ---------- */
.pa-hero {
  position: relative; overflow: hidden;
  background: #0c0c0b;
  color: #fff;
  padding: 148px 0 96px;
  text-align: center;
}
.pa-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(180,168,134,.22), transparent 65%),
    radial-gradient(ellipse 40% 35% at 12% 105%, rgba(180,168,134,.10), transparent 70%);
}
.pa-hero .wrap { position: relative; z-index: 1; }
.pa-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
  background: rgba(255,255,255,.05);
  padding: 7px 16px; margin-bottom: 26px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-300);
}
.pa-hero__badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.pa-hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(38px, 5.6vw, 64px); line-height: 1.08; letter-spacing: -.02em;
  margin: 0 auto; max-width: 820px;
}
.pa-hero h1 .hl { color: var(--gold-300); }
.pa-hero__sub {
  margin: 22px auto 0; max-width: 640px;
  font-size: 18px; line-height: 1.65; color: rgba(255,255,255,.72);
}
.pa-hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.pa-hero__cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); background: transparent; }
.pa-hero__cta .btn-ghost:hover { border-color: var(--gold); color: var(--gold-300); background: rgba(255,255,255,.04); }
.pa-hero__facts {
  margin: 56px auto 0; display: inline-flex; flex-wrap: wrap; justify-content: center;
  gap: 0; border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg);
  background: rgba(255,255,255,.04); backdrop-filter: blur(6px);
}
.pa-hero__fact { padding: 18px 34px; text-align: center; }
.pa-hero__fact + .pa-hero__fact { border-left: 1px solid rgba(255,255,255,.1); }
.pa-hero__fact b { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--gold-300); }
.pa-hero__fact span { display: block; margin-top: 4px; font-size: 12.5px; color: rgba(255,255,255,.55); }
@media (max-width: 720px) {
  .pa-hero { padding: 128px 0 72px; }
  .pa-hero__fact { padding: 14px 22px; }
  .pa-hero__fact + .pa-hero__fact { border-left: 0; }
}

/* ---------- Sections ---------- */
.pa-sec { padding: 88px 0; background: var(--paper); }
.pa-sec--cream { background: var(--cream); }
.pa-sec--dark { background: #0c0c0b; color: #fff; }
.pa-sec__head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.pa-sec__head h2 {
  font-family: var(--display); font-weight: 600; color: var(--black);
  font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.015em; margin: 0;
}
.pa-sec--dark .pa-sec__head h2 { color: #fff; }
.pa-sec__head p { margin: 14px auto 0; color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.pa-sec--dark .pa-sec__head p { color: rgba(255,255,255,.65); }

/* ---------- Feature cards ---------- */
.pa-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1023px) { .pa-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .pa-cards { grid-template-columns: 1fr; } }
.pa-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 26px; box-shadow: var(--sh-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.pa-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--line-2); }
.pa-card__ic {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-tint); color: var(--gold-700); margin-bottom: 18px;
}
.pa-card h3 { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--black); margin: 0 0 8px; }
.pa-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* ---------- How it works ---------- */
.pa-how { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .pa-how { grid-template-columns: 1fr; gap: 40px; } }
.pa-how h2 {
  font-family: var(--display); font-weight: 600; color: var(--black);
  font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 34px;
}
.pa-step { position: relative; display: flex; gap: 18px; padding-bottom: 30px; }
.pa-step:last-child { padding-bottom: 0; }
.pa-step::before {
  content: ''; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px;
  background: linear-gradient(to bottom, var(--gold-300), rgba(180,168,134,.12));
}
.pa-step:last-child::before { display: none; }
.pa-step__num {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-600) 100%);
  color: #fff; font-family: var(--display); font-weight: 700; font-size: 14px;
  box-shadow: var(--sh-gold);
}
.pa-step h3 { font-family: var(--display); font-weight: 600; font-size: 16.5px; color: var(--black); margin: 8px 0 4px; }
.pa-step p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* Code panel */
.pa-code {
  background: #14130f; border: 1px solid rgba(180,168,134,.18); border-radius: var(--r-lg);
  padding: 26px 28px; box-shadow: var(--sh-lg);
  font-size: 13px; overflow-x: auto;
}
.pa-code__lbl { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin: 0 0 8px; }
.pa-code__lbl + .pa-code__lbl { margin-top: 18px; }
.pa-code code, .pa-code pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--gold-300); word-break: break-all;
}
.pa-code pre { margin: 0; white-space: pre-wrap; color: #b9d4a5; font-size: 12.5px; line-height: 1.65; }

/* ---------- Lifecycle (duty of care) ---------- */
.pa-life { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .pa-life { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 599px) { .pa-life { grid-template-columns: 1fr; } }
.pa-life__card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 20px; box-shadow: var(--sh-sm);
}
.pa-life__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.pa-life__top b { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--black); }
.pa-life__top code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; color: var(--gold-700); background: var(--gold-tint);
  border-radius: 6px; padding: 3px 8px; white-space: nowrap;
}
.pa-life__card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Security list ---------- */
.pa-sec-list { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }
.pa-sec-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.6; color: var(--ink); }
.pa-sec-list .ic { flex: 0 0 auto; margin-top: 2px; color: var(--gold-700); }
.pa-sec-list b { color: var(--black); }

/* ---------- Service class table ---------- */
.pa-table-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-sm); overflow-x: auto;
}
.pa-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 520px; }
.pa-table th {
  padding: 14px 22px; font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.pa-table td { padding: 14px 22px; font-size: 14.5px; color: var(--ink); border-bottom: 1px solid var(--line); }
.pa-table tr:last-child td { border-bottom: 0; }
.pa-table tr:hover td { background: var(--gold-tint); }
.pa-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; color: var(--gold-700);
}

/* ---------- CTA band ---------- */
.pa-cta { text-align: center; padding: 96px 0; }
.pa-cta h2 {
  font-family: var(--display); font-weight: 600; color: #fff;
  font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.015em; margin: 0 0 14px;
}
.pa-cta p { margin: 0 auto 34px; max-width: 520px; color: rgba(255,255,255,.65); font-size: 16.5px; line-height: 1.6; }
.pa-cta__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.pa-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); background: transparent; }
.pa-cta .btn-ghost:hover { border-color: var(--gold); color: var(--gold-300); background: rgba(255,255,255,.04); }

/* ---------- Request-access form ---------- */
.pa-form-wrap { max-width: 720px; margin: 0 auto; }
.pa-form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-md); overflow: hidden;
}
.pa-form-card__head { padding: 24px 32px; border-bottom: 1px solid var(--line); }
.pa-form-card__head h2 { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--black); margin: 0; }
.pa-form-card__head p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.pa-form { padding: 28px 32px 32px; }
.pa-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .pa-form__grid { grid-template-columns: 1fr; } }
.pa-form__field--full { grid-column: 1 / -1; }
.pa-form label { display: block; font-size: 13.5px; font-weight: 600; color: var(--black); margin-bottom: 7px; }
.pa-form label .req { color: #b3413a; }
.pa-form input[type="text"], .pa-form input[type="email"], .pa-form input[type="url"],
.pa-form input[type="tel"], .pa-form select, .pa-form textarea {
  width: 100%; border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--paper); color: var(--black);
  font-family: var(--text); font-size: 14.5px; padding: 12px 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.pa-form input:focus, .pa-form select:focus, .pa-form textarea:focus {
  outline: none; border-color: var(--gold); background: #fff;
  box-shadow: 0 0 0 4px rgba(180,168,134,.18);
}
.pa-form textarea { resize: vertical; min-height: 110px; }
.pa-form .errorlist { margin: 6px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: #b3413a; }
.pa-form__foot {
  display: flex; justify-content: flex-end; gap: 12px; align-items: center;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line);
}
.pa-form__error {
  background: #fdf1f0; border: 1px solid #f2d2cf; color: #a03a33;
  border-radius: var(--r-sm); padding: 12px 16px; font-size: 13.5px; margin-bottom: 20px;
}
.pa-form .iti { width: 100%; }

/* Success card */
.pa-done { text-align: center; padding: 48px 36px; }
.pa-done__ic {
  width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-tint); color: var(--gold-700);
}
.pa-done h2 { font-family: var(--display); font-weight: 600; font-size: 24px; color: var(--black); margin: 0 0 10px; }
.pa-done p { margin: 0 auto 26px; max-width: 440px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.pa-done__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Compact hero variant for the form page */
.pa-hero--slim { padding: 132px 0 64px; }
