/* wizard.css - Styles specifically for the multi-step request form */

body.wizard-body {
    background-color: var(--surface);
    height: 100vh;
    overflow: hidden; /* Prevent full page scroll, handle scroll in main */
    display: flex;
}

.wizard-layout {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Sidebar */
.wizard-sidebar {
    width: 320px;
    background-color: var(--bg-color);
    border-right: 1px solid var(--border-light);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.wizard-logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--text-main);
    text-decoration: none;
    margin-bottom: 64px;
}

.wizard-progress {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    /* Убрали flex: 1, чтобы контейнер облегал шаги и линия не тянулась вниз */
}

/* Connecting line */
.wizard-progress::before {
    content: '';
    position: absolute;
    top: 16px;
    bottom: 16px; /* Вместо calc используем bottom 16px, так как контейнер теперь не растягивается */
    left: 15px;
    width: 2px;
    background: var(--border-light);
    z-index: 0;
}

.progress-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.progress-step:not(.is-active):not(.is-completed) .step-marker {
    color: var(--text-muted);
    border-color: var(--border-light);
    background: var(--bg-color);
}

.progress-step:not(.is-active):not(.is-completed) .step-info {
    opacity: 0.5;
}

.step-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all var(--transition);
    position: relative;
    z-index: 2;
}

.progress-step.is-active .step-marker {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.progress-step.is-completed .step-marker {
    border-color: var(--primary);
    color: var(--primary);
}

.step-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.step-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.step-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.btn-back-home {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition);
    margin-top: auto;
}

.btn-back-home:hover {
    color: var(--text-main);
}

/* Main Area */
.wizard-main {
    flex: 1;
    padding: 64px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wizard-container {
    width: 100%;
    max-width: 680px;
    position: relative;
    padding-bottom: 120px;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.wizard-step.is-active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.wizard-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 48px;
}

/* Cards (Step 1) */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.option-card {
    position: relative;
    cursor: pointer;
}

.option-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-content {
    background: var(--bg-color);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all var(--transition);
}

.option-icon {
    font-size: 40px;
    color: var(--text-muted);
    transition: color var(--transition);
    margin-bottom: 8px;
}

.option-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.option-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
}

.option-card:hover .option-content {
    background: #f1f5f9;
}

.option-input:checked + .option-content {
    background: #eff6ff; /* Light blue */
    border-color: var(--primary);
}

.option-input:checked + .option-content .option-icon {
    color: var(--primary);
}

/* Form Groups (Step 2 & 3) */
.form-groups {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

/* Chips Grid */
.chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chip {
    position: relative;
    cursor: pointer;
}

.chip input {
    position: absolute;
    opacity: 0;
}

.chip span {
    display: inline-flex;
    padding: 12px 24px;
    background: var(--bg-color);
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    transition: all var(--transition);
    user-select: none;
}

.chip:hover span {
    background: #f1f5f9;
}

.chip input:checked + span {
    background: var(--primary);
    color: white;
}

/* Inputs */
.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.input-field input,
.input-field textarea {
    width: 100%;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 16px;
    color: var(--text-main);
    transition: all var(--transition);
}

.input-field input:focus,
.input-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Navigation Bottom Bar */
.wizard-nav {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 320px; /* Sidebar width */
    background: var(--surface);
    border-top: 1px solid var(--border-light);
    padding: 24px 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.wizard-nav .btn {
    min-width: 160px;
}

.wizard-nav .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    body.wizard-body {
        flex-direction: column;
        overflow: auto;
    }
    
    .wizard-sidebar {
        width: 100%;
        padding: 24px;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
    
    .wizard-logo {
        margin-bottom: 24px;
    }
    
    .wizard-progress {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .wizard-progress::before {
        top: 15px;
        left: 16px;
        right: 16px;
        width: auto;
        height: 2px;
    }
    
    .step-info {
        display: none; /* Hide labels on mobile */
    }
    
    .wizard-main {
        padding: 32px 24px;
    }
    
    .wizard-nav {
        left: 0;
        padding: 16px 24px;
    }
    
    .options-grid, .input-row {
        grid-template-columns: 1fr;
    }
}
