/* Host signup — step 1 (account). Two-panel: photo + copy on the left, form on the right, with a
   top bar and a slim footer. Self-contained (like login.css) to keep the document small. */

:root {
    --ink: #102d29; --teal: #0e7c6b; --teal-dark: #0a5d50;
    --sand: #f7f4ee; --amber: #e8a33d; --muted: #647570; --line: #e7e2d8;
    --display: 'Fraunces', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body.hs {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink); background: var(--sand); min-height: 100vh; display: flex; flex-direction: column;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.hs a { color: inherit; text-decoration: none; }

/* Brand wordmark */
.hs-brand { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em; display: inline-flex; color: var(--ink); }
.hs-brand span { color: var(--teal); }
.hs-brand.sm { font-size: 1.15rem; }

/* ── Top bar ── */
.hs-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.6rem; border-bottom: 1px solid var(--line); background: #fff;
}
.hs-top-nav { display: flex; align-items: center; gap: 1.6rem; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.hs-top-nav a:hover { color: var(--ink); }
.hs-cancel { color: var(--muted); }

/* ── Body: two panels ── */
.hs-wrap { flex: 1; display: grid; grid-template-columns: 1fr 1.05fr; }

/* Left photo panel */
.hs-aside {
    position: relative; overflow: hidden; color: #fff; display: flex; align-items: flex-end;
    padding: 3rem; min-height: 420px;
    background-image: linear-gradient(180deg, rgba(16,45,41,0.10) 0%, rgba(16,45,41,0.20) 45%, rgba(16,45,41,0.82) 100%), url('/images/demo/cv13-ed4865c8290d84c2682bf9e9ee04142a.jpg');
    background-size: cover; background-position: center;
}
.hs-aside-copy h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 3vw, 2.8rem); letter-spacing: -0.02em; line-height: 1.05; max-width: 14ch; }
.hs-aside-copy p { margin-top: 0.9rem; max-width: 40ch; font-size: 1.02rem; line-height: 1.55; opacity: 0.95; }

/* Right form panel */
.hs-panel { display: flex; align-items: center; justify-content: center; padding: 2.6rem 2rem; }
.hs-form { width: 100%; max-width: 420px; }

/* Step header + progress */
.hs-steps { margin-bottom: 1.6rem; }
.hs-steps-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.55rem; }
.hs-step-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.hs-step-name { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.hs-progress { height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.hs-progress > span { display: block; height: 100%; width: 25%; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--amber)); }

.hs-form h2 { font-family: var(--display); font-weight: 600; font-size: 1.85rem; letter-spacing: -0.02em; line-height: 1.1; }
.hs-lead { color: var(--muted); margin: 0.5rem 0 1.8rem; line-height: 1.5; }

/* Fields */
.hs-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 1.05rem; }
.hs-form label > span { display: block; margin-bottom: 0.4rem; }
.hs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.hs-form input:not([type=hidden]) {
    width: 100%; padding: 0.8rem 0.95rem; border: 1px solid var(--line); border-radius: 12px;
    font-size: 1rem; outline: none; background: #fff; color: var(--ink); font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.hs-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,124,107,0.16); }
.hs-form input.bad { border-color: #d9534f; }
.hs-form input.bad:focus { box-shadow: 0 0 0 3px rgba(217,83,79,0.16); }
.hs-err { display: block; margin-top: 0.35rem; color: #b3261e; font-size: 0.82rem; font-weight: 500; font-style: normal; }

/* Phone: fixed +351 prefix box beside the number — same control as the traveller signup (register.css). */
.hs-form .phone-row { display: flex; gap: 0.5rem; }
.hs-form .phone-row .ddi {
    flex: 0 0 68px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 12px; background: #fff;
    color: var(--muted); font-weight: 600; font-size: 0.92rem;
}
.hs-form .phone-row input { flex: 1; min-width: 0; }

/* Password with show/hide */
.hs-pw { position: relative; }
.hs-pw input { padding-right: 2.9rem; }
.hs-pw-eye {
    position: absolute; top: 50%; right: 0.5rem; transform: translateY(-50%);
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    border: none; background: transparent; color: var(--muted); cursor: pointer; border-radius: 8px;
}
.hs-pw-eye:hover { color: var(--ink); background: rgba(16,45,41,0.05); }
.hs-pw-eye.on { color: var(--teal); }

/* Submit */
.hs-submit {
    width: 100%; margin-top: 0.5rem; padding: 0.95rem; border: none; border-radius: 12px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    background: linear-gradient(180deg, #17433b, #102d29); color: #fff; font-weight: 700; font-size: 1rem; font-family: inherit;
    box-shadow: 0 8px 20px rgba(16,45,41,0.24); transition: transform .12s, box-shadow .18s, background .18s;
}
.hs-submit:hover { transform: translateY(-1px); background: linear-gradient(180deg, #1c4c43, #123430); box-shadow: 0 12px 28px rgba(16,45,41,0.3); }
.hs-submit:active { transform: translateY(0); }

.hs-alt { margin-top: 1.4rem; text-align: center; color: var(--muted); font-size: 0.9rem; }
.hs-alt a { color: var(--teal-dark); font-weight: 700; }

/* ── Footer ── */
.hs-foot {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem;
    padding: 1.3rem 1.6rem; border-top: 1px solid var(--line); background: #fff;
}
.hs-foot-brand { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.hs-copy { font-size: 0.82rem; color: var(--muted); }
.hs-foot-links { display: flex; gap: 1.3rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.hs-foot-links a:hover { color: var(--ink); }

/* ── Step 2: vehicle details (centered container + sidebar/form grid) ── */
.hv-wrap { flex: 1; width: 100%; max-width: 920px; margin: 0 auto; padding: 2.6rem 1.6rem 3rem; }
.hv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.7rem; }
.hv-head h1 { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.02em; }
.hv-pct { font-size: 0.85rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.hv-progress { max-width: none; margin-bottom: 2rem; }
.hv-progress > span { width: 50%; }

.hv-grid { display: grid; grid-template-columns: 260px 1fr; gap: 1.8rem; align-items: start; }

/* Sidebar cards */
.hv-side { display: flex; flex-direction: column; gap: 1rem; }
.hv-card { border-radius: 14px; padding: 1.1rem 1.15rem; font-size: 0.9rem; line-height: 1.5; }
.hv-why { background: #f3ede1; border: 1px solid #e7dcc7; }
.hv-why-tag { display: flex; align-items: center; gap: 0.45rem; color: var(--teal-dark); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.5rem; }
.hv-why p { color: #6b5f47; }
.hv-tip { background: #fff; border: 1px solid var(--line); }
.hv-tip strong { display: block; font-size: 0.85rem; margin-bottom: 0.3rem; }
.hv-tip p { color: var(--muted); }

/* Form fields */
.hv-fields { min-width: 0; }
.hv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hv-field { margin-bottom: 1.1rem; min-width: 0; }
.hv-field > label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.4rem; }
.hv-fields input, .hv-fields select {
    width: 100%; padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: 12px;
    font-size: 1rem; outline: none; background: #fff; color: var(--ink); font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.hv-fields select { appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23647570' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2.4rem; }
.hv-fields input:focus, .hv-fields select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,124,107,0.16); }
.hv-sep { border: none; border-top: 1px solid var(--line); margin: 0.4rem 0 1.3rem; }
.hv-block-label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 0.8rem; }

.hv-amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem 1rem; }
.hv-check { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; font-size: 0.92rem; }
.hv-check input { width: 18px; height: 18px; accent-color: var(--teal); flex: none; }

.hv-photos-note { margin: 1.4rem 0 0; color: var(--muted); font-size: 0.9rem; }

/* ── Step 3 (publish) ── */
/* Step 3 fills three quarters; only the insurance step (.full) completes the bar. */
.hv-progress.done > span { width: 75%; }
.hv-progress.full > span { width: 100%; }
.hv-fields textarea {
    width: 100%; padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: 12px;
    font-size: 1rem; font-family: inherit; color: var(--ink); background: #fff; outline: none; resize: vertical;
    transition: border-color .15s, box-shadow .15s;
}
.hv-fields textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,124,107,0.16); }
.hv-hint { display: block; margin-top: 0.35rem; font-size: 0.78rem; color: var(--muted); }
/* The funnel stylesheet is self-contained by design (like login.css), so the validation messages that step 2
   already renders had NO styling here — they came out as plain body text. Same rule, both steps. */
.hv-fields .field-error { display: block; margin-top: 0.35rem; font-size: 0.8rem; font-weight: 600; color: #9b1c1c; }
.hv-fields .field-error + .hv-hint, .hv-fields .hv-hint:has(+ .field-error) { display: none; }

/* Photo dropzone — the shared fragment's styles live in app.css, which this page doesn't load. */
.dropzone { border: 2px dashed var(--line); border-radius: 12px; padding: 1.3rem; text-align: center; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.dz-over { border-color: var(--teal); background: #f4faf8; }
.dropzone .dz-input { display: none; }
.dz-body { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; color: var(--muted); pointer-events: none; }
.dz-ic { width: 28px; height: 28px; color: var(--teal); }
.dz-text { font-size: 0.9rem; color: var(--ink); font-weight: 600; }
.dz-text u { color: var(--teal-dark); }
.dz-hint { font-size: 0.76rem; }
.dz-previews { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.dz-thumb { height: 76px; width: 76px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.dz-thumb-loading { display: inline-flex; align-items: center; justify-content: center; height: 76px; width: 76px;
    border-radius: 10px; border: 1px solid var(--line); background: var(--sand); }
.dz-spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(0,0,0,0.12);
    border-top-color: var(--teal); animation: dz-spin .8s linear infinite; }
@keyframes dz-spin { to { transform: rotate(360deg); } }
.dz-fname { font-size: 0.58rem; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-replace { display: none; font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; }
.dropzone.has-file .dz-body { display: none; }
.dropzone.has-file .dz-replace { display: block; }

.hv-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; }
.hv-back-btn { padding: 0.85rem 1.6rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 700; color: var(--ink); }
.hv-back-btn:hover { border-color: #cfc8ba; }
.hv-continue { width: auto; margin-top: 0; padding: 0.9rem 1.6rem; }

@media (max-width: 860px) {
    .hs-wrap { grid-template-columns: 1fr; }
    .hs-aside { min-height: 220px; }
    .hs-panel { padding: 2.2rem 1.3rem; }
    .hs-foot { flex-direction: column; align-items: flex-start; }
    .hv-grid { grid-template-columns: 1fr; }
    .hv-side { order: 2; }
    .hv-amenities { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .hs-top { padding: 0.85rem 1.1rem; }
    .hs-brand { font-size: 1.25rem; }
    .hs-top-nav { gap: 1rem; font-size: 0.85rem; }
    .hs-top-nav a { white-space: nowrap; }
    /* The brand wordmark already links home, so the "back" link is redundant on a phone — drop it to
       give the two remaining items room instead of letting them wrap into each other. */
    .hs-top-nav a:not(.hs-cancel) { display: none; }
    .hv-row { grid-template-columns: 1fr; gap: 0; }
    .hv-actions { flex-direction: column-reverse; align-items: stretch; }
    .hv-continue { width: 100%; justify-content: center; }
    .hv-back-btn { text-align: center; }
}
@media (max-width: 480px) {
    .hs-top { padding: 0.85rem 1.1rem; }
    .hs-brand { font-size: 1.25rem; }
    .hs-top-nav { gap: 1rem; font-size: 0.85rem; }
    .hs-top-nav a { white-space: nowrap; }
    /* The brand wordmark already links home, so the "back" link is redundant on a phone — drop it to
       give the two remaining items room instead of letting them wrap into each other. */
    .hs-top-nav a:not(.hs-cancel) { display: none; }
}
.hv-alert { background: #fdf1f1; border: 1px solid #f0c9c9; border-radius: 12px; padding: 0.9rem 1.05rem;
    margin-bottom: 1.3rem; color: #7f1d1d; font-size: 0.88rem; }
.hv-alert strong { display: block; margin-bottom: 0.3rem; }
.hv-alert ul { margin: 0; padding-left: 1.1rem; }
.hv-alert li { margin-top: 0.15rem; }

/* ── Step 4: insurance (the Stitch "verification" screen, our document) ── */
.hi-wrap { max-width: 980px; }
.hi-lead { max-width: 66ch; color: var(--muted); line-height: 1.6; margin: -0.6rem 0 0.9rem; }
.hi-badge { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.75rem; margin-bottom: 1.4rem;
    border-radius: 999px; background: #e4f0ea; color: var(--teal-dark); font-size: 0.78rem; font-weight: 700; }
.hi-error { background: #fdf1f1; border: 1px solid #f0c9c9; color: #7f1d1d; border-radius: 12px;
    padding: 0.8rem 1rem; margin-bottom: 1.2rem; font-size: 0.9rem; font-weight: 600; }

/* stretch, not start: three cards of different content lengths sitting at three different heights read as
   a broken row rather than a set of equal choices. */
.hi-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
.hi-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.15rem; }
.hi-card > strong { display: block; font-size: 0.98rem; margin-bottom: 0.2rem; }
.hi-card > p { color: var(--muted); font-size: 0.83rem; line-height: 1.45; margin-bottom: 0.9rem; }
.hi-ic { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
    border-radius: 10px; margin-bottom: 0.7rem; }
.hi-ic.teal { background: #e4f0ea; color: var(--teal-dark); }
.hi-ic.amber { background: #fbf0dc; color: #a9752a; }
.hi-ic.dark { background: var(--ink); color: #fff; flex: none; }
.hi-field { display: block; margin-bottom: 0.75rem; }
.hi-field > span { display: block; font-weight: 600; font-size: 0.82rem; margin-bottom: 0.35rem; }
.hi-field input {
    width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 11px;
    font-size: 0.95rem; font-family: inherit; color: var(--ink); background: #fff; outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.hi-field input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,124,107,0.16); }
/* The upload sits in the third card, so it gets the card's width rather than the page's. */
.hi-card .dropzone { padding: 1rem 0.7rem; }

.hi-declare { display: flex; align-items: flex-start; gap: 0.6rem; margin: 1.3rem 0 0; font-size: 0.92rem;
    font-weight: 600; line-height: 1.45; }
.hi-declare input { width: 19px; height: 19px; accent-color: var(--teal); flex: none; margin-top: 0.1rem; }

.hi-privacy { display: flex; gap: 0.9rem; align-items: flex-start; margin-top: 1.3rem;
    background: var(--sand); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; }
.hi-privacy strong { display: block; font-size: 0.92rem; margin-bottom: 0.25rem; }
.hi-privacy p { color: var(--muted); font-size: 0.86rem; line-height: 1.55; }

/* ── Closing screen ── */
.hd-wrap { max-width: 640px; text-align: center; padding-top: 3.4rem; }
.hd-mark { display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px;
    border-radius: 50%; background: #e4f0ea; color: var(--teal-dark); margin-bottom: 1.2rem; }
.hd-title { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.3rem); letter-spacing: -0.02em; }
.hd-lead { color: var(--muted); margin: 0.6rem auto 2.2rem; max-width: 46ch; line-height: 1.6; }
.hd-steps { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 0.9rem; }
.hd-steps li { display: flex; gap: 0.9rem; align-items: flex-start; background: #fff; border: 1px solid var(--line);
    border-radius: 14px; padding: 1rem 1.15rem; }
.hd-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
    border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.8rem; font-weight: 800; }
.hd-steps strong { display: block; font-size: 0.95rem; margin-bottom: 0.15rem; }
.hd-steps p { color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.hd-actions { margin-top: 2rem; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
/* colour explicitly: this CTA is an <a>, and `.hs a { color: inherit }` outranks .hs-submit's white,
   so the label came out dark-on-dark and was practically unreadable. */
.hs a.hd-cta { width: auto; margin: 0; padding: 0.9rem 2rem; text-decoration: none; color: #fff; }
.hd-secondary { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.hd-secondary:hover { color: var(--ink); }

@media (max-width: 860px) {
    .hi-cards { grid-template-columns: 1fr; }
}
