:root {
    --ink: #101418;
    --ink-soft: #1a2027;
    --ink-muted: #2b333d;
    --blue: #12a9e5;
    --blue-dark: #0785bc;
    --blue-soft: #e9f8fe;
    --red: #ef4148;
    --red-soft: #fff0f1;
    --text: #18202a;
    --muted: #6e7885;
    --border: #dfe5eb;
    --border-strong: #cbd4dc;
    --background: #f1f4f7;
    --surface: #ffffff;
    --success: #18a566;
    --danger: #c9343a;
    --shadow-sm: 0 8px 24px rgba(18, 28, 39, .06);
    --shadow-md: 0 18px 48px rgba(18, 28, 39, .10);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--background);
}

body {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 0%, rgba(18, 169, 229, .07), transparent 28rem),
        var(--background);
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.site-header {
    position: relative;
    z-index: 50;
    color: white;
    background: var(--ink);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--blue) 0 72%, var(--red) 72% 100%) 1;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .15);
}

.header-inner {
    width: min(100% - 32px, 1380px);
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    color: white;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--blue), var(--blue-dark));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.brand-mark svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.brand-copy strong {
    letter-spacing: .08em;
    font-size: 1rem;
}

.brand-copy small {
    color: rgba(255, 255, 255, .62);
    font-size: .76rem;
}

.main-nav {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.nav-link {
    min-height: 40px;
    padding: 8px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: rgba(255, 255, 255, .88);
    border: 1px solid transparent;
    border-radius: 10px;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 700;
    transition: background .16s, color .16s, border-color .16s;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, .08);
}

.nav-admin {
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
}

.nav-link-muted {
    color: rgba(255, 255, 255, .62);
}

.nav-icon {
    font-size: 1rem;
    line-height: 1;
}

.page-shell {
    width: 100%;
    min-width: 0;
    padding: 34px 20px 70px;
}

.site-footer {
    width: min(100% - 32px, 1380px);
    margin: 0 auto;
    padding: 20px 0 28px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    border-top: 1px solid var(--border);
    font-size: .8rem;
}

.wizard-page,
.admin-page {
    width: min(100%, 1040px);
    min-width: 0;
    margin: 0 auto;
}

.wizard-page-wide,
.admin-page {
    width: min(100%, 1360px);
}

.wizard-hero {
    min-width: 0;
    padding: 28px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    color: white;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(110deg, rgba(18, 169, 229, .15), transparent 43%),
        linear-gradient(135deg, var(--ink), var(--ink-soft));
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
}

.wizard-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -90px;
    top: -105px;
    border-radius: 50%;
    border: 32px solid rgba(18, 169, 229, .12);
}

.wizard-hero::before {
    content: "";
    position: absolute;
    width: 86px;
    height: 7px;
    left: 30px;
    bottom: 0;
    background: var(--red);
}

.wizard-hero-copy {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.eyebrow,
.summary-kicker {
    display: inline-block;
    color: var(--blue);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .13em;
}

.wizard-hero h1 {
    margin: 7px 0 8px;
    font-size: clamp(1.75rem, 4vw, 2.65rem);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.wizard-hero p {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, .66);
    font-size: .96rem;
    line-height: 1.55;
}

.total-card {
    min-width: 220px;
    padding: 17px 19px;
    display: grid;
    gap: 2px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 15px;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(8px);
}

.total-card span,
.total-card small {
    color: rgba(255, 255, 255, .62);
}

.total-card span {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.total-card strong {
    margin: 3px 0;
    color: white;
    font-size: 1.75rem;
    letter-spacing: -.035em;
}

.total-card small {
    font-size: .72rem;
}

.wizard-stepper {
    width: calc(100% - 44px);
    min-width: 0;
    margin: -1px auto 0;
    padding: 19px 22px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    position: relative;
    z-index: 2;
    background: white;
    border: 1px solid var(--border);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    box-shadow: var(--shadow-sm);
}

.step-item {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #9aa4ae;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: "";
    width: 20%;
    min-width: 12px;
    height: 1px;
    position: absolute;
    right: -10%;
    background: var(--border);
}

.step-number {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: #f8fafb;
    font-size: .75rem;
    font-weight: 850;
}

.step-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .74rem;
    font-weight: 700;
}

.step-item.active {
    color: var(--text);
}

.step-item.active .step-number {
    color: white;
    border-color: var(--blue);
    background: var(--blue);
    box-shadow: 0 0 0 5px var(--blue-soft);
}

.step-item.completed {
    color: var(--blue-dark);
}

.step-item.completed .step-number {
    color: white;
    border-color: var(--success);
    background: var(--success);
}

.step-item.completed::after {
    background: rgba(24, 165, 102, .45);
}

.wizard-content-heading {
    margin-top: 34px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.wizard-content-heading > div {
    min-width: 0;
}

.wizard-content-heading span {
    color: var(--blue-dark);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .09em;
}

.wizard-content-heading h2 {
    margin: 3px 0 0;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    letter-spacing: -.035em;
}

.step-progress-copy {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 650;
    white-space: nowrap;
}

.progress-track {
    height: 4px;
    margin: 13px 0 18px;
    overflow: hidden;
    border-radius: 99px;
    background: #dfe5e9;
}

.progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--blue-dark));
    transition: width .25s ease;
}

.wizard-card,
.summary-card,
.detail-card,
.login-card,
.simple-card,
.table-card {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.wizard-card {
    padding: clamp(20px, 3.2vw, 34px);
}

.wizard-form {
    min-width: 0;
    display: grid;
    gap: 26px;
}

.form-section {
    min-width: 0;
    padding: 0 0 27px;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    padding-bottom: 0;
    border-bottom: 0;
}

.section-title {
    min-width: 0;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.section-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    color: var(--blue-dark);
    border-radius: 11px;
    background: var(--blue-soft);
    font-weight: 900;
}

.section-icon-red {
    color: var(--red);
    background: var(--red-soft);
}

.section-title div {
    min-width: 0;
}

.section-title legend {
    padding: 0;
    margin: 0;
    font-size: 1.02rem;
    font-weight: 850;
}

.section-title p,
.service-heading p,
.damage-intro p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.45;
}

.field-label,
.form-field > label,
.wizard-form > div > label {
    display: block;
    margin: 0 0 7px;
    font-size: .84rem;
    font-weight: 750;
}

.form-grid {
    min-width: 0;
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.form-field,
.form-grid > div {
    min-width: 0;
}

.form-grid .full {
    grid-column: 1 / -1;
}

input,
textarea,
select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px 13px;
    color: var(--text);
    background: white;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

input:hover,
textarea:hover,
select:hover {
    border-color: #aeb9c3;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(18, 169, 229, .13);
}

textarea {
    resize: vertical;
}

.input-suffix {
    min-width: 0;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: white;
    overflow: hidden;
}

.input-suffix:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(18, 169, 229, .13);
}

.input-suffix input {
    flex: 1;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.input-suffix input:focus {
    box-shadow: none;
}

.input-suffix span {
    padding-right: 13px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 700;
}

.date-input-wrap {
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: white;
}

.date-input-wrap:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(18, 169, 229, .13);
}

.date-input-wrap input[type="date"] {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.vehicle-size-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.choice-button {
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.choice-button input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-button > span {
    min-width: 0;
    min-height: 76px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #4d5965;
    border: 1px solid var(--border-strong);
    border-radius: 13px;
    background: #fbfcfd;
    transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}

.choice-button:hover > span {
    transform: translateY(-1px);
    border-color: var(--blue);
}

.choice-button input:checked + span {
    color: var(--blue-dark);
    border-color: var(--blue);
    background: var(--blue-soft);
    box-shadow: 0 0 0 3px rgba(18, 169, 229, .12);
}

.choice-icon {
    font-size: 1rem;
    transform: scaleX(1.35);
}

.validation-banner {
    padding: 14px 16px;
    color: #8f252b;
    border: 1px solid #f2bec1;
    border-radius: 11px;
    background: var(--red-soft);
}

.validation-banner strong {
    display: block;
    margin-bottom: 4px;
}

.validation-banner ul {
    margin: 4px 0 0;
    padding-left: 19px;
}

.validation-summary-valid,
.field-validation:empty {
    display: none;
}

.field-validation {
    display: block;
    margin-top: 5px;
    color: var(--danger);
    font-size: .78rem;
}

.wizard-actions {
    min-width: 0;
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.wizard-actions-end {
    justify-content: flex-end;
}

.button {
    min-width: 0;
    min-height: 44px;
    padding: 11px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--text);
    border: 0;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    box-shadow: 0 8px 18px rgba(7, 133, 188, .2);
}

.button.primary:hover {
    box-shadow: 0 10px 24px rgba(7, 133, 188, .28);
}

.button.secondary {
    color: var(--text);
    border: 1px solid var(--border-strong);
    background: white;
}

.button.secondary:hover {
    border-color: #aeb9c3;
    background: #f8fafb;
}

.button-large {
    min-height: 48px;
    padding-inline: 23px;
}

.full-width {
    width: 100%;
}

.top-gap {
    margin-top: 12px;
}

.damage-form {
    padding: 22px;
}

.damage-intro,
.service-heading {
    min-width: 0;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.damage-intro > div,
.service-heading > div {
    min-width: 0;
}

.info-chip {
    flex: 0 0 auto;
    padding: 7px 10px;
    color: var(--blue-dark);
    border-radius: 99px;
    background: var(--blue-soft);
    font-size: .73rem;
    font-weight: 800;
}

.damage-workspace {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    align-items: start;
}

.damage-workspace > * {
    min-width: 0;
}

.car-layout {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, .72fr) minmax(0, 1fr);
    grid-template-areas:
        ". front ."
        "left top right"
        ". rear .";
    gap: 10px;
}

.vehicle-view {
    min-width: 0;
    min-height: 180px;
    padding: 10px;
    background: linear-gradient(180deg, #ffffff, #f8fafb);
    border: 1px solid var(--border);
    border-radius: 13px;
    overflow: hidden;
}

.vehicle-view:nth-child(1) {
    grid-area: front;
}

.vehicle-view:nth-child(2) {
    grid-area: left;
    min-height: 310px;
}

.vehicle-view:nth-child(3) {
    grid-area: top;
    min-height: 310px;
}

.vehicle-view:nth-child(4) {
    grid-area: right;
    min-height: 310px;
}

.vehicle-view:nth-child(5) {
    grid-area: rear;
}

.vehicle-view-title {
    margin-bottom: 8px;
    color: #8b96a1;
    text-align: center;
    font-size: .69rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.vehicle-parts {
    min-width: 0;
    height: calc(100% - 23px);
    display: grid;
    gap: 3px;
}

.vehicle-parts.front,
.vehicle-parts.rear {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vehicle-parts.left,
.vehicle-parts.right {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vehicle-parts.top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vehicle-part {
    min-width: 0;
    padding: 5px;
    color: #46515d;
    border: 1px solid #7c8792;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    overflow: hidden;
    transition: transform .13s, border-color .13s, background .13s, color .13s;
}

.vehicle-part:hover {
    z-index: 2;
    transform: translateY(-1px);
    color: var(--blue-dark);
    border-color: var(--blue);
}

.vehicle-part span {
    display: block;
    overflow-wrap: anywhere;
    font-size: .67rem;
    line-height: 1.08;
}

.vehicle-part.has-damage {
    color: #8a3b00;
    border-color: #ec8b35;
    background: #fff0de;
}

.vehicle-part.active {
    color: white;
    border-color: var(--red);
    background: var(--red);
    box-shadow: 0 0 0 3px rgba(239, 65, 72, .13);
}

.damage-panel {
    min-width: 0;
    max-height: 680px;
    position: sticky;
    top: 18px;
    overflow: hidden;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.damage-panel-heading {
    min-width: 0;
    padding: 17px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    color: white;
    background: var(--ink-soft);
}

.damage-panel-heading > div {
    min-width: 0;
}

.damage-panel-heading small {
    color: var(--blue);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.damage-panel-heading h2 {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    font-size: 1rem;
}

.icon-button {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .75);
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    font-size: 1.35rem;
    cursor: pointer;
}

.damage-options {
    max-height: 586px;
    padding: 8px;
    overflow-y: auto;
}

.damage-options label {
    min-width: 0;
    margin: 0;
    padding: 11px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 9px;
    cursor: pointer;
}

.damage-options label:hover {
    background: #f4f7f9;
}

.damage-options input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    padding: 0;
    accent-color: var(--blue);
}

.damage-options span {
    min-width: 0;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.damage-options strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: .84rem;
}

.damage-options small {
    flex: 0 0 auto;
    color: var(--blue-dark);
    font-size: .74rem;
    font-weight: 750;
}

.service-list {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.service-card {
    min-width: 0;
    min-height: 82px;
    margin: 0;
    padding: 17px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fbfcfd;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}

.service-card:hover {
    transform: translateY(-1px);
    border-color: var(--blue);
}

.service-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.service-check {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    color: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    background: white;
    font-size: .76rem;
    font-weight: 900;
}

.service-card:has(input:checked) {
    border-color: var(--blue);
    background: var(--blue-soft);
    box-shadow: 0 0 0 3px rgba(18, 169, 229, .10);
}

.service-card:has(input:checked) .service-check {
    color: white;
    border-color: var(--blue);
    background: var(--blue);
}

.service-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.service-copy strong {
    overflow-wrap: anywhere;
}

.service-copy small {
    color: var(--muted);
    font-size: .77rem;
}

.service-price {
    color: var(--blue-dark);
    white-space: nowrap;
}

.summary-layout {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(330px, .85fr);
    gap: 18px;
    align-items: start;
}

.summary-layout > * {
    min-width: 0;
}

.summary-card,
.detail-card {
    padding: 21px;
    margin-bottom: 15px;
}

.vehicle-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: white;
    background: linear-gradient(135deg, var(--ink), var(--ink-soft));
    border-color: transparent;
}

.vehicle-summary-card h3 {
    margin: 5px 0 3px;
    font-size: 1.25rem;
}

.vehicle-summary-card p {
    margin: 0;
    color: rgba(255, 255, 255, .63);
}

.vehicle-summary-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    color: var(--blue);
    border-radius: 14px;
    background: rgba(255, 255, 255, .07);
}

.summary-card-title {
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.summary-card-title h3 {
    margin: 0;
    font-size: 1rem;
}

.summary-card-title span {
    color: var(--muted);
    font-size: .75rem;
}

.summary-line {
    min-width: 0;
    padding: 13px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    border-top: 1px solid #edf1f4;
}

.summary-line > div,
.summary-line > strong:first-child {
    min-width: 0;
}

.summary-line > div {
    display: grid;
    gap: 3px;
}

.summary-line small {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.summary-line > strong:last-child {
    flex: 0 0 auto;
    white-space: nowrap;
}

.summary-form {
    position: sticky;
    top: 18px;
}

.summary-total-box {
    padding: 18px;
    display: grid;
    gap: 3px;
    color: white;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--ink), var(--ink-soft));
}

.summary-total-box span {
    color: var(--blue);
    font-size: .71rem;
    font-weight: 850;
    letter-spacing: .09em;
}

.summary-total-box strong {
    font-size: 1.8rem;
    letter-spacing: -.04em;
}

.summary-total-box small {
    color: rgba(255, 255, 255, .6);
}

.review-notice {
    padding: 13px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #586470;
    border-radius: 11px;
    background: #f1f6f9;
}

.review-notice > span {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    color: white;
    border-radius: 50%;
    background: var(--blue);
    font-size: .75rem;
    font-weight: 900;
}

.review-notice p {
    margin: 0;
    font-size: .8rem;
    line-height: 1.5;
}

.empty-message {
    padding: 24px;
    color: var(--muted);
    text-align: center;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    background: white;
}

.login-card,
.simple-card {
    width: min(100%, 470px);
    margin: 40px auto;
    padding: 32px;
}

.login-card h1,
.simple-card h1 {
    margin: 0 0 7px;
    font-size: 1.65rem;
    letter-spacing: -.035em;
}

.login-card > p,
.simple-card > p {
    margin: 0 0 24px;
    color: var(--muted);
}

.login-card::before {
    content: "AREA RISERVATA";
    display: inline-block;
    margin-bottom: 10px;
    color: var(--blue-dark);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .11em;
}

.success-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    display: inline-grid;
    place-items: center;
    color: var(--success);
    border-radius: 50%;
    background: #ddf7e9;
    font-size: 2rem;
    font-weight: 900;
}

.admin-heading {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
}

.admin-heading h1 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -.04em;
}

.admin-heading p {
    margin: 5px 0 0;
    color: var(--muted);
}

.filter-bar {
    min-width: 0;
    margin-bottom: 15px;
    padding: 14px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 220px auto;
    gap: 10px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 13px;
    box-shadow: var(--shadow-sm);
}

.filter-bar > * {
    min-width: 0;
}

.admin-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(310px, .8fr);
    gap: 18px;
    align-items: start;
}

.admin-grid > * {
    min-width: 0;
}

.table-card {
    max-width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 13px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    color: var(--muted);
    background: #f8fafb;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.admin-table td small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.admin-table tbody tr:hover td {
    background: #fbfdfe;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.empty-cell {
    padding: 34px !important;
    color: var(--muted);
    text-align: center !important;
}

.sticky-card {
    position: sticky;
    top: 18px;
}

.price-breakdown {
    margin: 19px 0;
    display: grid;
    gap: 9px;
}

.price-breakdown > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.price-breakdown .grand {
    padding-top: 11px;
    border-top: 1px solid var(--border);
    font-size: 1.1rem;
}

.alert {
    padding: 12px 15px;
    margin-bottom: 14px;
    color: #087644;
    border: 1px solid #b9e9cf;
    border-radius: 10px;
    background: #e7f8ef;
}

@media (max-width: 1040px) {
    .damage-workspace,
    .admin-grid,
    .summary-layout {
        grid-template-columns: 1fr;
    }

    .summary-form,
    .sticky-card {
        position: static;
    }

    .damage-panel {
        position: fixed;
        z-index: 100;
        left: 14px;
        right: 14px;
        bottom: 14px;
        top: auto;
        max-height: min(72vh, 620px);
        transform: translateY(calc(100% + 34px));
        transition: transform .2s ease;
        box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
    }

    .damage-panel.open {
        transform: translateY(0);
    }

    .car-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "front rear"
            "left right"
            "top top";
    }

    .vehicle-view:nth-child(n) {
        min-height: 220px;
    }
}

@media (max-width: 780px) {
    .header-inner {
        min-height: 68px;
    }

    .nav-link span:not(.nav-icon) {
        display: none;
    }

    .nav-link {
        width: 39px;
        height: 39px;
        padding: 0;
    }

    .wizard-hero {
        padding: 24px;
        align-items: flex-start;
        flex-direction: column;
    }

    .total-card {
        width: 100%;
        min-width: 0;
    }

    .wizard-stepper {
        width: calc(100% - 24px);
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 15px;
    }

    .step-item:nth-child(3)::after,
    .step-item:nth-child(6)::after {
        display: none;
    }

    .step-label {
        font-size: .69rem;
    }

    .service-list {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid .full {
        grid-column: auto;
    }
}

@media (max-width: 590px) {
    .header-inner {
        width: min(100% - 22px, 1380px);
    }

    .brand-copy small {
        display: none;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .main-nav {
        gap: 4px;
    }

    .page-shell {
        padding: 22px 12px 52px;
    }

    .site-footer {
        width: calc(100% - 24px);
        flex-direction: column;
        gap: 5px;
    }

    .wizard-hero {
        padding: 21px;
        border-radius: 17px;
    }

    .wizard-hero h1 {
        font-size: 1.75rem;
    }

    .wizard-stepper {
        padding: 16px 11px;
    }

    .step-item {
        gap: 5px;
        flex-direction: column;
        text-align: center;
    }

    .step-item:not(:last-child)::after {
        display: none;
    }

    .step-label {
        width: 100%;
        white-space: normal;
        line-height: 1.1;
    }

    .wizard-content-heading {
        margin-top: 27px;
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .step-progress-copy {
        white-space: normal;
    }

    .wizard-card {
        padding: 18px;
        border-radius: 14px;
    }

    .vehicle-size-grid {
        grid-template-columns: 1fr;
    }

    .choice-button > span {
        min-height: 58px;
        flex-direction: row;
    }

    .wizard-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .wizard-actions .button {
        width: 100%;
    }

    .wizard-actions-end {
        flex-direction: column;
    }

    .damage-intro,
    .service-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .info-chip {
        align-self: flex-start;
    }

    .car-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "front"
            "left"
            "top"
            "right"
            "rear";
    }

    .vehicle-view:nth-child(n) {
        min-height: 230px;
    }

    .service-card {
        grid-template-columns: 22px minmax(0, 1fr);
    }

    .service-price {
        grid-column: 2;
    }

    .summary-line {
        gap: 10px;
    }

    .admin-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .login-card,
    .simple-card {
        padding: 23px;
        margin-top: 18px;
    }
}
