/* BSW Japan Trip — /plan ad landing page (Phase 9 V1).
   Reuses the design tokens from modern-preview.css (:root --paper, --ink, --gold,
   --serif, --sans …). Mobile-first. Conversion-focused, not a corporate site. */

.plan-page {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.plan-page :focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.plan-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 50;
}
.plan-skip:focus {
  left: 0;
}

/* ---------- shared layout ---------- */
.plan-wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}
@media (min-width: 800px) {
  .plan-wrap { width: min(1120px, 100% - 96px); }
}

.plan-section {
  padding: 56px 0;
}
@media (min-width: 800px) {
  .plan-section { padding: 88px 0; }
}

.plan-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.plan-h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--ink);
}

.plan-lead {
  font-size: clamp(15px, 2.4vw, 18px);
  color: var(--ink-2);
  max-width: 58ch;
  margin: 0;
}

/* ---------- buttons ---------- */
.plan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.plan-btn:active { transform: translateY(1px); }
.plan-btn.is-primary {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 14px 34px rgba(161, 98, 7, 0.32);
}
.plan-btn.is-primary:hover { background: var(--gold-2); }
.plan-btn.is-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.plan-btn.is-ghost:hover { border-color: var(--ink); }
.plan-btn.is-wa {
  background: #128c4b;
  color: #fff;
  box-shadow: 0 14px 34px rgba(18, 140, 75, 0.28);
}
.plan-btn.is-wa:hover { background: #0f7a41; }
.plan-btn.block { width: 100%; }

/* ---------- header (minimal, no site nav) ---------- */
.plan-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.plan-header .plan-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.plan-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.plan-brand img { width: 34px; height: 34px; object-fit: contain; }
.plan-brand span {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
}
.plan-header .plan-btn {
  min-height: 40px;
  padding: 9px 18px;
  font-size: 13px;
}

/* ---------- hero ---------- */
.plan-hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: clip;
  isolation: isolate;
}
.plan-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.plan-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 44%;
}
.plan-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 12, 10, 0.3) 0%, rgba(15, 12, 10, 0.12) 40%, rgba(15, 12, 10, 0.44) 72%, rgba(12, 10, 8, 0.84) 100%),
    linear-gradient(90deg, rgba(12, 10, 8, 0.55) 0%, rgba(12, 10, 8, 0.05) 58%);
}
.plan-hero .plan-wrap {
  padding: 40px 0 48px;
  color: #fff;
}
@media (min-width: 800px) {
  .plan-hero .plan-wrap { padding: 64px 0 72px; }
}
.plan-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 8.5vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  max-width: 16ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.plan-hero p {
  font-size: clamp(15px, 3vw, 19px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  max-width: 46ch;
  margin: 0 0 26px;
}
.plan-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.plan-hero-cta .plan-btn.is-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.plan-hero-cta .plan-btn.is-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.18); }

/* ---------- trust chips ---------- */
.plan-trust {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
.plan-trust .plan-wrap {
  padding: 26px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: center;
}
.plan-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.plan-chip svg { width: 15px; height: 15px; color: var(--gold); flex: none; }

/* ---------- why BSW ---------- */
.plan-why-grid {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}
@media (min-width: 720px) {
  .plan-why-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
.plan-why-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.plan-why-card .plan-why-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
}
.plan-why-card .plan-why-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.plan-why-body {
  padding: 20px 22px 24px;
}
.plan-why-body h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}
.plan-why-body p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ---------- visual experience band ---------- */
.plan-visual { background: var(--ink); color: #fff; }
.plan-visual .plan-h2 { color: #fff; }
.plan-visual .plan-lead { color: rgba(255, 255, 255, 0.8); }
.plan-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 30px;
}
@media (min-width: 800px) {
  .plan-visual-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
.plan-visual-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
}
.plan-visual-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.plan-visual-tile:hover img { transform: scale(1.05); }
.plan-visual-tile span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

/* ---------- how it works ---------- */
.plan-steps {
  display: grid;
  gap: 14px;
  margin-top: 30px;
  counter-reset: step;
}
@media (min-width: 760px) {
  .plan-steps { grid-template-columns: repeat(4, 1fr); }
}
.plan-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.plan-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.plan-step p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

/* ---------- mini estimator ---------- */
.plan-estimate { background: var(--paper-2); border-top: 1px solid var(--line); }
.plan-estimate-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px 22px 30px;
  margin-top: 28px;
}
@media (min-width: 720px) {
  .plan-estimate-card { padding: 34px 40px 40px; }
}
.plan-form-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 560px) {
  .plan-form-grid { grid-template-columns: repeat(2, 1fr); }
}
.plan-field { display: flex; flex-direction: column; gap: 7px; }
.plan-field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan-field select,
.plan-field input,
.plan-field textarea {
  min-height: 50px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* >=16px so iOS never zooms */
}
.plan-field select:focus,
.plan-field input:focus,
.plan-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(161, 98, 7, 0.16);
}

.plan-seg-wrap { margin-top: 18px; }
.plan-seg-wrap > span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.plan-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.plan-seg label {
  flex: 1 1 auto;
  min-width: 96px;
}
.plan-seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.plan-seg span {
  display: block;
  text-align: center;
  padding: 12px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.14s ease;
}
.plan-seg input:checked + span {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.plan-seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.plan-submit { margin-top: 22px; }
.plan-status {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  min-height: 1.2em;
}
.plan-error {
  margin: 12px 0 0;
  font-size: 14px;
  color: #b3261e;
  font-weight: 600;
}

.plan-result {
  margin-top: 24px;
  padding: 24px 22px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: center;
}
.plan-result-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.plan-range {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 8vw, 46px);
  line-height: 1.05;
  margin: 4px 0 2px;
  color: var(--ink);
}
.plan-per { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.plan-disclaimer {
  margin: 0 auto;
  max-width: 44ch;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.plan-result-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
@media (min-width: 520px) {
  .plan-result-cta { flex-direction: row; }
  .plan-result-cta .plan-btn { flex: 1; }
}

/* optional lead mini-form under the result */
.plan-lead-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  text-align: left;
}
.plan-lead-form p.plan-lead-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-2);
}
.plan-lead-row {
  display: grid;
  gap: 10px;
}
@media (min-width: 520px) {
  .plan-lead-row { grid-template-columns: 1fr 1fr auto; align-items: end; }
}
.plan-lead-row .plan-field input { min-height: 46px; }
.plan-lead-ok {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #128c4b;
}

/* ---------- footer ---------- */
.plan-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 40px 0;
  text-align: center;
}
.plan-footer .plan-brand span { color: #fff; }
.plan-footer p { margin: 14px 0 0; font-size: 13px; }
.plan-footer a { color: #fff; text-decoration: underline; }

/* ---------- clickable content photos + full-photo lightbox ----------
   The card keeps its cropped look; the lightbox shows the uncropped original. */
.plan-photo-open {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: zoom-in;
}
/* subtle "view full photo" cue — only on hover / keyboard focus, faint on touch */
.plan-photo-open::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(15, 12, 10, 0.44)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E")
    center / 15px 15px no-repeat;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
.plan-photo-open:hover::after,
.plan-photo-open:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) {
  .plan-photo-open::after { opacity: 0.85; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .plan-photo-open::after { transition: none; }
}

.plan-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 48px);
  background: rgba(12, 10, 8, 0.92);
  -webkit-tap-highlight-color: transparent;
}
.plan-lightbox[hidden] { display: none; }
.plan-lightbox-fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
}
.plan-lightbox-fig img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 120px);
  object-fit: contain;
  border-radius: 10px;
  background: #0c0a08;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}
.plan-lightbox-fig figcaption {
  margin: 0;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.plan-lightbox-fig figcaption:empty { display: none; }
.plan-lightbox-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}
.plan-lightbox-close svg { width: 20px; height: 20px; }
.plan-lightbox-close:hover { background: rgba(255, 255, 255, 0.26); }
body.plan-lightbox-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .plan-lightbox:not([hidden]) { animation: planLbFade 0.16s ease-out; }
}
@keyframes planLbFade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- social proof (real client messages, names removed) ---------- */
.plan-proof-grid {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}
@media (min-width: 760px) {
  .plan-proof-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
}
.plan-proof-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 22px 22px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.plan-proof-card blockquote {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
}
.plan-proof-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.plan-proof-tag {
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan-proof-open {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  cursor: zoom-in;
}
.plan-proof-open::after { display: none; } /* the explicit "Lihat pesan asli" label is the affordance */
.plan-proof-open img {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
  object-position: center top;
}
.plan-proof-view {
  display: block;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  background: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-align: center;
}
.plan-proof-open:hover .plan-proof-view { background: var(--paper-2); }

/* ---------- secondary trust: Instagram ----------
   Understated. Ranks visually below every conversion action (estimator + lead
   + WhatsApp). Not a CTA card — a quiet "inspect more real trips" path. */
.plan-proof-ig {
  margin: 26px 0 0;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}
@media (min-width: 760px) {
  .plan-proof-ig { margin-top: 34px; }
}
.plan-ig-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* Roomier hit area for touch without visually enlarging the text/icon. The
     negative block margin keeps the surrounding line rhythm unchanged. */
  padding: 5px 4px;
  margin-block: -5px;
  border-radius: 6px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.plan-proof-ig .plan-ig-link { margin-left: 2px; }
.plan-ig-link:hover,
.plan-ig-link:focus-visible { color: var(--gold); }
.plan-ig-link:hover .plan-ig-handle,
.plan-ig-link:focus-visible .plan-ig-handle { text-decoration: underline; }
.plan-ig-ico { width: 16px; height: 16px; color: var(--gold); flex: none; }
.plan-ig-ext { font-size: 11px; opacity: 0.75; }

.plan-footer .plan-footer-social { margin-top: 10px; }
.plan-footer .plan-ig-link { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.plan-footer .plan-ig-link:hover,
.plan-footer .plan-ig-link:focus-visible { color: #fff; }
.plan-footer .plan-ig-link:hover .plan-ig-handle,
.plan-footer .plan-ig-link:focus-visible .plan-ig-handle { text-decoration: underline; }
.plan-footer .plan-ig-ico { color: rgba(255, 255, 255, 0.82); }
.plan-footer .plan-ig-link:hover .plan-ig-ico { color: #fff; }

/* ---------- reveal ----------
   Visible by DEFAULT. plan.js adds .is-armed just before it starts observing,
   so if JS never runs (blocked / failed) the content is simply shown. */
.plan-reveal.is-armed {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.plan-reveal.is-armed.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .plan-reveal.is-armed { opacity: 1; transform: none; transition: none; }
  .plan-visual-tile img { transition: none; }
  html { scroll-behavior: auto; }
}
[hidden] { display: none !important; }

/* Trip request: retain the existing form layout and native hidden states. */
.plan-travelers { border: 0; padding: 0; margin: 20px 0; min-width: 0; }
.plan-travelers legend { font-weight: 600; margin-bottom: 12px; }
.plan-estimate-form > .plan-field, .plan-estimate-form > .plan-form-grid { margin-bottom: 18px; }
.plan-field textarea { resize: vertical; font: inherit; }
.plan-estimate-form[hidden] { display: none; }

/* Estimate-first flow: reuse existing card and field styles. */
#planLeadFields { border: 0; padding: 0; margin: 0; min-width: 0; }
#planLeadFields .plan-form-grid { margin-bottom: 18px; }
#planChildAges:empty { display: none; }
#plan-request { scroll-margin-top: 90px; }
