/* Secret Namibia booking portal. Mobile first (works from 320px), matched to the vehicle pages:
   background #f5ece6, gold #b8973a, near-black #1a1a18, teal #003d46, Old Standard TT headings, Inter text.
   The fonts are the same-origin files the site's pages already load (mirrored Google Fonts / Framer assets),
   so a visitor usually has them cached; nothing is fetched from another origin. */

@font-face { font-family: "Old Standard TT"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts.gstatic.com/s/oldstandardtt/v22/MwQubh3o1vLImiwAVvYawgcf2eVeqlq4.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Old Standard TT"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts.gstatic.com/s/oldstandardtt/v22/MwQubh3o1vLImiwAVvYawgcf2eVepFq4dHc.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Old Standard TT"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts.gstatic.com/s/oldstandardtt/v22/MwQrbh3o1vLImiwAVvYawgcf2eVWEX-tS1Zf.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/framerusercontent.com/assets/GrgcKwrN6d3Uz8EwcLHZxwEfC4.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/framerusercontent.com/assets/JeYwfuaPfZHQhEG8U5gtPDZ7WQ.woff2) format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/framerusercontent.com/assets/d3tHnaQIAeqiE5hGcRw4mmgWYU.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/framerusercontent.com/assets/DXD0Q7LSl7HEvDzucnyLnGBHM.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/framerusercontent.com/assets/VgYFWiwsAC5OYxAycRXXvhze58.woff2) format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f5ece6;
  --ink: #1a1a18;
  --muted: #57534b;
  --gold: #b8973a;
  --gold-dark: #a3842f;
  --gold-text: #75591a;
  --teal: #003d46;
  --card: #fffdfb;
  --line: rgba(26, 26, 24, 0.16);
  --field-line: rgba(26, 26, 24, 0.32);
  --error: #a4271b;
  --error-bg: #fbeae6;
  --serif: "Old Standard TT", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* The parent sizes the iframe from #portal, so the document must be able to shrink again, and it must still
   scroll by itself where no resize listener exists (no overflow:hidden on html). */
html, body { height: auto; min-height: 0; margin: 0; background: var(--bg); }
body { color: var(--ink); font: 16px/1.5 var(--sans); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.lang-zh-cn { font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", system-ui, sans-serif; }
[hidden] { display: none !important; }
a { color: var(--teal); }
p { margin: 0 0 12px; }

.portal { display: flow-root; width: 100%; max-width: 760px; margin: 0 auto; padding: 24px 16px 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- header and progress */
.pf-head { margin: 0 0 20px; }
.pf-eyebrow { margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-text); }
.pf-title { margin: 0 0 4px; font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.2; }
.pf-title:focus { outline: none; }
.pf-stepof { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.pf-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.pf-progress li { border-top: 4px solid rgba(26, 26, 24, 0.12); }
.pf-progress li.is-done, .pf-progress li.is-current { border-top-color: var(--gold); }
.pf-progress span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pf-notice { margin: 0; padding: 10px 12px; font-size: 14px; background: rgba(0, 61, 70, 0.06); border-left: 3px solid var(--teal); }
.pf-intro { margin: 0 0 16px; }

@media (min-width: 560px) {
  .portal { padding: 32px 24px 36px; }
  .pf-title { font-size: 32px; }
  .pf-progress li { padding-top: 8px; }
  .pf-progress span { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; display: block; font-size: 12px; line-height: 1.3; color: var(--muted); }
  .pf-progress li.is-current span { color: var(--ink); font-weight: 600; }
}

/* ---- alerts */
.pf-alert { margin: 0 0 18px; padding: 12px 14px; background: var(--error-bg); border: 1px solid var(--error); border-radius: 2px; }
.pf-alert:focus { outline: 2px solid var(--error); outline-offset: 2px; }
.pf-alert p { margin: 0; font-weight: 600; color: var(--error); }
.pf-alert ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.pf-alert a { color: var(--error); }

/* ---- fields */
.pf-form { margin: 0; }
.pf-field { margin: 0 0 16px; min-width: 0; }
.pf-field > label, .pf-fieldset legend { display: block; margin: 0 0 6px; padding: 0; font-size: 14px; font-weight: 600; }
.pf-opt { font-weight: 400; color: var(--muted); }
.pf-hint { margin: -2px 0 6px; font-size: 13px; color: var(--muted); }
.pf-error { margin: 6px 0 0; font-size: 13px; font-weight: 500; color: var(--error); }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  display: block; width: 100%; min-width: 0; min-height: 46px; margin: 0; padding: 11px 12px;
  font: inherit; font-size: 16px; /* 16px keeps iOS from zooming into the field */ color: var(--ink);
  background-color: var(--card); border: 1px solid var(--field-line); border-radius: 2px;
}
input[type="date"] { -webkit-appearance: none; appearance: none; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
select {
  -webkit-appearance: none; appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231a1a18' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: 2px solid var(--teal); outline-offset: 0; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--error); }
:focus-visible { outline: 3px solid rgba(0, 61, 70, 0.5); outline-offset: 2px; }

.pf-grid { display: grid; gap: 0 16px; }
.pf-grid:empty { display: none; }
@media (min-width: 560px) { .pf-grid { grid-template-columns: 1fr 1fr; } }

.pf-vcard { display: flex; gap: 14px; align-items: center; margin: -6px 0 16px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 2px; }
.pf-vcard img { flex: none; width: 96px; height: 64px; object-fit: contain; background: #f5f0e8; }
.pf-vcard p { margin: 0; }
.pf-vcat { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); }
.pf-vname { margin: 2px 0 !important; font-family: var(--serif); font-size: 18px; line-height: 1.25; }
.pf-vspecs { font-size: 13px; color: var(--muted); }

.pf-days { margin: -4px 0 16px; font-size: 14px; color: var(--muted); }
.pf-days strong { color: var(--ink); }

.pf-fieldset { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.pf-checks { display: grid; gap: 8px; }
@media (min-width: 560px) { .pf-checks { grid-template-columns: 1fr 1fr; } }
.pf-checks.pf-inline { grid-template-columns: repeat(2, minmax(0, 160px)); }
.pf-check { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 11px 12px; font-size: 15px; font-weight: 400; background: var(--card); border: 1px solid var(--line); border-radius: 2px; cursor: pointer; }
.pf-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--teal); }
.pf-check:hover { border-color: var(--field-line); }
.pf-consent .pf-check { padding: 0; background: none; border: 0; }
.pf-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---- buttons */
.pf-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.pf-btn { min-height: 48px; padding: 14px 22px; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid transparent; border-radius: 2px; cursor: pointer; }
.pf-btn-primary { color: var(--ink); background: var(--gold); }
.pf-btn-primary:hover { background: var(--gold-dark); }
.pf-btn-ghost { color: var(--ink); background: transparent; border-color: rgba(26, 26, 24, 0.35); }
.pf-btn-ghost:hover { border-color: var(--ink); }
.pf-btn[disabled] { opacity: 0.65; cursor: progress; }
@media (min-width: 560px) {
  .pf-actions { flex-direction: row-reverse; justify-content: space-between; align-items: center; }
  .pf-btn-primary { min-width: 240px; }
}
.pf-link { padding: 4px 0; font: inherit; font-size: 14px; color: var(--teal); text-decoration: underline; background: none; border: 0; cursor: pointer; }

/* ---- review */
.pf-sum { margin: 0 0 12px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 2px; }
.pf-sum-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pf-sum h2 { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 400; }
.pf-sum dl { margin: 4px 0 0; }
.pf-row { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid rgba(26, 26, 24, 0.08); }
.pf-row dt { font-size: 13px; color: var(--muted); }
.pf-row dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
@media (min-width: 560px) { .pf-row { grid-template-columns: 190px 1fr; gap: 16px; } }

/* ---- sent */
.pf-ref { margin: 0 0 22px; padding: 16px; text-align: center; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 2px; }
.pf-ref p { margin: 0; }
.pf-ref-label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-text); }
.pf-ref-code { margin: 6px 0 !important; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 26px; font-weight: 600; letter-spacing: 0.06em; overflow-wrap: anywhere; }
.pf-h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 21px; font-weight: 400; }

/* ---- contact */
.pf-contact { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.pf-contact h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 19px; font-weight: 400; }
.pf-contact ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .pf-contact ul { grid-template-columns: 1fr 1fr; } }
.pf-contact a { display: block; padding: 11px 14px; font-weight: 500; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 2px; overflow-wrap: anywhere; }
.pf-contact a:hover { border-color: var(--teal); }
.pf-contact.is-compact { margin-top: 24px; padding-top: 14px; }
.pf-contact.is-compact h2 { margin-bottom: 6px; font-family: var(--sans); font-size: 14px; font-weight: 600; }
.pf-contact.is-compact ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.pf-contact.is-compact a { padding: 2px 0; font-size: 14px; text-decoration: underline; background: none; border: 0; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
