:root {
    --journey-navy: #25363a;
    --journey-teal: #47675f;
    --journey-amber: #b77948;
    --journey-red: #945163;
    --journey-pearl: #f2eee8;
    --journey-ink: #2f4143;
    --journey-muted: #6b7774;
}

body.journey-page { background: #f7f4ee; color: var(--journey-ink); }
.journey-shell { max-width: 1040px; margin: 0 auto; padding: 54px 16px 84px; }
.journey-kicker { color: var(--journey-red); font-weight: 800; letter-spacing: .035em; text-transform: none; font-size: .8rem; }
.journey-title { color: var(--journey-navy); font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.16; font-weight: 800; max-width: 790px; letter-spacing: -.02em; }
.journey-lead { color: var(--journey-muted); font-size: 1.08rem; line-height: 1.9; max-width: 720px; }
.journey-card { background: #fffdf9; border: 1px solid #ded8ce; border-radius: 26px; box-shadow: 0 20px 55px rgba(37,54,58,.08); }
.journey-card-pad { padding: clamp(22px, 4vw, 42px); }

.journey-progress { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 28px; }
.journey-progress span { height: 5px; background: #e4ded5; border-radius: 99px; transition: .25s ease; }
.journey-progress span.is-active, .journey-progress span.is-done { background: var(--journey-teal); }
.journey-progress span.is-active { background: var(--journey-red); }

.journey-step { display: none; }
.journey-step.is-active { display: block; animation: journeyFade .24s ease; }
@keyframes journeyFade { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.journey-question { color: var(--journey-navy); font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; margin-bottom: .55rem; }
.journey-help { color: var(--journey-muted); margin-bottom: 1.5rem; }

.journey-options { display: grid; gap: 12px; }
.journey-options.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.journey-choice { position: relative; display: block; }
.journey-choice input { position: absolute; opacity: 0; pointer-events: none; }
.journey-choice span {
    display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 14px 16px;
    border: 1.5px solid #ded8ce; border-radius: 16px; background: #fffdf9; cursor: pointer;
    font-weight: 700; transition: .2s ease;
}
.journey-choice span::before {
    content: ""; width: 18px; height: 18px; flex: 0 0 18px; border: 2px solid #bbb8b0;
    border-radius: 50%; box-shadow: inset 0 0 0 4px #fff;
}
.journey-choice input:checked + span { border-color: var(--journey-teal); background: #eaf0ec; color: #304942; }
.journey-choice input:checked + span::before { border-color: var(--journey-teal); background: var(--journey-teal); }
.journey-choice input:focus-visible + span { outline: 3px solid rgba(30,127,134,.2); }

.journey-input, .journey-select, .journey-textarea {
    width: 100%; border: 1.5px solid #d9d2c8; border-radius: 14px; background: #fffdf9;
    padding: 14px 16px; color: var(--journey-ink); min-height: 54px;
}
.journey-input:focus, .journey-select:focus, .journey-textarea:focus {
    border-color: var(--journey-teal); box-shadow: 0 0 0 4px rgba(30,127,134,.12); outline: none;
}
.journey-location-box {
    margin-top: 14px; padding: 16px; border: 1px solid #ded8ce; border-radius: 16px;
    background: #f8f5ef; display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.journey-location-status { color: var(--journey-muted); font-size: .9rem; flex: 1 1 220px; }
.journey-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.journey-btn {
    border: 0; border-radius: 999px; padding: 12px 24px; font-weight: 800; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px; transition: .2s ease;
}
.journey-btn-primary { background: var(--journey-navy); color: #fff; box-shadow: 0 10px 24px rgba(37,54,58,.14); }
.journey-btn-primary:hover { background: #304942; color: #fff; transform: translateY(-1px); }
.journey-btn-soft { background: var(--journey-pearl); color: var(--journey-navy); }
.journey-btn-soft:hover { background: #e5ecee; color: var(--journey-navy); }
.journey-btn[disabled] { opacity: .45; pointer-events: none; }

.profile-summary { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 30px; }
.profile-pill { padding: 8px 12px; background: #e8eeea; border-radius: 999px; color: #3b5c54; font-size: .86rem; font-weight: 700; }
.match-grid { display: grid; gap: 18px; }
.match-card { overflow: hidden; display: grid; grid-template-columns: 220px 1fr; }
.match-image { width: 100%; height: 100%; min-height: 250px; object-fit: cover; background: var(--journey-pearl); }
.match-body { padding: 24px; }
.match-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.match-name { color: var(--journey-navy); font-size: 1.35rem; font-weight: 800; margin: 0 0 6px; }
.match-meta { color: var(--journey-muted); font-size: .9rem; }
.match-score { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; display: grid; place-items: center;
    color: var(--journey-navy); font-weight: 900; background: conic-gradient(var(--journey-teal) var(--score), #e6e1d9 0);
    position: relative; }
.match-score::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.match-score span { position: relative; z-index: 1; }
.match-fit-badge {
    min-width: 132px; flex: 0 0 auto; border: 1px solid #d9d2c8; border-radius: 16px;
    background: #f8f5ef; padding: 11px 13px; text-align: center;
}
.match-fit-badge strong { display: block; color: var(--journey-navy); font-size: .95rem; }
.match-fit-badge small { color: var(--journey-muted); font-size: .75rem; }
.match-fit-badge.confidence-high { border-color: #96b4a9; background: #edf4f0; }
.match-fit-badge.confidence-medium { border-color: #d8bd9f; background: #faf2e8; }
.match-fit-badge.confidence-low { border-color: #d4aeba; background: #f8edf0; }
.match-reasons { list-style: none; padding: 0; margin: 18px 0 12px; display: grid; gap: 8px; }
.match-reasons li { display: flex; gap: 9px; color: #38546d; }
.match-reasons i { color: var(--journey-teal); margin-top: .25rem; }
.match-tradeoff { padding: 11px 13px; border-radius: 12px; background: #f5ede4; color: #765234; font-size: .88rem; }
.match-travel { margin-top: 10px; color: var(--journey-muted); font-size: .86rem; }
.match-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.journey-compare-toolbar {
    position: sticky; top: 76px; z-index: 20; margin: 0 0 18px; padding: 13px 16px;
    border: 1px solid #ded8ce; border-radius: 18px; background: rgba(255,253,249,.96);
    box-shadow: 0 10px 28px rgba(37,54,58,.08); display: flex; align-items: center;
    justify-content: space-between; gap: 12px; backdrop-filter: blur(8px);
}
.journey-compare-choice { position: relative; display: inline-flex; }
.journey-compare-choice input { position: absolute; opacity: 0; pointer-events: none; }
.journey-compare-choice span {
    display: inline-flex; align-items: center; gap: 7px; border: 1px solid #d9d2c8;
    border-radius: 999px; padding: 10px 14px; color: var(--journey-navy);
    background: #fffdf9; font-weight: 800; cursor: pointer;
}
.journey-compare-choice input:checked + span { color: #fff; border-color: var(--journey-teal); background: var(--journey-teal); }
.journey-compare-choice input:focus-visible + span { outline: 3px solid rgba(30,127,134,.2); }

.application-timeline { position: relative; display: grid; gap: 0; }
.timeline-row { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding-bottom: 22px; position: relative; }
.timeline-row:not(:last-child)::before { content:""; position:absolute; inset-inline-start: 16px; top: 30px; bottom: 0; width: 2px; background: #dfe4e5; }
.timeline-dot { width: 32px; height: 32px; border-radius: 50%; background: #e7ebec; color: #82909b; display:grid; place-items:center; z-index:1; }
.timeline-row.is-done .timeline-dot, .timeline-row.is-current .timeline-dot { background: var(--journey-teal); color:#fff; }
.timeline-row.is-current .timeline-dot { box-shadow: 0 0 0 6px rgba(30,127,134,.12); }
.timeline-copy strong { display:block; color:var(--journey-navy); }
.timeline-copy small { color:var(--journey-muted); }

@media (max-width: 767px) {
    body.journey-page .site-footer { display: none; }
    .journey-shell { padding: 24px 10px 36px; }
    .journey-card { border-radius: 20px; }
    .journey-card-pad { padding: 20px 16px; }
    .journey-title { font-size: 1.9rem; }
    .journey-options.two { grid-template-columns: 1fr; }
    .match-card { grid-template-columns: 1fr; }
    .match-image { min-height: 190px; max-height: 230px; }
    .match-top { align-items: flex-start; }
    .match-body { padding: 19px 16px; }
    .match-fit-badge { min-width: 112px; }
    .journey-nav { position: static; }
    .journey-nav .journey-btn { flex: 1 1 0; padding-inline: 14px; }
    .journey-compare-toolbar { top: 70px; align-items: stretch; flex-direction: column; }
    .journey-compare-toolbar .journey-btn { width: 100%; }
}
