/* Plan my trip (Plan board). */
.plan-hero { position: relative; height: 440px; overflow: hidden; background: var(--green-deep); color: #fff; }
.plan-hero__img, .plan-hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.plan-hero__img img { object-fit: cover; transform-origin: 50% 30%; }
.plan-hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,22,16,.85) 0%, rgba(8,22,16,.35) 50%, rgba(8,22,16,.15) 75%, rgba(8,22,16,.35) 100%); }
.plan-hero__text { position: absolute; left: 0; right: 0; bottom: 48px; }
.plan-hero__text .kicker { margin-bottom: 12px; }
.plan-hero h1 { max-width: 860px; font-size: clamp(34px, 5vw, 70px); line-height: 1.04; }
.plan-hero__intro { margin-top: 16px; max-width: 640px; font-size: 17px; line-height: 1.55; }
@media (min-width: 800px) { .plan-hero__intro { font-size: 19px; } .plan-hero__text { bottom: 56px; } }
@media (prefers-reduced-motion: no-preference) {
  .plan-hero__img img { animation: kenburns 14s ease-out forwards; }
  .plan-hero__text > * { animation: rise .9s .2s both; }
  .plan-hero__text > .plan-hero__intro { animation-delay: .5s; }
}

.plan { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 40px; padding-bottom: 90px; }
.plan__main { flex: 999 1 600px; min-width: 0; }
.plan__side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1100px) { .plan { padding-top: 56px; } .plan__side { position: sticky; top: 24px; } }
.plan-card { padding: clamp(22px, 4vw, 48px); background: #fff; border-radius: 24px; box-shadow: 0 18px 40px rgba(18,38,30,.07); }

/* Starting point from a trip page */
.start-point { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 30px; padding: 14px 16px; background: var(--green-light); border-radius: 16px; }
.start-point[hidden] { display: none; }
.start-point__img img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.start-point__text { flex: 1 1 260px; font-size: 14.5px; line-height: 1.5; }
.start-point__text strong { display: block; font-size: 15.5px; }

/* Progress */
.prog { display: flex; gap: 8px; margin: 0 0 34px; padding: 0; list-style: none; }
.prog[hidden] { display: none; }
.prog li { flex: 1 1 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; font-weight: 700; color: #5f6e66; }
.prog__bar { position: relative; height: 6px; border-radius: 99px; background: #e5e0d6; overflow: hidden; }
.prog__bar::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--red); transition: width .5s ease; }
.prog li.is-done .prog__bar::after, .prog li.is-now .prog__bar::after { width: 100%; }
.prog li.is-now, .prog li.is-done { color: var(--green); }
@media (max-width: 820px) { .prog__label { display: none; } }

/* Steps: one long form without JavaScript, one step at a time with it */
.pstep { min-width: 0; margin: 0; padding: 0; border: 0; }
html:not(.js) .pstep + .pstep { margin-top: 48px; padding-top: 40px; border-top: 1px solid #e5e0d6; }
.js .pstep:not(.is-current) { display: none; }
@media (prefers-reduced-motion: no-preference) { .js .pstep.is-current { animation: rise .45s both; } }
[data-show-if][hidden] { display: none; }

.q { margin-bottom: 6px; font-size: 24px; line-height: 1.2; }
@media (min-width: 800px) { .q { font-size: 26px; } }
.q--gap { margin-top: 42px; }
.q3 { margin: 30px 0 6px; font: 700 17px/1.3 var(--sans); }
.qsub { margin-bottom: 20px; font-size: 15px; color: var(--muted); }
.note { margin-bottom: 24px; padding: 12px 16px; border-radius: 12px; background: var(--green-light); font-size: 14.5px; line-height: 1.5; }
.note--gap { margin: 22px 0 0; font-size: 15px; }
.note[hidden] { display: none; }

/* Choices: real checkboxes and radios, visually hidden, the label is the button */
.ck { position: absolute; top: 16px; right: 16px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid #c9c1b2; background: #fff; transition: background-color .25s, border-color .25s; }
.ck svg { opacity: 0; }
:has(> .vh-input:checked) > .ck { background: var(--red); border-color: var(--red); }
:has(> .vh-input:checked) > .ck svg { opacity: 1; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tile { position: relative; display: block; height: 190px; overflow: hidden; border-radius: 18px; background: var(--green); color: #fff; cursor: pointer; outline: 3px solid transparent; outline-offset: 3px; transition: outline-color .25s; }
.tile__img, .tile__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile__img img { object-fit: cover; transition: transform .9s ease; }
.tile:hover .tile__img img { transform: scale(1.07); }
.tile__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,22,16,.9), rgba(8,22,16,.1) 70%); }
.tile__txt { position: absolute; left: 18px; right: 18px; bottom: 16px; }
.tile__txt strong { display: block; margin-bottom: 4px; font: 600 22px/1.2 var(--serif); }
.tile__txt span { font-size: 13.5px; line-height: 1.4; opacity: .92; }
.tile__credit { position: absolute; right: 10px; bottom: 8px; z-index: 2; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,.32); color: #fff; font-size: 10px; line-height: 1.3; }
.tile .ck { border-color: #fff; background: rgba(255,255,255,.15); }
.tile:has(.vh-input:checked) { outline-color: var(--red); }
.tile:has(.vh-input:focus-visible), .opt:has(.vh-input:focus-visible), .pill:has(.vh-input:focus-visible), .bub:has(.vh-input:focus-visible) .bub__ring { box-shadow: var(--focus); }

.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.opts--3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.opts--top { margin-top: 16px; }
.opt { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 52px 18px 20px; border: 2px solid #ddd6c8; border-radius: 16px; background: #fff; font-size: 15px; line-height: 1.45; cursor: pointer; transition: border-color .25s, background-color .25s, transform .25s; }
.opt:hover { border-color: var(--green); transform: translateY(-2px); }
.opt:has(.vh-input:checked) { border-color: var(--red); background: #fff7f3; }
.opt strong { font-size: 17px; }
.opt__sub { font-size: 14px; color: var(--muted); }
.opt__malay { display: block; font: italic 400 1em var(--serif); color: var(--red); }

.bubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.bub { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px; font-size: 14.5px; font-weight: 700; text-align: center; cursor: pointer; }
.bub__ring { width: 88px; height: 88px; padding: 4px; border: 3px solid transparent; border-radius: 50%; transition: border-color .25s, transform .35s; }
.bub__ring picture, .bub__ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.bub:hover .bub__ring { transform: scale(1.05); }
.bub:has(.vh-input:checked) .bub__ring { border-color: var(--red); }
.bub .ck { top: 6px; right: calc(50% - 48px); }
@media (min-width: 821px) { .bub__ring { width: 112px; height: 112px; } .bub .ck { right: calc(50% - 60px); } }

.pills--modes { margin: 16px 0 22px; }
.level-note { margin-top: 14px; font-size: 14px; line-height: 1.8; color: var(--muted); }

/* Fields */
.fields--contact { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 16px; }
.open-text { font-size: 15px; line-height: 1.6; color: var(--muted); }
.small { margin-top: 10px; font-size: 13.5px; color: #5f6e66; }

.counters { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 16px; }
.stepper { display: flex; align-items: center; width: max-content; border: 1.5px solid #cfc7b8; border-radius: 12px; background: #fff; }
.stepper button { width: 46px; height: 46px; border: 0; border-radius: 12px; background: none; color: var(--green); font-size: 22px; cursor: pointer; }
.stepper button:hover { background: var(--green-light); }
.stepper input { width: 64px; min-height: 46px; padding: 0; border: 0; text-align: center; font: 700 18px var(--sans); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; }
.js .stepper input { width: 44px; }
.ages { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 20px; }

.lang-note { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 14.5px; line-height: 1.5; }
.lang-note picture, .lang-note img { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; object-fit: cover; }
.consents { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; padding-top: 24px; border-top: 1px solid #e5e0d6; }

.plan-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 32px; }
html:not(.js) .plan-nav { justify-content: flex-end; }
.plan-nav__count { font-size: 14px; color: #5f6e66; }
.plan-nav__count[hidden] { display: none; }
.plan-nav .btn--line { padding: 14px 26px; font-size: 15px; }
.plan-nav [data-submit][disabled] { opacity: .7; cursor: progress; }

/* Thank-you screen */
.thanks { padding: 20px 0 10px; text-align: center; }
.thanks[hidden] { display: none; }
.thanks:focus { outline: none; }
.thanks__icon { width: 76px; height: 76px; margin: 0 auto 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--wa); }
.thanks h2 { margin-bottom: 12px; font-size: clamp(28px, 3vw, 36px); }
.thanks__text { max-width: 520px; margin: 0 auto 8px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.thanks__text[hidden] { display: none; }
.thanks__spam { max-width: 520px; margin: 0 auto 30px; font-size: 15px; color: #5f6e66; }
.thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Sidebar */
.side { padding: 26px; background: #fff; border-radius: 22px; }
.side__kicker { font-size: 12.5px; }
.side__title { margin-bottom: 16px; font: 600 21px/1.25 var(--serif); }
.sum dt { margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5f6e66; }
.sum dd { margin: 4px 0 0; font-size: 15px; font-weight: 600; line-height: 1.45; }
.sum dd.is-empty { color: #6b7770; font-weight: 500; }
.person { display: grid; grid-template-columns: 60px 1fr; align-items: center; gap: 8px 14px; }
.person + .person { margin-top: 14px; }
.person picture { grid-row: span 2; }
.person picture, .person img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.person p { font-size: 14px; line-height: 1.4; }
.person strong { display: block; font-size: 15.5px; }
.person__links { display: flex; flex-wrap: wrap; gap: 6px; }
.wa { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 999px; background: var(--green-light); color: var(--green); font-size: 14px; font-weight: 700; text-decoration: none; }
.wa:hover { background: #d3dfce; color: var(--green); }
.howto { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: h; }
.howto li { position: relative; padding-left: 44px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.howto li::before { counter-increment: h; content: counter(h); position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--green); color: var(--cream); font: 600 15px var(--serif); }
.howto strong { display: block; color: var(--green); }
.side-foot { padding: 4px 6px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.side-foot p + p { margin-top: 10px; }
.side-foot__quote { font: italic 16px/1.5 var(--serif); color: var(--green); }

@media (prefers-reduced-motion: reduce) {
  .opt, .tile__img img, .bub__ring, .prog__bar::after { transition: none; }
  .opt:hover { transform: none; }
}
