﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --white: #FFFFFF;
    --off: #F7F8FC;
    --off2: #EEF0F7;
    --ink: #0A0E1A;
    --body: #4A5270;
    --muted: #8892AA;
    --border: #E2E6F0;
    --border2: #CDD3E5;
    --blue: #2563EB;
    --blue2: #1D4ED8;
    --blue-lt: #EEF3FD;
    --green: #059669;
    --green-lt: #D1FAE5;
    --green2: #047857;
    --amber: #F59E0B;
    --amber-lt: #FEF3C7;
    --amber-dk: #92400E;
    --red: #DC2626;
    --red-lt: #FEE2E2;
    --orange: #EA580C;
    --shadow-sm: 0 1px 3px rgba(10,14,26,.06);
    --shadow: 0 4px 16px rgba(10,14,26,.08);
    --font-h: 'Fraunces',serif;
    --font-b: 'Plus Jakarta Sans',sans-serif
}

body {
    font-family: var(--font-b);
    background: var(--off);
    color: var(--ink);
    min-height: 100vh
}

/* ── ZERO RESULT BANNER ───────────────────────────────────── */
.no-results-banner {
    background: linear-gradient(135deg,#0A0E1A,#0f2548);
    padding: 2rem;
    text-align: center;
    color: rgba(255,255,255,.9)
}

.nrb-icon {
    font-size: 2.5rem;
    margin-bottom: .75rem
}

.nrb-title {
    font-family: var(--font-h);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: .4rem
}

.nrb-sub {
    font-size: .9rem;
    color: rgba(255,255,255,.55);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7
}

.nrb-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    padding: .35rem .9rem;
    font-size: .78rem;
    color: rgba(255,255,255,.7);
    margin-top: .85rem
}

/* ── LAYOUT ───────────────────────────────────────────────── */
.page {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem
}

/* ── HOW IT WORKS STRIP ───────────────────────────────────── */
.how-strip {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: .75rem;
    margin-bottom: 2rem
}

.hs-item {
    background: var(--white);
    border-radius: 12px;
    padding: .85rem .75rem;
    text-align: center;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm)
}

.hs-icon {
    font-size: 1.35rem;
    margin-bottom: .4rem
}

.hs-title {
    font-size: .78rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .2rem
}

.hs-sub {
    font-size: .68rem;
    color: var(--muted);
    line-height: 1.5
}

/* ── FORM CARD ────────────────────────────────────────────── */
.form-card {
    background: var(--white);
    border-radius: 18px;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 1.25rem
}

.fc-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--off)
}

.fc-title {
    font-family: var(--font-h);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink)
}

.fc-sub {
    font-size: .82rem;
    color: var(--muted);
    margin-top: .2rem
}

.fc-body {
    padding: 1.4rem 1.5rem
}

/* ── FORM ELEMENTS ────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.1rem
}

.form-label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--ink);
    display: block;
    margin-bottom: .4rem
}

    .form-label .req {
        color: var(--red)
    }

.form-input, .form-select, .form-textarea {
    font-family: var(--font-b);
    font-size: .9rem;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--border2);
    border-radius: 10px;
    padding: .65rem .9rem;
    outline: none;
    transition: all .2s;
    width: 100%;
    appearance: none
}

    .form-input:focus, .form-select:focus, .form-textarea:focus {
        border-color: var(--blue);
        box-shadow: 0 0 0 3px rgba(37,99,235,.09)
    }

.form-textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.65
}

.char-count {
    font-size: .72rem;
    color: var(--muted);
    text-align: right;
    margin-top: .25rem
}

/* Option chips */
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .35rem
}

.opt-chip {
    border: 1.5px solid var(--border2);
    border-radius: 9px;
    padding: .5rem .9rem;
    cursor: pointer;
    transition: all .18s;
    font-size: .82rem;
    font-weight: 600;
    color: var(--body);
    background: var(--white);
    user-select: none
}

    .opt-chip:hover {
        border-color: var(--blue);
        background: var(--blue-lt);
        color: var(--blue)
    }

    .opt-chip.selected {
        border-color: var(--blue);
        background: var(--blue-lt);
        color: var(--blue);
        font-weight: 700
    }

    .opt-chip.selected-green {
        border-color: var(--green);
        background: var(--green-lt);
        color: var(--green)
    }

    .opt-chip.selected-amber {
        border-color: var(--amber);
        background: var(--amber-lt);
        color: var(--amber-dk)
    }

    .opt-chip.selected-red {
        border-color: var(--red);
        background: var(--red-lt);
        color: var(--red)
    }

/* Urgency selector */
.urgency-list {
    display: flex;
    flex-direction: column;
    gap: .4rem
}

.urgency-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1rem;
    border-radius: 11px;
    border: 1.5px solid var(--border2);
    background: var(--white);
    cursor: pointer;
    transition: all .2s
}

    .urgency-row:hover {
        border-color: var(--blue);
        background: var(--blue-lt)
    }

    .urgency-row.selected {
        border-color: var(--blue);
        background: var(--blue-lt)
    }

    .urgency-row.selected-amber {
        border-color: var(--amber);
        background: var(--amber-lt)
    }

    .urgency-row.selected-red {
        border-color: var(--red);
        background: var(--red-lt)
    }

.ur-left {
    display: flex;
    align-items: center;
    gap: .65rem
}

.ur-icon {
    font-size: 1.1rem;
    width: 28px
}

.ur-title {
    font-size: .88rem;
    font-weight: 700;
    color: var(--ink)
}

.ur-sub {
    font-size: .73rem;
    color: var(--muted);
    margin-top: .1rem
}

.ur-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    flex-shrink: 0
}

    .ur-radio.active {
        border-color: var(--blue);
        background: var(--blue)
    }

        .ur-radio.active::after {
            content: '';
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #fff
        }

/* ── SUBMIT BUTTON ────────────────────────────────────────── */
.btn-submit {
    width: 100%;
    font-family: var(--font-b);
    font-size: .95rem;
    font-weight: 800;
    color: #fff;
    background: var(--blue);
    border: none;
    border-radius: 12px;
    padding: .95rem 0;
    cursor: pointer;
    transition: all .22s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: .5rem
}

    .btn-submit:hover {
        background: var(--blue2);
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(37,99,235,.3)
    }

    .btn-submit:disabled {
        opacity: .6;
        cursor: not-allowed;
        transform: none
    }

.btn-cancel-link {
    display: block;
    text-align: center;
    margin-top: .85rem;
    font-size: .84rem;
    color: var(--muted);
    text-decoration: none;
    cursor: pointer
}

    .btn-cancel-link:hover {
        color: var(--ink)
    }

/* ── ESCROW TRUST BAR ─────────────────────────────────────── */
.trust-bar {
    background: var(--blue-lt);
    border: 1.5px solid rgba(37,99,235,.15);
    border-radius: 12px;
    padding: .9rem 1.1rem;
    margin-bottom: 1.25rem;
    display: flex;
    gap: .75rem;
    align-items: flex-start
}

.tb-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: .05rem
}

.tb-title {
    font-size: .83rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .2rem
}

.tb-body {
    font-size: .78rem;
    color: var(--body);
    line-height: 1.65
}

/* ── ERROR ALERT ──────────────────────────────────────────── */
.error-alert {
    background: var(--red-lt);
    border: 1.5px solid rgba(220,38,38,.2);
    border-radius: 10px;
    padding: .85rem 1rem;
    margin-bottom: 1.1rem;
    font-size: .84rem;
    color: var(--red);
    display: flex;
    gap: .5rem;
    align-items: flex-start
}

/* ── CONFIRMATION PANEL ───────────────────────────────────── */
.confirm-card {
    background: var(--white);
    border-radius: 18px;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow);
    padding: 2.5rem 2rem;
    text-align: center
}

.cc-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block
}

.cc-title {
    font-family: var(--font-h);
    font-size: 1.5rem;
    color: var(--ink);
    margin-bottom: .5rem
}

.cc-sub {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 380px;
    margin: 0 auto 1.5rem
}

.cc-details {
    background: var(--off);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left
}

.ccd-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .45rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .84rem
}

    .ccd-row:last-child {
        border-bottom: none
    }

.ccd-label {
    color: var(--muted);
    font-weight: 500
}

.ccd-val {
    font-weight: 700;
    color: var(--ink)
}

.timeline-steps {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-bottom: 1.75rem;
    text-align: left
}

.ts-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem
}

.ts-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 800
}

.ts-dot-pending {
    background: var(--blue-lt);
    color: var(--blue)
}

.ts-dot-done {
    background: var(--green-lt);
    color: var(--green)
}

.ts-title {
    font-size: .86rem;
    font-weight: 700;
    color: var(--ink)
}

.ts-sub {
    font-size: .74rem;
    color: var(--muted);
    margin-top: .1rem
}

.btn-view-bids {
    display: inline-block;
    font-family: var(--font-b);
    font-size: .9rem;
    font-weight: 800;
    color: #fff;
    background: var(--green);
    border-radius: 11px;
    padding: .8rem 2rem;
    text-decoration: none;
    transition: all .2s
}

    .btn-view-bids:hover {
        background: var(--green2);
        transform: translateY(-1px)
    }

.btn-home-link {
    display: block;
    margin-top: .75rem;
    font-size: .84rem;
    color: var(--muted);
    text-decoration: none
}

    .btn-home-link:hover {
        color: var(--blue)
    }

/* Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite
}

@media(max-width:600px) {
    .page {
        padding: 1.25rem 1rem 3rem
    }

    .how-strip {
        grid-template-columns: 1fr 1fr
    }

    .nrb-title {
        font-size: 1.2rem
    }
}
/* ── INLINE AUTH MODAL ──────────────────────────────────────────── */
.sr-auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(10,14,26,.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    padding: 1rem;
}

.sr-auth-box {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 64px rgba(10,14,26,.18);
    position: relative;
    animation: srAuthIn .3s cubic-bezier(.34,1.2,.64,1) both;
}

@keyframes srAuthIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.sr-auth-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
    padding: .2rem .4rem;
}

    .sr-auth-close:hover {
        color: var(--ink);
    }

.sr-auth-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.25rem;
    background: var(--off);
    border-radius: 10px;
    padding: .25rem;
}

.sr-tab {
    flex: 1;
    background: none;
    border: none;
    border-radius: 8px;
    padding: .5rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all .15s;
}

    .sr-tab.active {
        background: #fff;
        color: var(--ink);
        box-shadow: 0 1px 4px rgba(10,14,26,.1);
    }

.sr-auth-headline {
    font-family: var(--font-h, 'Fraunces', serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .35rem;
}

.sr-auth-sub {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.sr-auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: .6rem .85rem;
    font-size: .83rem;
    color: var(--red);
    margin-bottom: 1rem;
}

.sr-fg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
}

.sr-fg {
    margin-bottom: .85rem;
}

.sr-fl {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .3rem;
}

.sr-fi {
    width: 100%;
    padding: .6rem .85rem;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-size: .9rem;
    color: var(--ink);
    outline: none;
    box-sizing: border-box;
    transition: border-color .15s;
}

    .sr-fi:focus {
        border-color: var(--blue);
    }

.sr-auth-submit {
    width: 100%;
    padding: .75rem;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, opacity .15s;
    margin-top: .25rem;
}

    .sr-auth-submit:hover {
        background: #1d4ed8;
    }

    .sr-auth-submit:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

.sr-auth-legal {
    font-size: .73rem;
    color: var(--muted);
    text-align: center;
    margin-top: .85rem;
    line-height: 1.5;
}

    .sr-auth-legal a {
        color: var(--blue);
        text-decoration: none;
    }
/* ── SERVICE TYPE TOGGLE ──────────────────────────────────── */
.svc-type-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}

.svc-type-card {
    border: 1.5px solid #CDD3E5;
    border-radius: 14px;
    padding: 1rem .75rem;
    text-align: center;
    cursor: pointer;
    transition: all .18s;
    background: #FFFFFF;
    user-select: none;
}

    .svc-type-card:hover {
        border-color: #2563EB;
        background: #EEF3FD;
    }

    .svc-type-card.active {
        border-color: #2563EB;
        background: #EEF3FD;
        box-shadow: 0 0 0 3px rgba(37,99,235,.09);
    }

.stc-icon {
    font-size: 1.5rem;
    margin-bottom: .4rem;
}

.stc-title {
    font-size: .88rem;
    font-weight: 800;
    color: #0A0E1A;
    margin-bottom: .2rem;
}

.svc-type-card.active .stc-title {
    color: #2563EB;
}

.stc-sub {
    font-size: .72rem;
    color: #8892AA;
    line-height: 1.4;
}

/* ── TWO-COLUMN FORM ROW ──────────────────────────────────── */
.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem;
}

/* ── OPTIONAL LABEL SUFFIX ────────────────────────────────── */
.fc-opt {
    font-size: .72rem;
    font-weight: 500;
    color: #8892AA;
    margin-left: .35rem;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 560px) {
    .svc-type-row     { grid-template-columns: 1fr; }
    .form-group-row   { grid-template-columns: 1fr; }
}
