/* ChopFast sign-up: the ChopFast look from the homepage (navy panel with a kitchen photo, Plus Jakarta Sans headings,
   Inter text, rounded 12px controls) with the form on a clean white side. */
:root {
    --navy: #051D40;
    --navy-2: #0B2A57;
    --blue: #145DA0;
    --blue-600: #0E4C86;
    --sky: #3B82C4;
    --ice: #9FD1FF;
    --soft: #F4F7FB;
    --border: #E2E8F0;
    --text: #121826;
    --muted: #5D6B7E;
    --danger: #b91c1c;
    --danger-bg: #fee2e2;
    --ok: #15803D;
    --ok-bg: #E8F6EE;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    min-height: 100vh;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
h1, h2 { font-family: "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.02em; }

.su-page { display: grid; grid-template-columns: minmax(380px, 44%) 1fr; min-height: 100vh; }

/* ---- Left: navy panel */
.su-side {
    position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; color: #fff;
    padding: 28px clamp(28px, 4vw, 56px);
    background:
        linear-gradient(160deg, rgba(5, 29, 64, .96) 0%, rgba(5, 29, 64, .9) 45%, rgba(11, 42, 87, .78) 100%),
        url("../assets/landing/chef-tablet.jpg") center / cover no-repeat, var(--navy);
}
.su-side-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.su-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.su-brand img { width: 38px; height: 38px; border-radius: 50%; background: #fff; }
.su-brand span { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.su-login { display: none; }
.su-side-body { margin: auto 0; padding: 40px 0; max-width: 440px; }
.su-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--ice); font-size: 13px; font-weight: 700; }
.su-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.su-side h2 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.12; font-weight: 800; margin: 0 0 30px; }

.su-track { list-style: none; margin: 0 0 30px; padding: 0; }
.su-track li { position: relative; display: flex; gap: 14px; padding-bottom: 22px; color: rgba(255, 255, 255, .6); }
.su-track li:last-child { padding-bottom: 0; }
.su-track li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px; width: 2px; background: rgba(255, 255, 255, .16); }
.su-track li.done:not(:last-child)::after { background: var(--sky); }
.su-num {
    flex: 0 0 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px;
    border: 2px solid rgba(255, 255, 255, .28); color: rgba(255, 255, 255, .75);
}
.su-track li.now { color: #fff; }
.su-track li.now .su-num { background: #fff; border-color: #fff; color: var(--navy); box-shadow: 0 0 0 5px rgba(159, 209, 255, .22); }
.su-track li.done { color: rgba(255, 255, 255, .85); }
.su-track li.done .su-num { background: var(--sky); border-color: var(--sky); color: #fff; }
.su-tl { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.su-tl b { font-size: 16px; font-weight: 700; }
.su-tl small { font-size: 13.5px; opacity: .8; }

.su-perks { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 10px; font-size: 14.5px; color: rgba(255, 255, 255, .86); }
.su-perks li { display: flex; gap: 10px; align-items: flex-start; }
.su-perks span { flex: 0 0 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: rgba(159, 209, 255, .16); color: var(--ice); }
.su-perks svg { width: 12px; height: 12px; }
.su-side-foot { margin: 0; display: flex; gap: 18px; font-size: 13px; }
.su-side-foot a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.su-side-foot a:hover { color: #fff; }

/* ---- Right: the form */
.su-main { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(20px, 6vw, 88px); background: #fff; }
.su-form { width: 100%; max-width: 480px; }
.su-kicker { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--blue); }
.su-form h1 { font-size: 30px; line-height: 1.15; font-weight: 800; color: var(--navy); margin: 0 0 8px; }
.su-sub { margin: 0 0 28px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }

.su-field { margin-bottom: 18px; }
.su-field > label:not(.su-check) { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.su-input, .su-select {
    width: 100%; height: 50px; border: 1.5px solid var(--border); border-radius: 12px; padding: 0 15px;
    font: inherit; font-size: 16px; color: var(--text); background: var(--soft); outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.su-select { appearance: none; -webkit-appearance: none; padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235D6B7E' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 15px center; }
.su-input:hover, .su-select:hover { border-color: #CBD5E1; }
.su-input:focus, .su-select:focus { border-color: var(--blue); background-color: #fff; box-shadow: 0 0 0 4px rgba(20, 93, 160, .12); }
.su-input::placeholder { color: #94A3B8; }
.su-row { display: flex; gap: 14px; }
.su-row > * { flex: 1; min-width: 0; }
.su-phone { display: flex; gap: 10px; }
.su-phone .su-select { flex: 0 0 124px; }

.su-where { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 22px; border-radius: 12px; background: var(--soft); border: 1.5px solid var(--border); }
.su-pin { flex: 0 0 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--blue); }
.su-where-t { flex: 1; min-width: 0; font-weight: 600; font-size: 14.5px; line-height: 1.35; overflow-wrap: anywhere; }
.su-where-t small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.su-link { background: none; border: 0; padding: 6px; color: var(--blue); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }

.su-check { display: flex; align-items: center; gap: 9px; margin-top: 11px; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.su-check input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }
.su-note { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; line-height: 1.45; }
.su-note.info { background: #EAF2FB; color: var(--navy); padding: 10px 12px; border-radius: 10px; }
.su-terms { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 16px 0 0; }
.su-terms a, .su-small a { color: var(--blue); text-decoration: none; font-weight: 600; }

.su-actions { display: flex; gap: 12px; margin-top: 26px; }
.su-actions .su-btn { flex: 1; }
.su-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 22px;
    border: 0; border-radius: 12px; background: var(--blue); color: #fff; text-decoration: none;
    font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
    box-shadow: 0 10px 26px -8px rgba(20, 93, 160, .7); transition: background .15s, transform .15s, box-shadow .15s;
}
.su-field + .su-btn, .su-where + .su-btn { margin-top: 8px; }
.su-btn:hover { background: var(--blue-600); transform: translateY(-1px); }
.su-btn:active { transform: scale(.98); }
.su-btn:disabled { background: #B7C6D8; box-shadow: none; transform: none; cursor: not-allowed; }
.su-back {
    flex: 0 0 auto; min-height: 52px; padding: 0 22px; border-radius: 12px; border: 1.5px solid #CBD5E1; background: #fff;
    color: var(--text); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
}
.su-back:hover { border-color: var(--navy); }
.su-error { background: var(--danger-bg); color: var(--danger); border-radius: 12px; padding: 11px 14px; font-size: 14.5px; margin-bottom: 18px; }
.su-pw { position: relative; }
.su-pw .su-input { padding-right: 52px; }
.su-eye { position: absolute; right: 5px; top: 5px; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; border-radius: 8px; }
.su-rules { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.su-rules li { padding: 5px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); border: 1px solid var(--border); }
.su-rules li.ok { background: var(--ok-bg); color: var(--ok); border-color: #BFE5CD; }
.su-rules li.ok::before { content: "✓ "; font-weight: 700; }
.su-small { font-size: 14px; color: var(--muted); margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--border); }
.su-done .tick { width: 60px; height: 60px; border-radius: 16px; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 0 20px; }
.su-done .tick svg { width: 30px; height: 30px; }

/* Log in link, top right of the form side on wide screens (in the navy header on phones) */
.su-main { position: relative; }
.su-main-top { position: absolute; top: 26px; right: clamp(20px, 4vw, 48px); margin: 0; font-size: 14px; color: var(--muted); }
.su-main-top a {
    display: inline-block; margin-left: 8px; padding: 9px 16px; border-radius: 10px; border: 1.5px solid var(--border);
    color: var(--navy); font-weight: 700; text-decoration: none;
}
.su-main-top a:hover { border-color: var(--navy); }

/* ---- Tablets and phones: the navy panel becomes a short header with the three steps across */
@media (max-width: 900px) {
    .su-page { display: block; }
    .su-side { position: static; height: auto; padding: 16px 16px 18px; }
    .su-side-body { margin: 0; padding: 18px 0 0; max-width: none; }
    .su-eyebrow, .su-side h2, .su-perks, .su-side-foot { display: none; }
    .su-login { display: inline-block; color: #fff; text-decoration: none; font-size: 14px; white-space: nowrap; }
    .su-login .long { opacity: .75; }
    .su-login strong { font-weight: 700; }
    .su-track { display: flex; gap: 6px; margin: 0; }
    .su-track li { flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0; }
    .su-track li:not(:last-child)::after { display: none; }
    .su-num { flex: 0 0 auto; width: 100%; height: 5px; border-radius: 5px; border: 0; background: rgba(255, 255, 255, .2); font-size: 0; }
    .su-num svg { display: none; }
    .su-track li.now .su-num, .su-track li.done .su-num { background: var(--ice); box-shadow: none; }
    .su-tl b { font-size: 12.5px; }
    .su-tl small { display: none; }
    .su-main { padding: 28px 16px 40px; justify-content: flex-start; }
    .su-main-top { display: none; }
    .su-form { margin: 0 auto; }
}
@media (max-width: 480px) {
    .su-brand img { width: 34px; height: 34px; }
    .su-brand span { font-size: 19px; }
    .su-login .long { display: none; }
    .su-form h1 { font-size: 25px; }
    .su-sub { margin-bottom: 22px; font-size: 15px; }
    .su-phone .su-select { flex-basis: 118px; padding: 0 30px 0 12px; background-position: right 10px center; }
    .su-back { padding: 0 16px; }
}

/* v17: what kind of business */
.su-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 4px 0 24px; }
.su-type { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff;
    font: inherit; font-size: 14px; font-weight: 600; color: var(--text); text-align: left; cursor: pointer; text-decoration: none; }
.su-type .i { font-size: 20px; }
.su-type:hover { border-color: var(--sky); }
.su-type.on { border-color: var(--blue); background: #EEF5FC; box-shadow: inset 0 0 0 1px var(--blue); }
.su-h2 { font-size: 20px; margin: 0 0 8px; }

/* v18.8: ChopFast logo splash before the sign-up form */
#cf-splash { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: #000; transition: opacity .4s ease; cursor: pointer; }
#cf-splash img { width: min(280px, 64vw); height: auto; animation: cf-pop 1.1s cubic-bezier(.2,.8,.2,1) both; }
#cf-splash.out { opacity: 0; pointer-events: none; }
html.cf-splashing body { overflow: hidden; }
@keyframes cf-pop { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { #cf-splash img { animation: none; } #cf-splash { transition: none; } }
