/* ===========================================================
   Photocopy Kiosk — visual identity
   Palette: charcoal print-shop dark + toner-orange accent
   ----------------------------------------------------------
   --bg        #14161A   page background (matte charcoal)
   --surface   #1E2128   cards / panels
   --surface-2 #262A33   inputs, hover states
   --line      #323742   hairline borders
   --ink       #F2F1ED   primary text (paper white)
   --ink-dim   #9098A6   secondary text
   --accent    #FF7A30   toner orange — the one signature color
   --accent-ink #1A0E04  text on accent surfaces
   --good      #3DDC84   success state
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: #14161A;
    color: #F2F1ED;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px 48px;
}

.wrap { width: 100%; max-width: 420px; }

/* ---------- Header ---------- */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}
.brand-mark {
    width: 38px; height: 38px;
    border-radius: 9px;
    background: #FF7A30;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -0.01em;
}
.brand-sub { font-size: 12px; color: #9098A6; margin-top: -2px; }

/* ---------- Stepper (signature element: page-feed tracker) ---------- */
.stepper {
    display: flex;
    align-items: center;
    margin-bottom: 26px;
}
.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}
.step-sheet {
    width: 28px; height: 34px;
    border-radius: 3px 3px 6px 6px;
    background: #262A33;
    border: 1.5px solid #323742;
    transition: all .25s ease;
}
.step.active .step-sheet,
.step.done .step-sheet {
    background: #FF7A30;
    border-color: #FF7A30;
}
.step-label { font-size: 11px; color: #9098A6; font-weight: 500; }
.step.active .step-label, .step.done .step-label { color: #F2F1ED; }
.step-track {
    flex: 0 0 28px;
    height: 2px;
    background: #323742;
    margin: 0 -2px 20px;
}
.step-track.filled { background: #FF7A30; }

/* ---------- Cards ---------- */
.card {
    background: #1E2128;
    border: 1px solid #323742;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 14px;
}
.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 14px;
}

/* ---------- Upload slot ---------- */
.dropzone {
    border: 1.5px dashed #3A3F4A;
    border-radius: 12px;
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.dropzone:active, .dropzone.drag {
    border-color: #FF7A30;
    background: rgba(255,122,48,0.06);
}
.dropzone svg { width: 30px; height: 30px; color: #9098A6; margin-bottom: 8px; }
.dropzone p { margin: 0; font-size: 13px; color: #9098A6; }
.dropzone .file-chip {
    display: none;
    align-items: center; justify-content: center; gap: 8px;
    font-size: 14px; color: #F2F1ED; font-weight: 500;
}
.dropzone .file-chip.show { display: flex; }
.dropzone .hint.show-hidden { display: none; }
input[type="file"] { display: none; }

/* ---------- Form controls ---------- */
.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-size: 13px;
    color: #9098A6;
    margin-bottom: 8px;
    font-weight: 500;
}
.input {
    width: 100%;
    background: #262A33;
    border: 1px solid #323742;
    border-radius: 10px;
    padding: 13px 14px;
    color: #F2F1ED;
    font-size: 15px;
    font-family: inherit;
}
.input:focus { outline: none; border-color: #FF7A30; }

.toggle-row { display: flex; gap: 10px; }
.toggle-opt {
    flex: 1;
    text-align: center;
    padding: 13px 8px;
    border-radius: 10px;
    border: 1px solid #323742;
    background: #262A33;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #9098A6;
}
.toggle-opt.active {
    border-color: #FF7A30;
    background: rgba(255,122,48,0.12);
    color: #FF7A30;
}

.stepper-input {
    display: flex;
    align-items: center;
    gap: 14px;
}
.stepper-btn {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: #262A33;
    border: 1px solid #323742;
    color: #F2F1ED;
    font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    user-select: none;
}
.stepper-val { font-size: 17px; font-weight: 600; min-width: 28px; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform .1s, opacity .2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: #FF7A30; color: #1A0E04; }
.btn-primary:disabled { opacity: 0.5; }
.btn-ghost { background: transparent; color: #9098A6; border: 1px solid #323742; margin-top: 10px; }

/* ---------- Price summary ---------- */
.price-row {
    display: flex; justify-content: space-between;
    font-size: 14px; color: #9098A6;
    padding: 8px 0;
}
.price-row.total {
    border-top: 1px solid #323742;
    margin-top: 6px; padding-top: 14px;
    font-size: 18px; font-weight: 700; color: #F2F1ED;
}
.price-row.total span:last-child { color: #FF7A30; }

/* ---------- Status states ---------- */
.status-box { text-align: center; padding: 36px 20px; }
.status-icon { width: 56px; height: 56px; margin: 0 auto 16px; }
.status-title { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.status-sub { font-size: 14px; color: #9098A6; line-height: 1.5; }

.error-text { color: #FF6B6B; font-size: 13px; margin-top: 10px; display: none; }
.error-text.show { display: block; }

.hidden { display: none !important; }

.spinner {
    width: 18px; height: 18px;
    border: 2.5px solid rgba(26,14,4,0.3);
    border-top-color: #1A0E04;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
