:root {
    --gold: #d4af37; --white: #ffffff; --black: #1a1a1a; --bg-light: #f9f9f9;
    --border: rgba(255,255,255,0.15);

    /* PLACEHOLDER IMAGE — not applied yet (see wizard-image / quote-item-thumb
       below); swap in once real photography replaces the solid-black boxes. */
    --img-wizard: url('https://picsum.photos/seed/dl-wizard/900/900');
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0; min-height: 100%; font-family: 'Montserrat', sans-serif;
    background: var(--black); color: var(--white);
}

.back-link {
    display: inline-block; margin: 20px 5%; color: var(--gold);
    text-decoration: none; font-weight: 600; font-size: 14px;
}
.back-link:hover { text-decoration: underline; }

.wizard {
    display: flex; flex-wrap: wrap; gap: 40px;
    max-width: 1200px; margin: 0 auto; padding: 0 5% 80px;
}

/* Visual / quote-list column */
.wizard-visual, .quote-list { flex: 1 1 340px; min-width: 0; }
.wizard-kicker {
    color: var(--gold); text-transform: uppercase; letter-spacing: 2px;
    font-weight: 700; font-size: 13px; margin: 0 0 8px;
}
.wizard-visual h1, .quote-list h1 { margin: 0 0 8px; font-size: 36px; }
.wizard-sub { color: rgba(255,255,255,0.6); margin: 0 0 24px; }

.wizard-image {
    width: 100%; aspect-ratio: 1 / 1; border-radius: 4px;
    background-color: #2a2a2a; border: 1px solid var(--border);
}

/* Form / panel column */
.wizard-panel { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.wizard-step {
    border: 1px solid var(--border); border-radius: 4px; padding: 16px 20px; margin: 0;
}
.wizard-step legend {
    padding: 0 6px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; font-size: 13px; color: var(--gold);
}

/* Steps use <details>/<summary> so only one can be open at a time (native
   browser behavior via the shared name="wizard-accordion" attribute) — no JS. */
details.wizard-step { padding: 0; overflow: hidden; }
details.wizard-step summary {
    margin: 0; padding: 16px 20px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; font-size: 13px; color: var(--gold);
    cursor: pointer; list-style: none; user-select: none;
    display: flex; justify-content: space-between; align-items: center;
}
details.wizard-step summary::-webkit-details-marker { display: none; }
details.wizard-step summary::after {
    content: ""; width: 8px; height: 8px; flex-shrink: 0; margin-left: 12px;
    border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
    transform: rotate(45deg); transition: transform 0.2s;
}
details.wizard-step[open] summary::after { transform: rotate(-135deg); }
.wizard-step-body { padding: 0 20px 16px; }

.wizard-option {
    display: flex; align-items: center; gap: 12px; padding: 10px 8px;
    border-radius: 4px; cursor: pointer;
}
.wizard-option:hover { background: rgba(255,255,255,0.06); }
.wizard-option:has(input:checked) { background: rgba(212,175,55,0.12); }
.wizard-option input { accent-color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; }
.wizard-option-label { flex: 1; }
.wizard-option-price { color: rgba(255,255,255,0.6); font-variant-numeric: tabular-nums; }
.wizard-option:has(input:checked) .wizard-option-price { color: var(--gold); }

.wizard-dims { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; }
.wizard-dims label {
    display: flex; flex-direction: column; gap: 6px; font-size: 13px;
    color: rgba(255,255,255,0.7); flex: 1 1 100px;
}
.wizard-dims input, .wizard-text, #quantity {
    background: #242424; border: 1px solid var(--border); color: var(--white);
    padding: 10px 12px; border-radius: 4px; font-family: inherit; font-size: 15px; width: 100%;
}
.wizard-text { margin-top: 4px; }

.wizard-totals {
    border: 1px solid var(--border); border-radius: 4px; padding: 16px 20px;
    display: flex; flex-direction: column; gap: 8px;
}
.wizard-totals div, .grand { display: flex; justify-content: space-between; align-items: baseline; }
.wizard-totals strong { font-variant-numeric: tabular-nums; }
.wizard-totals .grand { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; font-size: 18px; }
.wizard-totals .grand strong { color: var(--gold); }
#rolling-total, #quote-grand { color: var(--gold); font-size: 18px; }

.wizard-note {
    margin: 0; padding: 10px 14px; border-radius: 4px;
    background: rgba(212,175,55,0.12); color: var(--gold); font-size: 14px;
}

.wizard-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.wizard-actions .btn { grid-column: 1 / -1; }

/* Reset native <button> form-control chrome so it renders identically to an
   <a> — browsers don't inherit font/appearance into buttons by default. */
.btn, .btn-secondary {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    outline: none; box-shadow: none; box-sizing: border-box;

    padding: 14px 28px; border: none; cursor: pointer; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px; font: inherit;
    font-size: 14px; line-height: 1; transition: 0.3s; border-radius: 999px;
    text-align: center; text-decoration: none; display: inline-block;
}
.btn { background: var(--white); color: var(--black); }
.btn:hover, .btn:focus-visible { background: var(--gold); }
.btn-secondary { background: transparent; color: var(--white); border: 1px solid var(--border); }
.btn-secondary:hover, .btn-secondary:focus-visible { border-color: var(--gold); color: var(--gold); }

/* Quote review list */
.empty-msg { color: rgba(255,255,255,0.6); }
.empty-msg a { color: var(--gold); }

.quote-item {
    display: flex; gap: 16px; border: 1px solid var(--border); border-radius: 4px;
    padding: 14px; margin-bottom: 14px;
}
.quote-item-thumb {
    width: 84px; height: 84px; border-radius: 4px; flex-shrink: 0;
    background-color: #2a2a2a; border: 1px solid var(--border);
}
.quote-item-body { flex: 1; min-width: 0; }
.quote-item-body h4 { margin: 0 0 6px; }
.quote-item-body p { margin: 0; font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.5; }
.quote-item-body .quote-item-subtotal { margin-top: 8px; font-weight: 700; color: var(--gold); }
.quote-item-remove {
    background: none; border: none; color: rgba(255,255,255,0.5); cursor: pointer;
    font-size: 13px; text-decoration: underline; align-self: flex-start; padding: 0;
}
.quote-item-remove:hover { color: var(--gold); }

.agree-check {
    display: flex; align-items: flex-start; gap: 10px; font-size: 14px;
    color: rgba(255,255,255,0.8); cursor: pointer;
}
.agree-check input { accent-color: var(--gold); margin-top: 3px; flex-shrink: 0; }

@media (max-width: 640px) {
    .wizard { flex-direction: column; padding-bottom: 60px; }
    .wizard-visual h1, .quote-list h1 { font-size: 28px; }
    .wizard-actions { grid-template-columns: 1fr; }
}
