.service-room-shell.wizard-step {
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
}

.service-room-layout {
    width: 100%;
    max-width: 680px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 100px;
}

.service-room-modal-layout {
    max-width: 560px;
    align-items: flex-start;
}

.service-room-modal-hero {
    align-items: flex-start;
    text-align: left;
}

.service-room-hero {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-room-intro {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.98rem;
    line-height: 1.55;
}

.service-wizard-app {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.service-wizard-loading {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(0, 0, 70, 0.28), rgba(0, 0, 20, 0.65));
    border-radius: 18px;
}

.service-wizard-loading p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.service-wizard-loading-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--color-orange);
    box-shadow: 0 0 18px rgba(255, 102, 0, 0.7);
    animation: wizardPulse 1.2s ease-in-out infinite;
}

@keyframes wizardPulse {
    0%,
    100% {
        transform: scale(0.85);
        opacity: 0.55;
    }
    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

.service-wizard-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(8, 12, 52, 0.82), rgba(2, 4, 18, 0.94));
    border-radius: 20px;
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.service-modal-trigger {
    min-width: min(100%, 320px);
    min-height: 58px;
}

.wizard-shell-header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wizard-shell-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.wizard-shell-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.48);
    text-transform: uppercase;
}

.wizard-shell-step {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: var(--color-orange);
    letter-spacing: 0.8px;
}

.wizard-progress {
    display: flex;
    gap: 8px;
    align-items: center;
}

.wizard-progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s ease;
}

.wizard-progress-dot.active {
    background: var(--color-orange);
    border-color: rgba(255, 102, 0, 0.88);
    box-shadow: 0 0 16px rgba(255, 102, 0, 0.45);
}

.wizard-progress-dot.complete {
    background: rgba(255, 255, 255, 0.32);
}

.wizard-body {
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wizard-step-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wizard-step-section.wizard-hidden {
    display: none !important;
}

.wizard-step-copy h2,
.wizard-step-copy h3 {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    color: #fff;
    letter-spacing: 0.3px;
}

.wizard-step-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.94rem;
    line-height: 1.5;
}

.wizard-objective-grid,
.wizard-choice-grid,
.wizard-service-grid,
.wizard-part-grid,
.wizard-review-grid {
    display: grid;
    gap: 12px;
}

.wizard-objective-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wizard-objective-card,
.wizard-service-card,
.wizard-part-card,
.wizard-location-card,
.wizard-time-card,
.wizard-make-chip,
.wizard-dual-option {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.wizard-objective-card {
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.wizard-objective-card:hover,
.wizard-service-card:hover,
.wizard-part-card:hover,
.wizard-location-card:hover,
.wizard-time-card:hover,
.wizard-make-chip:hover,
.wizard-dual-option:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 102, 0, 0.46);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.wizard-objective-card-title {
    font-family: var(--font-heading);
    font-size: 0.96rem;
    font-weight: 700;
}

.wizard-objective-card-copy {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    line-height: 1.45;
}

.wizard-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.wizard-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.wizard-field.full {
    grid-column: 1 / -1;
}

.wizard-field-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.84);
    letter-spacing: 0.3px;
}

.wizard-field-hint {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.75rem;
    line-height: 1.45;
}

.wizard-input,
.wizard-textarea {
    width: 100%;
    box-sizing: border-box;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 26, 0.8);
    color: #fff;
    padding: 13px 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wizard-input::placeholder,
.wizard-textarea::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.wizard-input:focus,
.wizard-textarea:focus {
    border-color: rgba(255, 102, 0, 0.72);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.12);
    background: rgba(0, 0, 26, 0.94);
}

.wizard-input.invalid,
.wizard-textarea.invalid,
.wizard-make-chip.invalid {
    border-color: rgba(255, 103, 103, 0.86);
    box-shadow: 0 0 0 3px rgba(255, 103, 103, 0.11);
}

.wizard-textarea {
    min-height: 110px;
    resize: vertical;
}

.wizard-checkline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.wizard-checkline input {
    margin-top: 3px;
    accent-color: var(--color-orange);
}

.wizard-checkline-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wizard-help-panel,
.wizard-guided-package,
.wizard-error-banner,
.wizard-success-banner {
    border-radius: 16px;
    padding: 14px 16px;
}

.wizard-help-panel {
    background: rgba(0, 191, 255, 0.09);
    border: 1px solid rgba(0, 191, 255, 0.22);
}

.wizard-help-panel h4,
.wizard-guided-package h4,
.wizard-review-card h4 {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    color: #fff;
}

.wizard-help-panel p,
.wizard-help-panel ul,
.wizard-guided-package p,
.wizard-error-banner p,
.wizard-success-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.wizard-help-panel ul {
    margin-top: 8px;
    padding-left: 18px;
}

.wizard-help-panel li {
    margin-bottom: 6px;
}

.wizard-guided-package {
    background: rgba(255, 102, 0, 0.08);
    border: 1px solid rgba(255, 102, 0, 0.24);
}

.wizard-guided-chip-row,
.wizard-make-row,
.wizard-time-row,
.wizard-dual-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wizard-guided-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.82rem;
}

.wizard-guided-chip i {
    color: var(--color-orange);
}

.wizard-make-chip {
    padding: 12px 14px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.03);
}

.wizard-make-chip.active,
.wizard-service-card.active,
.wizard-part-card.active,
.wizard-location-card.active,
.wizard-time-card.active,
.wizard-dual-option.active {
    border-color: rgba(255, 102, 0, 0.88);
    background: rgba(255, 102, 0, 0.14);
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.1);
}

.wizard-search-shell {
    position: relative;
}

.wizard-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 22, 0.98);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
    z-index: 30;
}

.wizard-search-result {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    cursor: pointer;
}

.wizard-search-result + .wizard-search-result {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wizard-search-result:hover {
    background: rgba(255, 255, 255, 0.05);
}

.wizard-search-result-title {
    font-size: 0.9rem;
    font-weight: 700;
}

.wizard-search-result-copy {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
}

.wizard-service-toolbar,
.wizard-part-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wizard-service-grid,
.wizard-part-grid,
.wizard-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wizard-service-card,
.wizard-part-card,
.wizard-location-card,
.wizard-time-card,
.wizard-dual-option {
    padding: 15px 14px;
    text-align: left;
}

.wizard-service-card-header,
.wizard-part-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wizard-card-title {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
}

.wizard-card-copy {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.84rem;
    line-height: 1.45;
}

.wizard-card-check {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.18s ease;
}

.wizard-service-card.active .wizard-card-check,
.wizard-part-card.active .wizard-card-check,
.wizard-location-card.active .wizard-card-check,
.wizard-time-card.active .wizard-card-check,
.wizard-dual-option.active .wizard-card-check {
    color: #fff;
    background: var(--color-orange);
    border-color: var(--color-orange);
}

.wizard-section-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.wizard-review-grid {
    grid-template-columns: 1fr;
}

.wizard-review-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wizard-review-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.wizard-review-edit {
    border: 1px solid rgba(255, 102, 0, 0.34);
    background: rgba(255, 102, 0, 0.08);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.74rem;
    letter-spacing: 0.5px;
    border-radius: 999px;
    padding: 7px 10px;
    cursor: pointer;
}

.wizard-review-list {
    margin: 0;
    padding-left: 18px;
    color: rgba(255, 255, 255, 0.78);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wizard-review-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.wizard-review-pill {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
}

.wizard-error-banner {
    background: rgba(255, 84, 84, 0.08);
    border: 1px solid rgba(255, 84, 84, 0.28);
}

.wizard-success-banner {
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.24);
}

.wizard-error-banner strong,
.wizard-success-banner strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
}

.wizard-footer {
    padding: 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.wizard-footer-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.wizard-btn {
    border: 1px solid transparent;
    border-radius: 14px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.wizard-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.wizard-btn:active {
    transform: translateY(1px);
}

.wizard-btn.primary {
    background: linear-gradient(180deg, rgba(255, 102, 0, 0.94), rgba(255, 102, 0, 0.72));
    color: #fff;
    box-shadow: 0 14px 28px rgba(255, 102, 0, 0.22);
}

.wizard-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

.wizard-btn.ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.12);
}

.wizard-btn.full-width {
    width: 100%;
}

.wizard-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.wizard-reference-box {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wizard-reference-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.wizard-reference-code {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    letter-spacing: 1px;
    color: #fff;
}

.wizard-submitted-note {
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.55;
}

.wizard-hidden {
    display: none !important;
}

@media (max-width: 640px) {
    .service-room-layout {
        gap: 20px;
        padding-bottom: 110px;
    }

    .room-modal {
        padding: 12px;
    }

    .room-modal-dialog,
    .room-modal-dialog-wide {
        width: 100%;
        max-height: calc(100dvh - 24px);
    }

    .service-room-intro {
        font-size: 0.92rem;
    }

    .wizard-objective-grid,
    .wizard-choice-grid,
    .wizard-service-grid,
    .wizard-part-grid,
    .wizard-form-grid {
        grid-template-columns: 1fr;
    }

    .wizard-shell-meta,
    .wizard-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .wizard-progress {
        flex-wrap: wrap;
    }

    .wizard-footer-actions {
        width: 100%;
        margin-left: 0;
        flex-direction: column-reverse;
    }

    .wizard-btn {
        width: 100%;
    }

    .wizard-search-results {
        max-height: 220px;
    }
}
