/* ================================================================
   Strawberrylace — Services-first discovery form
   ================================================================ */
:root {
    --sl-pink:   #F5728C;
    --sl-green:  #5AE98B;
    --sl-ink:    #0F0F10;
    --sl-paper:  #FAFAFA;
    --sl-line:   rgba(15, 15, 16, 0.08);
    --sl-muted:  #6B6B6F;
}

.sd-page {
    background: var(--sl-paper);
    font-family: 'Neue Montreal', 'Inter Tight', system-ui, sans-serif;
    color: var(--sl-ink);
    min-height: 100vh;
    padding-top: var(--header-offset, 88px);
    display: flex;
    flex-direction: column;
}

.sd-progress {
    position: fixed;
    top: var(--header-offset, 88px);
    left: 0; right: 0;
    height: 3px;
    background: rgba(15,15,16,0.06);
    z-index: 50;
}
.sd-progress__fill {
    height: 100%;
    background: var(--sl-pink);
    width: 0;
    transition: width .5s cubic-bezier(.2,.7,.2,1);
}

.sd-wrap {
    flex: 1;
    display: grid;
    place-items: center;
    padding: clamp(48px, 8vw, 120px) clamp(24px, 6vw, 80px);
    width: 100%;
}

.sd-step {
    width: 100%;
    max-width: 760px;
    display: none;
    animation: sdFade .45s cubic-bezier(.2,.7,.2,1);
}
.sd-step.is-active { display: block; }
@keyframes sdFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sd-num {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sl-pink);
    margin: 0 0 18px;
}

.sd-q {
    font-size: clamp(28px, 4.2vw, 52px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 14px;
}
.sd-q em {
    font-style: normal;
    color: var(--sl-pink);
    font-weight: 400;
    padding: 0 .04em;
}

.sd-hint {
    font-size: 15px;
    color: var(--sl-muted);
    line-height: 1.5;
    margin: 0 0 32px;
    max-width: 52ch;
}

/* ---------- Inputs ---------- */
.sd-input {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(15,15,16,0.14);
    outline: none;
    font-family: inherit;
    font-size: clamp(20px, 2.4vw, 28px);
    color: var(--sl-ink);
    padding: 12px 0;
    transition: border-color .2s ease;
}
.sd-input:focus { border-color: var(--sl-pink); }
.sd-input::placeholder { color: rgba(15,15,16,0.28); }
textarea.sd-input {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
    font-size: 19px;
}

/* ---------- Service chips (multi-select) ---------- */
.sd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}
.sd-chip {
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1.5px solid var(--sl-line);
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    transition: all .18s ease;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    color: var(--sl-ink);
}
.sd-chip:hover { border-color: rgba(245,114,140,0.4); }
.sd-chip.is-on {
    background: var(--sl-ink);
    color: #fff;
    border-color: var(--sl-ink);
}
.sd-chip.is-on::before {
    content: "✓";
    color: var(--sl-green);
    font-weight: bold;
    font-size: 12px;
}

/* ---------- Option cards ---------- */
.sd-options {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .sd-options--2 { grid-template-columns: repeat(2, 1fr); }
    .sd-options--3 { grid-template-columns: repeat(3, 1fr); }
}
.sd-option {
    cursor: pointer;
    padding: 22px 24px;
    border-radius: 14px;
    border: 1.5px solid var(--sl-line);
    background: #fff;
    transition: all .18s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-family: inherit;
    text-align: left;
    color: var(--sl-ink);
}
.sd-option:hover { border-color: rgba(245,114,140,0.4); transform: translateY(-1px); }
.sd-option.is-on {
    border-color: var(--sl-pink);
    background: rgba(245,114,140,0.06);
}
.sd-option__lbl { font-size: 16px; font-weight: 500; display: block; margin-bottom: 4px; }
.sd-option__sub { font-size: 13px; color: var(--sl-muted); display: block; }
.sd-option__price {
    font-size: 20px;
    font-weight: 500;
    color: var(--sl-green);
    white-space: nowrap;
    letter-spacing: -0.02em;
}
.sd-option.is-on .sd-option__price { color: var(--sl-pink); }

/* ---------- Buttons ---------- */
.sd-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.sd-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: var(--sl-ink);
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.sd-btn:hover { background: var(--sl-pink); transform: translateX(2px); }
.sd-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; background: var(--sl-ink); }

.sd-btn--ghost {
    background: transparent;
    color: var(--sl-muted);
    border: 1px solid transparent;
    padding: 10px 14px;
}
.sd-btn--ghost:hover { color: var(--sl-ink); background: rgba(15,15,16,0.04); transform: none; }
.sd-hint-key {
    font-size: 12px;
    color: var(--sl-muted);
}
.sd-hint-key kbd {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--sl-line);
    border-radius: 4px;
    font-family: inherit;
    font-size: 11px;
    margin-right: 4px;
    background: #fff;
}

.sd-err {
    font-size: 14px;
    color: #D3344D;
    min-height: 20px;
    margin-top: 8px;
    display: none;
}
.sd-err.is-on { display: block; }

/* ---------- Review ---------- */
.sd-review {
    background: #fff;
    border: 1px solid var(--sl-line);
    border-radius: 18px;
    padding: 12px 28px;
    margin-bottom: 20px;
}
.sd-review__row {
    padding: 18px 0;
    border-bottom: 1px solid var(--sl-line);
}
.sd-review__row:last-child { border-bottom: none; }
.sd-review__lbl {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sl-muted);
    margin-bottom: 6px;
}
.sd-review__val {
    font-size: 16px;
    line-height: 1.5;
    color: var(--sl-ink);
}
.sd-review__chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.sd-review__chip {
    padding: 4px 11px;
    background: rgba(245,114,140,0.1);
    color: var(--sl-pink);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

/* ---------- Success ---------- */
.sd-done {
    text-align: left;
}
.sd-done__tick {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--sl-green);
    display: grid;
    place-items: center;
    margin-bottom: 24px;
}
.sd-done h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    line-height: 1.05;
}
.sd-done p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--sl-muted);
    margin: 0 0 24px;
    max-width: 50ch;
}
.sd-done a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sl-ink);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid var(--sl-green);
    padding-bottom: 2px;
}

/* ---------- Step nav (up/down arrows) ---------- */
.sd-nav {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 60;
}
.sd-nav button {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--sl-line);
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
    display: grid; place-items: center;
    color: var(--sl-ink);
}
.sd-nav button:hover { border-color: var(--sl-pink); color: var(--sl-pink); }
.sd-nav button:disabled { opacity: .3; cursor: default; color: var(--sl-muted); border-color: var(--sl-line); }

.sd-spin {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sdSpin .7s linear infinite;
}
@keyframes sdSpin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
    .sd-nav { bottom: 16px; right: 16px; }
}
