/* ==========================================================================
   JARO AI Itinerary Generator — dark-luxury redesign (2026-10-15)
   Scoped entirely under .jaro-page so nothing on other JRB pages changes,
   and so these rules beat the shared footer chat-widget's bare .jaro-* CSS
   on specificity regardless of stylesheet order.
   Gold tokens reuse foundation.css values (--jrb-ui-accent family).
   ========================================================================== */

.jaro-page {
  --jbg: #060910;
  --jsurf: #101722;
  --jsurf-2: #161e2c;
  --jline: #293443;
  --jgold: #CFA50F;
  --jgold-hi: #D4A80F;
  --jsoft: #F5E6C0;
  --jtext: #F3F1EA;
  --jmuted: #9AA3B2;
  --jok: #6FBF8B;
  --jwarn: #E0A458;
  --jr: 18px;
  --jr-sm: 12px;
  --jsh: 0 18px 40px rgba(0, 0, 0, .45);

  background: var(--jbg);
  color: var(--jtext);
  min-height: 100vh;
  padding-bottom: 3rem;
}

.jaro-page h1, .jaro-page h2, .jaro-page h3, .jaro-page h4 {
  color: var(--jtext);
}

/* ---------- Shared field styling (search, refine, custom inputs) ---------- */

.jaro-page .jaro-input {
  width: 100%;
  background: var(--jsurf);
  border: 1px solid var(--jline);
  border-radius: var(--jr-sm);
  color: var(--jtext);
  padding: .7rem .9rem;
  font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.jaro-page .jaro-input::placeholder { color: #6b7484; }

.jaro-page .jaro-input:focus,
.jaro-page .jaro-input:focus-visible {
  outline: none;
  border-color: var(--jgold);
  box-shadow: 0 0 0 3px rgba(207, 165, 15, .18);
}

/* ---------- Hero (Screen 1 cinematic header) ---------- */

.jaro-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  background:
    linear-gradient(180deg, rgba(6, 9, 16, .55) 0%, rgba(6, 9, 16, .82) 55%, var(--jbg) 100%),
    linear-gradient(120deg, rgba(6, 9, 16, .85) 0%, rgba(6, 9, 16, .35) 60%, rgba(6, 9, 16, .7) 100%),
    var(--jhero-img, none),
    radial-gradient(120% 140% at 15% 0%, #12203a 0%, var(--jbg) 70%);
  background-size: cover;
  background-position: center 40%;
  margin: -1.5rem -1.5rem 1.75rem;
  padding: 3.25rem 1.5rem 2.75rem;
}

.jaro-hero__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.jaro-hero__copy { flex: 1 1 auto; min-width: 0; }

.jaro-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--jsoft);
  background: rgba(207, 165, 15, .12);
  border: 1px solid rgba(207, 165, 15, .35);
  border-radius: 999px;
  padding: .35rem .85rem;
  margin-bottom: 1rem;
}

.jaro-hero__kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jgold);
  box-shadow: 0 0 10px rgba(207, 165, 15, .8);
}

.jaro-hero__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  margin: 0 0 .75rem;
  color: var(--jtext);
}

.jaro-hero__title em {
  font-style: normal;
  color: var(--jgold);
}

.jaro-hero__sub {
  font-size: clamp(.95rem, 1.5vw, 1.08rem);
  color: var(--jmuted);
  max-width: 46ch;
  margin: 0;
  line-height: 1.65;
}

.jaro-hero__mascot {
  flex: 0 0 auto;
  width: min(300px, 34vw);
  position: relative;
}

/* ---------- Wizard shell ---------- */

.jaro-page .jaro-card {
  background: var(--jsurf);
  border: 1px solid var(--jline);
  border-radius: var(--jr);
  box-shadow: var(--jsh);
}

.jaro-page .jaro-q {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--jtext);
  letter-spacing: .01em;
}

.jaro-page .jaro-hint { color: var(--jmuted); }

/* Step dots: done/active = gold */
.jaro-page #jaroDots .jaro-step-dot { background: var(--jline); border-color: transparent; }
.jaro-page #jaroDots .jaro-step-dot.done { background: linear-gradient(90deg, var(--jgold), var(--jsoft)); }

/* ---------- Header block (below hero) ---------- */

.jaro-page .jaro-page-header { color: var(--jmuted); }
.jaro-page .jaro-page-header h1 { color: var(--jtext); }
.jaro-page .jaro-page-header p { color: var(--jmuted); }

/* ---------- Chips (all wizard choices) — gold, never footer cyan ---------- */

.jaro-page .jaro-chips { gap: 9px; }

.jaro-page .jaro-chip {
  background: var(--jsurf-2);
  border: 1px solid var(--jline);
  color: var(--jtext);
  font-size: .9rem;
  padding: 9px 16px;
  min-height: 44px; /* touch target */
}

.jaro-page .jaro-chip:hover {
  border-color: rgba(207, 165, 15, .55);
  background: #1b2434;
}

.jaro-page .jaro-chip:focus-visible {
  outline: 2px solid var(--jgold);
  outline-offset: 2px;
}

/* Chip-styled links: an inline <a> ignores min-height, so make them
   inline-flex to guarantee the 44px touch target and keep the label centred. */
.jaro-page a.jaro-chip,
.jaro-page a.jaro-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jaro-page .jaro-chip.sel {
  background: linear-gradient(135deg, var(--jgold), var(--jgold-hi));
  border-color: transparent;
  color: #1A1A10;
  font-weight: 700;
}

.jaro-page .jaro-chip.sel:hover { background: linear-gradient(135deg, var(--jgold-hi), var(--jgold)); }

/* Market / trip-mode pills carry an icon hint */
.jaro-page #marketChips .jaro-chip { padding: 10px 20px; }

/* Photographic destination chips — probed photo sits behind the label
   (z-index:-1 keeps text above; missing photo = plain dark/gold chip) */
.jaro-page .jaro-destination { position: relative; overflow: hidden; z-index: 0; }

.jaro-page .jaro-chip-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
}

.jaro-page .jaro-destination.sel .jaro-chip-photo { opacity: .3; } /* let the gold .sel background show through */
.jaro-page .jaro-destination:not(.sel):hover .jaro-chip-photo { filter: brightness(1.18); }

/* ---------- Search box (Step 1) ---------- */

.jaro-page .jaro-search-wrap {
  position: relative;
  margin: 4px 0 12px;
  max-width: 420px;
}

.jaro-page .jaro-search-wrap .bi-search {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--jgold);
  font-size: .95rem;
  pointer-events: none;
}

.jaro-page #destSearch { padding-left: 38px; }

.jaro-page .jaro-search-empty {
  color: var(--jmuted);
  font-size: .85rem;
  margin: 0 0 10px;
  background: var(--jsurf-2);
  border: 1px dashed var(--jline);
  border-radius: var(--jr-sm);
  padding: .55rem .8rem;
}

/* ---------- Step navigation (Back + Next) ---------- */

.jaro-page .jaro-step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1.1rem;
}

.jaro-page .jaro-back-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(207, 165, 15, .45);
  color: var(--jsoft);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.jaro-page .jaro-back-btn:hover { background: rgba(207, 165, 15, .12); border-color: var(--jgold); }
.jaro-page .jaro-back-btn:focus-visible { outline: 2px solid var(--jgold); outline-offset: 2px; }

.jaro-page .jaro-step-nav .jaro-gen { margin-top: 0; }

/* ---------- Steppers (travellers) ---------- */

.jaro-page .jaro-stepper label { color: var(--jmuted); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }

.jaro-page .jaro-stepper .stp {
  background: var(--jsurf-2);
  border: 1px solid var(--jline);
  border-radius: var(--jr-sm);
  padding: 7px;
  gap: 10px;
}

.jaro-page .jaro-stepper button {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(207, 165, 15, .1);
  border: 1px solid rgba(207, 165, 15, .4);
  color: var(--jgold);
  font-size: 1.2rem;
  font-weight: 700;
}

.jaro-page .jaro-stepper button:hover { background: rgba(207, 165, 15, .2); border-color: var(--jgold); }
.jaro-page .jaro-stepper button:focus-visible { outline: 2px solid var(--jgold); outline-offset: 2px; }

.jaro-page .jaro-stepper input {
  width: 68px;
  background: var(--jbg);
  border: 1px solid var(--jline);
  color: var(--jtext);
  font-weight: 700;
  font-size: 1rem;
}

/* ---------- Generate action ---------- */

.jaro-page .jaro-gen button {
  background: linear-gradient(135deg, var(--jgold), var(--jgold-hi));
  color: #1A1A10;
  box-shadow: 0 8px 26px rgba(207, 165, 15, .28);
  min-height: 48px;
}

.jaro-page .jaro-gen button:hover:not(:disabled) { filter: brightness(1.06); }
.jaro-page .jaro-gen button:focus-visible { outline: 2px solid var(--jsoft); outline-offset: 3px; }
.jaro-page .jaro-summary { color: var(--jmuted); }

/* ---------- Loading panel (honest: no percentages, no fake ticks) ---------- */

.jaro-page #jaroLoading { text-align: center; padding: 2.4rem 1.5rem; }

.jaro-page .spinner {
  border-color: rgba(207, 165, 15, .22);
  border-top-color: var(--jgold);
}

.jaro-page .jaro-load-steps { margin-top: 1rem; }

.jaro-page #loadingMsg {
  display: inline-block;
  color: var(--jsoft);
  font-size: .95rem;
  background: var(--jsurf-2);
  border: 1px solid var(--jline);
  border-radius: 999px;
  padding: .5rem 1.1rem;
  min-height: 1.4em;
}

.jaro-page .jaro-load-bar {
  width: min(260px, 70%);
  height: 4px;
  margin: 14px auto 0;
  border-radius: 99px;
  background: var(--jline);
  overflow: hidden;
  position: relative;
}

.jaro-page .jaro-load-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--jgold), transparent);
  animation: jaroShimmer 1.3s ease-in-out infinite;
}

@keyframes jaroShimmer {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

/* ---------- Error panel (help pose) ---------- */

.jaro-page #jaroError { text-align: center; padding: 2.2rem 1.5rem; }
.jaro-page #jaroError .bi-wifi-off { color: var(--jwarn); }

/* ---------- Result: day tabs + day cards + imagery ---------- */

.jaro-page .jaro-day-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--jline);
  padding-bottom: 8px;
}

.jaro-page .jaro-day-tab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--jmuted);
  font-size: .86rem;
  font-weight: 600;
  padding: 8px 16px;
  min-height: 44px; /* touch target */
  cursor: pointer;
}

.jaro-page .jaro-day-tab:hover { color: var(--jsoft); background: rgba(207, 165, 15, .08); }

.jaro-page .jaro-day-tab.active {
  color: #1A1A10;
  background: var(--jgold);
  border-color: var(--jgold);
}

.jaro-page .jaro-day-tab:focus-visible { outline: 2px solid var(--jgold); outline-offset: 2px; }

.jaro-page .jaro-day {
  background: var(--jsurf-2);
  border: 1px solid var(--jline);
  border-radius: 14px;
}

.jaro-page .jaro-day h5 { color: var(--jgold); font-family: 'Fraunces', Georgia, serif; font-weight: 600; }
.jaro-page .jaro-day .seg { color: var(--jmuted); }
.jaro-page .jaro-day .seg b { color: var(--jtext); }
.jaro-page .jaro-day .hl { color: var(--jsoft); }

.jaro-page .jaro-day-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 0 10px;
  background: var(--jbg);
  display: block;
}

/* Styled placeholder — dark + gold initial + icon; never a broken image */
.jaro-page .jaro-img-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  margin: 0 0 10px;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(207, 165, 15, .14), transparent 65%),
    linear-gradient(160deg, #0c1322, var(--jbg));
  border: 1px solid var(--jline);
  color: var(--jgold);
}

.jaro-page .jaro-img-ph .bi { font-size: 1.5rem; opacity: .85; }
.jaro-page .jaro-img-ph span {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--jsoft);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.jaro-page .jaro-img-ph--sm { aspect-ratio: 4 / 3; max-width: 170px; margin: 0; }

/* ---------- Result header actions ---------- */

.jaro-page #resTitle { color: var(--jtext); }

.jaro-page .pkg-card {
  background: var(--jsurf-2);
  border: 1px solid var(--jline);
}

.jaro-page .pkg-card b { color: var(--jtext); font-size: 1rem; }
.jaro-page .pkg-card img { border-radius: 10px; object-fit: cover; }

.jaro-page .jaro-pkg-layout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
}

.jaro-page .jaro-pkg-body { flex: 1 1 auto; min-width: 0; }
.jaro-page .jaro-pkg-body .seg { font-size: .82rem; color: var(--jmuted); }
.jaro-page .jaro-pkg-match { color: var(--jok); font-weight: 700; }
.jaro-page .jaro-pkg-price { color: var(--jgold); font-weight: 700; }
.jaro-page .jaro-pkg-why { color: var(--jok); }
.jaro-page .jaro-pkg-img {
  width: 120px;
  height: 90px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 10px;
  background: var(--jbg);
}

/* ---------- Refine card: gold accent (was purple inline) ---------- */

.jaro-page #refineBtn { white-space: nowrap; }
.jaro-page #refineMsg { color: var(--jsoft) !important; }

/* ---------- Enquiry states ---------- */

.jaro-page #enqError { color: #ff9d9d !important; }
.jaro-page #enqDone { color: var(--jmuted); }
.jaro-page #enqDone .bi-check-circle { color: var(--jok) !important; }

/* ---------- Edit modal (scoped; overrides its inline cyan border) ---------- */

#editModal .modal-content {
  background: var(--jsurf, #101722) !important;
  border: 1px solid rgba(207, 165, 15, .4) !important;
  border-radius: 16px !important;
  color: var(--jtext) !important;
}

#editModal .modal-header,
#editModal .modal-footer { border-color: var(--jline, #293443) !important; }
#editModal .modal-title { color: var(--jtext); }

#editModal .btn-close { filter: invert(1) grayscale(1) brightness(1.6); }

#editModal .btn-outline-glass {
  background: transparent;
  border: 1px solid var(--jline, #293443);
  color: var(--jmuted, #9AA3B2);
}

#editModal .btn-outline-glass:hover { background: rgba(255, 255, 255, .05); color: var(--jtext); }

.jaro-page .jaro-edit-day { background: var(--jsurf-2, #161e2c); border-color: var(--jline, #293443); }
.jaro-page .jaro-edit-day label { color: var(--jmuted, #9AA3B2); }
.jaro-page .jaro-edit-day input,
.jaro-page .jaro-edit-day textarea {
  background: var(--jbg, #060910);
  border-color: var(--jline, #293443);
  color: var(--jtext, #F3F1EA);
}

.jaro-page .jaro-edit-day input:focus,
.jaro-page .jaro-edit-day textarea:focus {
  outline: none;
  border-color: var(--jgold, #CFA50F);
  box-shadow: 0 0 0 3px rgba(207, 165, 15, .18);
}

/* ---------- Mascot slots (6 poses; master image is the fallback) ---------- */

.jaro-mascot-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.jaro-mascot-slot img {
  width: 100%;
  height: auto;
  display: block;
  /* contain = the whole character is always visible: never cropped, never
     stretched, whatever the pose file's real proportions are. */
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .5));
}

.jaro-mascot-slot--hero img { max-height: 300px; margin: 0 auto; }

.jaro-mascot-slot--mini {
  flex-direction: row;
  align-items: center;
  gap: .75rem;
  margin: 0 0 14px;
}

.jaro-mascot-slot--mini img { width: 74px; flex: 0 0 auto; }

.jaro-mascot-slot--loading img { width: min(190px, 55%); margin: 0 auto .75rem; }

.jaro-bubble {
  position: relative;
  background: var(--jsurf-2);
  border: 1px solid rgba(207, 165, 15, .4);
  color: var(--jsoft);
  border-radius: 14px;
  padding: .55rem .95rem;
  font-size: .88rem;
  line-height: 1.45;
  max-width: 300px;
  text-align: center;
}

.jaro-bubble::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--jsurf-2, #161e2c);
  border-left: 1px solid rgba(207, 165, 15, .4);
  border-top: 1px solid rgba(207, 165, 15, .4);
}

.jaro-mascot-slot--mini .jaro-bubble { text-align: left; max-width: none; }
.jaro-mascot-slot--mini .jaro-bubble::before { top: 50%; left: -7px; transform: translateY(-50%) rotate(45deg); }

/* Success pose above the generated itinerary: in normal flow, so it can never
   cover the day cards, the prices or the package cards below it. */
.jaro-mascot-slot--success { margin: 2px 0 14px; }
.jaro-mascot-slot--success .jaro-bubble { border-color: rgba(207, 165, 15, .55); }

/* ---------- Focus + motion (whole page) ---------- */

.jaro-page :focus-visible {
  outline: 2px solid var(--jgold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .jaro-page *,
  .jaro-page *::before,
  .jaro-page *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
  .jaro-hero { padding: 2.5rem 1.25rem 2.25rem; }
  .jaro-hero__inner { flex-direction: column-reverse; text-align: center; gap: 1.25rem; }
  .jaro-hero__sub { margin: 0 auto; }
  .jaro-hero__mascot { width: min(230px, 55vw); }
}

@media (max-width: 767px) {
  /* Bleed to the card edges by exactly the Bootstrap container gutter (12px).
     Using -1rem overflowed 360/390px screens by 4px. */
  .jaro-hero { margin: -12px -12px 1.25rem; border-radius: 0 0 20px 20px; padding: 2rem 1rem 1.75rem; }
  .jaro-page .jaro-card { padding: 1.15rem; }
  .jaro-page .jaro-step-nav { flex-direction: row-reverse; justify-content: space-between; }
  .jaro-page .jaro-back-btn { flex: 0 0 auto; }
  .jaro-page .jaro-search-wrap { max-width: none; }
  .jaro-page .jaro-day-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; padding-bottom: 10px; }
  .jaro-page .jaro-day-tab { white-space: nowrap; }
  .jaro-page .jaro-pkg-layout { flex-direction: column; }
  .jaro-page .jaro-img-ph--sm { max-width: none; }
}

@media (max-width: 575px) {
  .jaro-page .jaro-steppers { gap: .9rem; }
  .jaro-page .jaro-gen button { width: 100%; }
  .jaro-page .jaro-step-nav { flex-wrap: wrap; }
}

@media (max-width: 479px) {
  .jaro-hero { padding: 1.6rem .85rem 1.4rem; }
  .jaro-page .jaro-chip { padding: 8px 13px; font-size: .84rem; }
  .jaro-page .jaro-back-btn { padding: 9px 16px; font-size: .86rem; }
  .jaro-page .jaro-mascot-slot--mini img { width: 58px; }
}

/* ---------- Final hardening overrides ---------- */
.jaro-page { isolation: isolate; }
.jaro-page [hidden] { display: none !important; }
.jaro-page .jaro-chip:disabled,
.jaro-page .jaro-gen button:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }
.jaro-page .jaro-stepper .stp { display: flex; align-items: center; justify-content: center; gap: 10px; }
.jaro-page .jaro-stepper .stp input { text-align: center; min-height: 42px; }
.jaro-page .jaro-stepper button { flex: 0 0 44px; cursor: pointer; }
.jaro-page .jaro-stepper button:active { transform: translateY(1px); }
.jaro-page .jaro-stepper label { display: block; margin-bottom: 7px; }
.jaro-page .jaro-chip-photo { pointer-events: none; }
.jaro-page .jaro-destination { min-height: 44px; }
.jaro-page .jaro-destination.sel { color: var(--jtext); }
.jaro-page .jaro-summary:empty { display: none; }
.jaro-page .jaro-day p:last-child { margin-bottom: 0; }
.jaro-page .jaro-pkg-layout img { max-width: 100%; }
.jaro-page .jaro-input:disabled { opacity: .65; cursor: not-allowed; }
.jaro-page .jaro-input[type="number"] { max-width: 100%; }
.jaro-page .jaro-input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.jaro-page .jaro-step-nav > * { min-width: 0; }
.jaro-page .jaro-back-btn { cursor: pointer; }
.jaro-page a { color: var(--jgold); }
.jaro-page a:hover { color: var(--jsoft); }

@media (max-width: 575px) {
  .jaro-page .jaro-card { padding: 1rem; }
  .jaro-page .jaro-steppers { display: grid; grid-template-columns: minmax(0, 1fr); }
  .jaro-page .jaro-stepper { min-width: 0; }
  .jaro-page .jaro-stepper .stp { justify-content: flex-start; }
  .jaro-page .jaro-step-nav { gap: 8px; }
  .jaro-page .jaro-step-nav .jaro-gen { flex: 1 1 auto; }
  .jaro-page .jaro-step-nav .jaro-gen button { width: 100%; }
}

@media (forced-colors: active) {
  .jaro-page .jaro-chip.sel,
  .jaro-page .jaro-day-tab.active,
  .jaro-page .jaro-gen button { border: 2px solid ButtonText; }
  .jaro-page :focus-visible { outline: 2px solid Highlight; }
}


/* ---------- Live implementation visibility pass: make JARO a real visual anchor ---------- */
.jaro-page .jaro-hero {
  min-height: 390px;
  padding-top: clamp(2.5rem, 5vw, 4.25rem);
  padding-bottom: clamp(2rem, 4vw, 3.25rem);
}
.jaro-page .jaro-hero__inner {
  max-width: 1240px;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.jaro-page .jaro-hero__copy { flex: 1 1 48%; }
.jaro-page .jaro-hero__mascot {
  flex: 0 0 min(390px, 42%);
  width: min(390px, 42%);
  min-width: 260px;
  padding: .5rem .25rem 0;
}
.jaro-page .jaro-mascot-slot--hero img {
  width: 100%;
  max-width: 370px;
  max-height: 370px;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,.62));
}
.jaro-page .jaro-mascot-slot--hero .jaro-bubble {
  max-width: 280px;
  margin: -.35rem auto 0;
  font-size: .96rem;
  padding: .7rem 1rem;
}
/* Each wizard state gets a visible mascot panel rather than a tiny avatar. */
.jaro-page .jaro-mascot-slot--mini {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  min-height: 150px;
  margin: .9rem 0 1.1rem;
  padding: .65rem 1rem;
  border: 1px solid rgba(207,165,15,.22);
  border-radius: 16px;
  background: radial-gradient(90% 140% at 12% 0%, rgba(207,165,15,.10), transparent 70%), linear-gradient(110deg, rgba(8,17,29,.96), rgba(16,23,34,.66));
  overflow: hidden;
}
.jaro-page .jaro-mascot-slot--mini img {
  width: 132px;
  height: 145px;
  flex: 0 0 132px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.48));
}
.jaro-page .jaro-mascot-slot--mini .jaro-bubble {
  max-width: 420px;
  text-align: left;
  font-size: .95rem;
  padding: .75rem 1rem;
}
.jaro-page .jaro-mascot-slot--mini .jaro-bubble::before {
  top: 50%; left: -7px;
  transform: translateY(-50%) rotate(45deg);
}
.jaro-page .jaro-mascot-slot--success {
  min-height: 116px;
}
.jaro-page .jaro-mascot-slot--success img {
  width: 104px;
  height: 116px;
  flex-basis: 104px;
}
.jaro-page .jaro-mascot-slot--loading img {
  width: min(300px, 70%);
  max-height: 320px;
  margin: 0 auto .85rem;
}
.jaro-page #jaroError .jaro-mascot-slot--loading img { width: min(240px, 62%); }
.jaro-page .jaro-stepper { min-width: 0; }
.jaro-page .jaro-stepper .stp { min-width: 0; }
.jaro-page .jaro-gen { position: relative; z-index: 1; }

@media (max-width: 991px) {
  .jaro-page .jaro-hero { min-height: 0; }
  .jaro-page .jaro-hero__inner { flex-direction: row; text-align: left; align-items: center; }
  .jaro-page .jaro-hero__mascot { flex-basis: 38%; width: 38%; min-width: 190px; }
  .jaro-page .jaro-mascot-slot--hero img { max-height: 290px; }
}
@media (max-width: 767px) {
  .jaro-page .jaro-hero__inner { flex-direction: column-reverse; text-align: center; gap: .75rem; }
  .jaro-page .jaro-hero__mascot { width: min(300px, 82vw); min-width: 0; flex-basis: auto; }
  .jaro-page .jaro-mascot-slot--hero img { max-height: 270px; }
  .jaro-page .jaro-mascot-slot--mini { min-height: 112px; padding: .5rem .65rem; gap: .65rem; }
  .jaro-page .jaro-mascot-slot--mini img { width: 94px; height: 112px; flex-basis: 94px; }
  .jaro-page .jaro-mascot-slot--mini .jaro-bubble { font-size: .86rem; padding: .6rem .75rem; }
  .jaro-page .jaro-mascot-slot--success img { width: 86px; height: 100px; flex-basis: 86px; }
}
@media (max-width: 420px) {
  .jaro-page .jaro-hero__mascot { width: min(260px, 78vw); }
  .jaro-page .jaro-mascot-slot--mini { align-items: center; }
  .jaro-page .jaro-mascot-slot--mini img { width: 78px; height: 96px; flex-basis: 78px; }
  .jaro-page .jaro-mascot-slot--mini .jaro-bubble { font-size: .8rem; }
}

/* JARO VISUAL HIERARCHY PATCH: larger mascot and reference-style composition */
.jaro-page .jaro-hero { padding: clamp(2rem,4vw,3.75rem) 1.5rem clamp(2rem,4vw,3.25rem); }
.jaro-page .jaro-hero__inner { max-width:1280px; min-height:390px; gap:clamp(1.5rem,4vw,4rem); }
.jaro-page .jaro-hero__copy { flex:1 1 48%; max-width:590px; }
.jaro-page .jaro-hero__title { font-size:clamp(2.7rem,5vw,4.8rem); max-width:9ch; }
.jaro-page .jaro-hero__sub { max-width:38ch; font-size:clamp(1rem,1.4vw,1.15rem); }
.jaro-page .jaro-hero__mascot { flex:0 1 46%; width:46%; max-width:510px; min-width:300px; min-height:350px; justify-content:center; }
.jaro-page .jaro-mascot-slot--hero img { width:100%; max-height:430px; object-fit:contain; filter:drop-shadow(0 22px 34px rgba(0,0,0,.62)); }
.jaro-page .jaro-hero .jaro-bubble { max-width:280px; font-size:.98rem; box-shadow:0 12px 32px rgba(0,0,0,.32); }

/* Reserve a real right-hand illustration column on desktop wizard steps. */
.jaro-page #jaroWizard { position:relative; overflow:hidden; padding:clamp(1.25rem,2.6vw,2.25rem); background:radial-gradient(ellipse at 88% 60%,rgba(207,165,15,.09),transparent 37%),linear-gradient(135deg,#0b1420 0%,#101722 62%,#0a1019 100%); }
.jaro-page #jaroWizard .jaro-step { position:relative; min-height:360px; padding-right:clamp(235px,31%,390px); padding-bottom:1rem; }
.jaro-page #jaroWizard .jaro-step .jaro-mascot-slot--mini { position:absolute; z-index:1; right:0; top:50%; transform:translateY(-42%); width:clamp(220px,29%,350px); min-height:280px; margin:0; padding:.8rem .65rem 1rem; flex-direction:column; justify-content:center; gap:.25rem; background:radial-gradient(ellipse at 50% 35%,rgba(207,165,15,.13),transparent 62%),linear-gradient(180deg,rgba(18,29,43,.62),rgba(6,9,16,.18)); border:1px solid rgba(207,165,15,.2); border-radius:20px; }
.jaro-page #jaroWizard .jaro-mascot-slot--mini img { display:block; width:100%; height:230px; max-height:270px; flex:0 0 auto; object-fit:contain; filter:drop-shadow(0 16px 22px rgba(0,0,0,.5)); }
.jaro-page #jaroWizard .jaro-mascot-slot--mini .jaro-bubble { width:100%; max-width:280px; text-align:center; font-size:.9rem; padding:.65rem .8rem; background:#172232; box-shadow:0 8px 22px rgba(0,0,0,.22); }
.jaro-page #jaroWizard .jaro-mascot-slot--mini .jaro-bubble::before { top:-7px; left:50%; transform:translateX(-50%) rotate(45deg); }
.jaro-page #jaroWizard .jaro-step .jaro-step-nav { margin-top:1.4rem; }
.jaro-page #jaroWizard .jaro-step .jaro-q { font-size:clamp(1.45rem,2.5vw,2.1rem); line-height:1.2; margin-bottom:.55rem; }
.jaro-page #jaroWizard .jaro-step .jaro-hint { line-height:1.6; }
.jaro-page #jaroLoading, .jaro-page #jaroError { min-height:430px; flex-direction:column; align-items:center; justify-content:center; }
.jaro-page #jaroLoading .jaro-mascot-slot--loading img, .jaro-page #jaroError .jaro-mascot-slot--loading img { width:min(330px,45vw); max-height:330px; }
.jaro-page #jaroResult .jaro-mascot-slot--success img { width:160px; max-height:190px; }
.jaro-page .jaro-mascot-slot--success { display:flex; flex-direction:row; align-items:center; justify-content:center; gap:1rem; }
.jaro-page .jaro-mascot-slot--success .jaro-bubble { max-width:390px; font-size:.95rem; }

@media(max-width:991px) {
 .jaro-page .jaro-hero__inner { min-height:0; }
 .jaro-page .jaro-hero__mascot { flex-basis:40%; width:40%; min-width:245px; min-height:0; }
 .jaro-page .jaro-mascot-slot--hero img { max-height:350px; }
 .jaro-page #jaroWizard .jaro-step { padding-right:225px; min-height:330px; }
 .jaro-page #jaroWizard .jaro-step .jaro-mascot-slot--mini { width:205px; min-height:245px; }
 .jaro-page #jaroWizard .jaro-mascot-slot--mini img { height:190px; max-height:200px; }
}
@media(max-width:767px) {
 .jaro-page .jaro-hero__inner { flex-direction:column; text-align:center; gap:.5rem; }
 .jaro-page .jaro-hero__copy { order:1; }
 .jaro-page .jaro-hero__mascot { order:2; width:min(340px,82vw); min-width:0; flex-basis:auto; margin:0 auto; }
 .jaro-page .jaro-hero__title { max-width:none; }
 .jaro-page .jaro-hero__sub { margin-inline:auto; }
 .jaro-page .jaro-mascot-slot--hero img { max-height:300px; }
 .jaro-page #jaroWizard .jaro-step { padding-right:0; min-height:0; padding-bottom:.5rem; }
 .jaro-page #jaroWizard .jaro-step .jaro-mascot-slot--mini { position:relative; inset:auto; transform:none; width:100%; min-height:0; margin:.75rem 0 1rem; padding:.4rem .65rem; flex-direction:row; justify-content:flex-start; gap:.8rem; border-radius:16px; }
 .jaro-page #jaroWizard .jaro-mascot-slot--mini img { width:125px; height:145px; max-height:155px; flex:0 0 125px; }
 .jaro-page #jaroWizard .jaro-mascot-slot--mini .jaro-bubble { text-align:left; max-width:none; font-size:.86rem; }
 .jaro-page #jaroWizard .jaro-mascot-slot--mini .jaro-bubble::before { top:50%; left:-7px; transform:translateY(-50%) rotate(45deg); }
 .jaro-page #jaroWizard .jaro-step-nav { flex-direction:row; }
 .jaro-page #jaroLoading .jaro-mascot-slot--loading img, .jaro-page #jaroError .jaro-mascot-slot--loading img { width:min(280px,75vw); }
}
@media(max-width:420px) {
 .jaro-page #jaroWizard .jaro-mascot-slot--mini img { width:96px; height:120px; flex-basis:96px; }
}


/* ========================================================================
   JARO REFINEMENT — approved reference composition (revision 6)
   Intent: generous form space, clearly visible mascot column, cinematic
   navy/gold treatment. Kept scoped to .jaro-page to protect other pages.
   ======================================================================== */
.jaro-page {
  --jbg: #060910;
  --jsurf: #101722;
  --jsurf-2: #161e2c;
  --jline: #293443;
  --jgold: #CFA50F;
  --jgold-hi: #D4A80F;
  --jsoft: #F5E6C0;
  --jtext: #F3F1EA;
  --jmuted: #9AA3B2;
  background: var(--jbg);
  color: var(--jtext);
}
.jaro-page .jaro-wizard {
  width: min(100% - 32px, 1240px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 0 2.5rem;
}
.jaro-page .jaro-hero {
  margin: 0 0 1.5rem;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 3vw, 2.25rem);
  min-height: 390px;
  border-radius: 0 0 24px 24px;
  background-color: #08111d;
  background-image:
    linear-gradient(90deg, rgba(5,10,18,.88) 0%, rgba(5,10,18,.63) 46%, rgba(5,10,18,.24) 100%),
    linear-gradient(180deg, rgba(5,10,18,.12) 0%, rgba(5,10,18,.4) 70%, #060910 100%),
    var(--jhero-img, radial-gradient(ellipse at 78% 30%, #193553 0%, #08111d 62%));
  background-position: center, center, center 42%;
  background-size: cover;
}
.jaro-page .jaro-hero__inner {
  width: min(100%, 1240px);
  min-height: 320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .85fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3.25rem);
}
.jaro-page .jaro-hero__copy { max-width: 580px; min-width: 0; }
.jaro-page .jaro-hero__title {
  max-width: 10ch;
  font-size: clamp(2.8rem, 5.2vw, 5rem);
  line-height: .99;
  letter-spacing: -.035em;
  margin: .3rem 0 .9rem;
}
.jaro-page .jaro-hero__title em { color: var(--jgold); }
.jaro-page .jaro-hero__sub { max-width: 42ch; color: #e1e5eb; font-size: clamp(1rem, 1.4vw, 1.13rem); }
.jaro-page .jaro-hero__mascot {
  width: 100%; max-width: 470px; min-width: 0; min-height: 0;
  justify-self: center; align-self: end; position: relative;
  padding: .25rem .5rem 0;
}
.jaro-page .jaro-mascot-slot--hero img {
  display: block; width: 100%; max-width: 440px; max-height: 390px;
  margin: 0 auto; object-fit: contain; object-position: center bottom;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.62));
}
.jaro-page .jaro-hero .jaro-bubble { max-width: 290px; margin: -.25rem auto 0; font-size: .95rem; }

/* A real two-column wizard. The mascot is a full-size scene, not a tiny avatar. */
.jaro-page #jaroWizard {
  padding: clamp(1rem, 2.3vw, 2rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 82% 50%, rgba(207,165,15,.095), transparent 38%),
    linear-gradient(135deg, #0b1420 0%, #101722 62%, #080e17 100%);
  border: 1px solid rgba(207,165,15,.23);
  border-radius: 22px;
  box-shadow: 0 22px 55px rgba(0,0,0,.34);
}
.jaro-page .jaro-steps { gap: 8px; margin-bottom: 1.5rem; }
.jaro-page #jaroWizard .jaro-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(255px, .72fr);
  grid-auto-flow: row;
  align-items: start;
  column-gap: clamp(1rem, 2.5vw, 2.2rem);
  row-gap: 10px;
  min-height: 390px;
  padding: .25rem .1rem .4rem;
}
.jaro-page #jaroWizard .jaro-step > :not(.jaro-mascot-slot) { grid-column: 1; min-width: 0; }
.jaro-page #jaroWizard .jaro-step > .jaro-mascot-slot {
  grid-column: 2;
  grid-row: 1 / span 20;
  align-self: center;
  justify-self: stretch;
  position: relative;
  inset: auto;
  transform: none;
  width: 100%; min-width: 0; min-height: 300px;
  margin: .15rem 0 0; padding: .7rem .65rem 1rem;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: .4rem; overflow: hidden;
  border: 1px solid rgba(207,165,15,.24); border-radius: 20px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(207,165,15,.14), transparent 62%),
    linear-gradient(180deg, rgba(18,29,43,.78), rgba(6,9,16,.4));
}
.jaro-page #jaroWizard .jaro-step > .jaro-mascot-slot img {
  display: block; width: 100%; height: 255px; max-height: 285px;
  flex: 0 1 auto; object-fit: contain; object-position: center bottom;
  filter: drop-shadow(0 15px 23px rgba(0,0,0,.54));
}
.jaro-page #jaroWizard .jaro-step > .jaro-mascot-slot .jaro-bubble {
  width: min(100%, 310px); max-width: 310px; text-align: center;
  margin: 0 auto; padding: .65rem .85rem; font-size: .9rem; line-height: 1.45;
  background: #172232; box-shadow: 0 8px 20px rgba(0,0,0,.22);
}
.jaro-page #jaroWizard .jaro-step > .jaro-mascot-slot .jaro-bubble::before {
  top: -7px; left: 50%; transform: translateX(-50%) rotate(45deg);
}
.jaro-page #jaroWizard .jaro-q { font-size: clamp(1.55rem, 2.4vw, 2.15rem); line-height: 1.16; margin: .1rem 0 .15rem; }
.jaro-page #jaroWizard .jaro-hint { font-size: .91rem; line-height: 1.55; margin-bottom: .55rem; }
.jaro-page #jaroWizard .jaro-chips { gap: 9px; }
.jaro-page #jaroWizard .jaro-chip { min-height: 42px; }
.jaro-page #jaroWizard .jaro-step-nav { margin-top: 1rem; }
.jaro-page #jaroWizard .jaro-steppers { display: grid; grid-template-columns: 1fr; gap: .65rem; }
.jaro-page #jaroWizard .jaro-stepper { display: grid; grid-template-columns: minmax(115px, .8fr) minmax(0, 1fr); gap: .75rem; align-items: center; padding: .7rem .8rem; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: rgba(255,255,255,.025); }
.jaro-page #jaroWizard .jaro-stepper label { margin: 0; }
.jaro-page #jaroWizard .jaro-stepper .stp { justify-content: flex-end; }
.jaro-page #jaroWizard .jaro-stepper button { width: 40px; height: 40px; flex: 0 0 40px; }
.jaro-page #jaroWizard .jaro-stepper input { width: 48px; flex: 0 0 48px; }
.jaro-page .jaro-gen button,
.jaro-page #jaroWizard .jaro-chip.sel {
  background: linear-gradient(135deg, #CFA50F, #EBC65B);
  color: #1A1A10; border-color: transparent;
  box-shadow: 0 8px 24px rgba(207,165,15,.18);
}
.jaro-page .jaro-gen button:disabled { opacity: .5; }

/* Destination screen has many choices: keep them readable in the left column. */
.jaro-page #destPicker { min-width: 0; }
.jaro-page #destChips .jaro-destination { min-height: 76px; }
.jaro-page #destChips { max-height: 245px; overflow-y: auto; padding: 2px 3px 5px 0; }
.jaro-page #destChips .jaro-chip { flex: 1 1 130px; }
.jaro-page .jaro-mascot-slot--destination img { height: 270px !important; max-height: 290px !important; }

/* Result, loading and error panels preserve the same cinematic hierarchy. */
.jaro-page #jaroLoading, .jaro-page #jaroError {
  min-height: 460px; padding: 2.5rem 1.5rem; text-align: center;
  background: radial-gradient(ellipse at 50% 28%, rgba(207,165,15,.11), transparent 48%), #101722;
}
.jaro-page #jaroLoading .jaro-mascot-slot--loading,
.jaro-page #jaroError .jaro-mascot-slot--loading { width: min(340px, 70%); margin: 0 auto .6rem; }
.jaro-page #jaroLoading .jaro-mascot-slot--loading img,
.jaro-page #jaroError .jaro-mascot-slot--loading img { width: 100%; max-height: 330px; object-fit: contain; }
.jaro-page #jaroResult .jaro-mascot-slot--success { min-height: 135px; margin: .2rem 0 1rem; }
.jaro-page #jaroResult .jaro-mascot-slot--success img { width: 132px; height: 145px; flex-basis: 132px; object-fit: contain; }
.jaro-page #jaroResult .jaro-mascot-slot--success .jaro-bubble { max-width: 460px; }
.jaro-page #jaroResult .jaro-card { background-color: #101722; }
.jaro-page .pkg-card { background: #141e2b; border-color: rgba(207,165,15,.22); }

@media (max-width: 991px) {
  .jaro-page .jaro-hero { min-height: 0; }
  .jaro-page .jaro-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(250px, .8fr); min-height: 300px; }
  .jaro-page .jaro-mascot-slot--hero img { max-height: 320px; }
  .jaro-page #jaroWizard .jaro-step { grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr); min-height: 350px; }
  .jaro-page #jaroWizard .jaro-step > .jaro-mascot-slot { min-height: 270px; }
  .jaro-page #jaroWizard .jaro-step > .jaro-mascot-slot img { height: 220px; max-height: 230px; }
  .jaro-page #jaroWizard .jaro-stepper { grid-template-columns: 1fr; gap: .45rem; }
}
@media (max-width: 767px) {
  .jaro-page .jaro-wizard { width: min(100% - 24px, 600px); padding-bottom: 1.5rem; }
  .jaro-page .jaro-hero { padding: 1.5rem 1rem 1.1rem; margin-bottom: 1rem; border-radius: 0 0 18px 18px; }
  .jaro-page .jaro-hero__inner { grid-template-columns: minmax(0, 1fr); text-align: center; gap: .35rem; min-height: 0; }
  .jaro-page .jaro-hero__copy { max-width: 100%; }
  .jaro-page .jaro-hero__title { max-width: none; font-size: clamp(2.45rem, 10vw, 3.4rem); }
  .jaro-page .jaro-hero__sub { margin: 0 auto; }
  .jaro-page .jaro-hero__mascot { width: min(280px, 75vw); max-width: 280px; margin: 0 auto; }
  .jaro-page .jaro-mascot-slot--hero img { max-height: 235px; }
  .jaro-page #jaroWizard { padding: 1rem; border-radius: 17px; }
  .jaro-page #jaroWizard .jaro-step { grid-template-columns: minmax(0, 1fr); min-height: 0; row-gap: 9px; }
  .jaro-page #jaroWizard .jaro-step > :not(.jaro-mascot-slot) { grid-column: 1; }
  .jaro-page #jaroWizard .jaro-step > .jaro-mascot-slot {
    grid-column: 1; grid-row: auto; min-height: 0; width: 100%;
    margin: .35rem 0 .45rem; padding: .25rem .65rem; flex-direction: row;
    justify-content: flex-start; gap: .65rem; border-radius: 15px;
  }
  .jaro-page #jaroWizard .jaro-step > .jaro-mascot-slot img {
    width: 112px; height: 126px; max-height: 130px; flex: 0 0 112px;
  }
  .jaro-page #jaroWizard .jaro-step > .jaro-mascot-slot .jaro-bubble {
    max-width: none; width: auto; text-align: left; font-size: .83rem; padding: .55rem .7rem;
  }
  .jaro-page #jaroWizard .jaro-step > .jaro-mascot-slot .jaro-bubble::before {
    top: 50%; left: -7px; transform: translateY(-50%) rotate(45deg);
  }
  .jaro-page #jaroWizard .jaro-stepper { grid-template-columns: minmax(110px, .8fr) minmax(0, 1fr); }
  .jaro-page #jaroWizard .jaro-step-nav { flex-direction: row; }
  .jaro-page #destChips { max-height: 220px; }
  .jaro-page #jaroResult .jaro-mascot-slot--success img { width: 92px; height: 108px; flex-basis: 92px; }
}
@media (max-width: 420px) {
  .jaro-page .jaro-hero__title { font-size: 2.35rem; }
  .jaro-page #jaroWizard .jaro-step > .jaro-mascot-slot img { width: 90px; height: 108px; flex-basis: 90px; }
  .jaro-page #jaroWizard .jaro-stepper { grid-template-columns: 1fr; }
  .jaro-page #jaroWizard .jaro-stepper .stp { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .jaro-page *, .jaro-page *::before, .jaro-page *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
