/* ==========================================================================
   Tailor-Made page (tailor-made-trip.html). Loads after contact.css (which holds the shared form pieces: .ct-card, .ct-field, .ct-chip,
   .ct-pax, .ct-stepper, .ct-msg, .ct-side-card…) and site.css (.oz-pill, .oz-kicker, .oz-band, .oz-faq).
   Mobile first. The request is a four-step wizard when JavaScript runs (.is-wizard); without it every step is shown on one page.
   ========================================================================== */

.tm-page [hidden] { display: none !important; }

.tm-head { max-width: 720px; margin-bottom: var(--s-4); }
.tm-head h2 { margin: 8px 0 12px; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.tm-head p:not(.oz-kicker) { font-size: 1.0625rem; line-height: 1.6; color: var(--oz-text-2); }

/* ---- Hero -------------------------------------------------------------------- */
.tm-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); align-items: center; padding-block: 4px var(--s-4); }
.tm-hero h1 { margin: var(--s-1) 0 16px; font-size: 2.25rem; line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.tm-hero h1 span { color: var(--oz-orange); }
.tm-hero__lead { max-width: 54ch; font-size: 1.125rem; line-height: 1.6; color: var(--oz-text-2); }
.tm-hero__points { display: grid; gap: 10px; margin: var(--s-3) 0 0; padding: 0; list-style: none; }
.tm-hero__points li { display: flex; align-items: flex-start; gap: 10px; font-size: 1rem; line-height: 1.5; }
.tm-hero__points .icon { flex: none; margin-top: 3px; color: var(--c-success); }
.tm-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-4); }
.tm-hero__media { position: relative; isolation: isolate; }
.tm-hero__media::before { content: ""; position: absolute; inset: 14px -12px -14px 12px; z-index: -1; border-radius: 20px; background: var(--c-primary-soft); }
.tm-hero__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 20px; object-fit: cover; box-shadow: var(--sh-2); }
.tm-hero__rating { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: calc(100% - 28px); padding: 8px 16px; border-radius: 999px; background: #fff; box-shadow: var(--sh-2); color: var(--c-text); font-size: .875rem; text-decoration: none; }
.tm-hero__rating .icon { flex: none; color: var(--c-rating); fill: currentColor; }
@media (max-width: 479px) { .tm-hero__actions .oz-pill { width: 100%; } }
@media (min-width: 768px) { .tm-hero h1 { font-size: 2.75rem; } }
@media (min-width: 1024px) {
  .tm-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s-8); padding-block: var(--s-3) var(--s-6); }
  .tm-hero h1 { font-size: 3.5rem; }
}

/* ---- How it works ------------------------------------------------------------- */
.tm-how__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.tm-how__list li { padding: 24px 22px; border: 1px solid var(--oz-line); border-radius: 16px; background: #fff; }
.tm-how__n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--oz-navy); color: #fff; font-size: 1.0625rem; font-weight: 800; }
.tm-how h3 { margin-bottom: 6px; font-size: 1.125rem; letter-spacing: -.01em; }
.tm-how p { font-size: .9375rem; line-height: 1.6; color: var(--oz-text-2); }
@media (min-width: 768px) { .tm-how__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

/* ---- Ideas --------------------------------------------------------------------- */
.tm-ideas__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.tm-idea { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--oz-radius); background: #fff; box-shadow: 0 2px 12px rgba(16, 24, 40, .08); color: inherit; text-decoration: none; transition: box-shadow .25s ease, transform .25s var(--ease-out); }
.tm-idea:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(16, 24, 40, .14); }
.tm-idea:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.tm-idea img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.tm-idea__body { display: grid; gap: 6px; flex: 1; align-content: start; padding: 16px 18px 18px; }
.tm-idea__body b { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -.01em; }
.tm-idea__body > span { font-size: .9375rem; line-height: 1.5; color: var(--oz-text-2); }
.tm-idea__body small { margin-top: 4px; font-size: .8125rem; font-weight: 700; color: var(--oz-navy-2); }
@media (min-width: 640px) { .tm-ideas__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tm-ideas__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

/* ---- Plan: wizard + summary ----------------------------------------------------- */
.tm-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); align-items: start; }
@media (min-width: 1024px) { .tm-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s-6); } }
@media (min-width: 1024px) and (min-height: 860px) { .tm-side { position: sticky; top: calc(var(--bar-h) + var(--s-3)); } }
.tm-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; min-width: 0; }
.tm-plan { scroll-margin-top: 8px; }

.tm-flash { margin: 0 0 var(--s-3); padding: 12px 16px; border-radius: 12px; background: var(--c-primary-soft); color: var(--oz-navy); font-size: .9375rem; line-height: 1.5; font-weight: 600; }

.tm-progress { margin-bottom: var(--s-4); }
.tm-progress__track { height: 4px; margin-bottom: 14px; overflow: hidden; border-radius: 2px; background: var(--oz-line); }
.tm-progress__track i { display: block; width: 0; height: 100%; background: var(--oz-orange); transition: width .3s ease; }
.tm-progress__count { display: none; }
.tm-steps { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tm-steps li { flex: 1 1 0; min-width: 0; }
.tm-steps button { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 4px 2px; border: 0; background: none; color: var(--oz-text-2); font: inherit; cursor: pointer; }
.tm-steps button:disabled { cursor: default; }
.tm-steps__n { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--oz-line); border-radius: 50%; background: #fff; font-size: .9375rem; font-weight: 700; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.tm-steps__l { font-size: .8125rem; font-weight: 600; line-height: 1.25; text-align: center; }
.tm-steps li.is-done .tm-steps__n { border-color: var(--oz-navy); background: var(--c-primary-soft); color: var(--oz-navy); font-size: 0; }
.tm-steps li.is-done .tm-steps__n::before { content: "\2713"; font-size: 1rem; font-weight: 800; } /* ✓ */
.tm-steps button[aria-current="step"] { color: var(--oz-navy); }
.tm-steps button[aria-current="step"] .tm-steps__n { border-color: var(--oz-navy); background: var(--oz-navy); color: #fff; }
.tm-steps button:not(:disabled):hover .tm-steps__n { border-color: var(--oz-navy); }
.tm-steps button:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 10px; }
.no-js .tm-progress { display: none; } /* every step is on the page */

.tm-step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; min-width: 0; }
.tm-step + .tm-step { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--oz-line); } /* all steps stacked (no JavaScript) */
.is-wizard .tm-step + .tm-step { margin-top: 0; padding-top: 0; border-top: 0; }
.tm-step__title { margin: 0; font-size: 1.375rem; line-height: 1.25; letter-spacing: -.015em; outline: none; }
.tm-step__title:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 4px; border-radius: 6px; }

.tm-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: var(--s-1); }
.tm-nav .btn { flex: 1 1 auto; min-height: 52px; white-space: normal; }
.tm-nav__back { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; padding: 0 20px; border: 1.5px solid #D5DBDF; border-radius: 999px; background: #fff; color: var(--c-text); font: inherit; font-size: .9375rem; font-weight: 700; cursor: pointer; transition: border-color .2s ease; }
.tm-nav__back:hover { border-color: var(--oz-navy); }
.tm-reassure { margin-top: 14px; }
@media (min-width: 640px) { .tm-nav .btn { flex: 0 1 auto; min-width: 200px; margin-left: auto; } }

.tm-card.is-done .tm-progress,
.tm-card.is-done .tm-form,
.tm-card.is-done .tm-flash { display: none; }
.tm-card .ct-msg:focus { outline: none; }

.tm-sum__list { display: grid; margin: 0; }
.tm-sum__list > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--oz-line); }
.tm-sum__list > div:last-child { border-bottom: 0; }
.tm-sum__list dt { font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--oz-text-2); }
.tm-sum__list dd { margin: 0; font-size: .9375rem; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.tm-sum__list dd.is-empty { font-weight: 500; color: var(--oz-text-2); }
.tm-sum__note { margin: 12px 0 0; font-size: .875rem; line-height: 1.5; color: var(--oz-text-2); }
.tm-side .ct-trust-list { margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  .tm-idea, .tm-progress__track i, .tm-steps__n, .tm-nav__back { transition: none; }
  .tm-idea:hover { transform: none; }
}
