/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Outfit", sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    background: #fff;
    color: #1a2254;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Основной блок */
.multi-step-block {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px 0;
}

/* Шаги */
.step {
    min-height: auto;
}

.step h2 {
    margin-bottom: 30px;
    color: #14176C;
}

/* Сетки для карточек */
.specialists-grid,
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Кнопки */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

/* Кнопки навигации между шагами */
.step-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

/* Форма */
.contact-form {
    width: 100%;
    margin: 0 auto;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .multi-step-block {
        padding: 20px;
    }
    
    .specialists-grid,
    .specialties-grid {
        grid-template-columns: 1fr;
    }
    
    .step-buttons {
        flex-direction: column;
    }
}

.steps-progress {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 28px;
    margin-top: 0;
    min-width: 0;
    max-width: 100%;
}

.step-progress {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-size: 1.25rem;
    color: #F7A400;
    font-weight: 600;
    transition: color 0.2s;
}

.step-progress .step-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    border-radius: 50%;
    background: #f8f5e9;
    color: #F7A400;
    font-weight: 700;
    font-size: 1.3rem;
    margin-right: 12px;
    transition: background 0.2s, color 0.2s;
}

.step-progress.active {
    color: #1a2254;
}

.step-progress.active .step-circle {
    background: #F7A400;
    color: #fff;
}

.step-progress .step-label {
    opacity: 0.5;
    font-weight: 600;
}

.step-progress.active .step-label {
    opacity: 1;
}

.step-main {
    width: 100%;
    margin: 0 auto;
}

.main-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a2254;
    margin-bottom: 0px;
    margin-top: 16px;
    text-align: left;
}

.step1-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.step1-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F7A400;
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
    margin-right: 16px;
}

.step1-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2254;
}

.specialists-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.specialist-card {
    padding: 12px 28px;
    border: 2px solid #e5e7f0;
    border-radius: 12px;
    background: #fff;
    color: #1a2254;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.specialist-card.selected {
    background: #1a2254;
    color: #fff;
    border-color: #1a2254;
}

.btn-yellow {
    background: #F7A400;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
    margin-top: 0;
}

.btn-yellow:disabled,
.btn-yellow[style*="display: none"] {
    opacity: 0.5;
    pointer-events: none;
}

.btn-yellow:hover:not(:disabled) {
    background: #ffd54f;
}

@media (max-width: 900px) {
    .steps-progress {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 24px;
    }
    .main-title {
        font-size: 1.3rem;
    }
    .specialists-grid {
        flex-direction: column;
        gap: 12px;
    }
}

/* --- Второй шаг: карточки выбранных специалистов --- */
.selected-specialists-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.selected-specialist-card {
    background: #fff;
    border: 2px solid #e5e7f0;
    border-radius: 16px;
    padding: 24px 20px 20px 20px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.selected-specialist-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a2254;
    margin-bottom: 2px;
}
.selected-specialist-desc {
    font-size: 0.98rem;
    color: #b2b2c7;
    margin-bottom: 8px;
}

.remove-specialist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #14176C;
    cursor: pointer;
    transition: color 0.2s;
    padding: 2px;
    border-radius: 50%;
}
.remove-specialist-btn:hover {
    color: #ff9800;
}

.counter-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.counter-btn {
    background: none;
    border: none;
    color: #14176C;
    font-size: 1.3rem;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.counter-btn:active {
    background: #F7A40022;
    color: #ff9800;
}
.counter-value {
    font-size: 1.1rem;
    font-weight: 600;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DEEBEF;
    border-radius: 8px;
    color: #1a2254;
    min-width: 24px;
    text-align: center;
}

.level-select {
    border: 1px solid #F7A400;
    background: #fff;
    color: #ff9800;
    border-radius: 8px;
    padding: 8px 18px 8px 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: 8px;
    transition: border 0.2s;
}
.level-select:focus {
    outline: none;
    border: 1px solid #ff9800;
}

/* --- Кнопки второго шага --- */
.step2-buttons {
    display: flex;
    gap: 18px;
    margin-top: 18px;
    justify-content: flex-end;
}
.btn-yellow-light {
    background: #fff7e0;
    color: #ff9800;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-yellow-light:hover {
    background: #F7A400;
    color: #fff;
}

/* --- Модальное окно --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: #fff;
    border-radius: 24px;
    padding: 48px 48px 32px 48px;
    box-shadow: 0 4px 32px rgba(26,34,84,0.10);
    text-align: center;
    min-width: 340px;
    max-width: 540px;
}
.modal-message {
    font-size: 2rem;
    color: #1a2254;
    margin-bottom: 32px;
    font-weight: 500;
}
.modal-actions {
    display: flex;
    gap: 18px;
    justify-content: center;
}

/* --- Третий шаг: форма --- */
.step3-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}
.step3-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F7A400;
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
    margin-right: 16px;
}
.step3-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2254;
}
.selected-specialists-label {
    color: #ff9800;
    font-weight: 600;
    margin-bottom: 12px;
    margin-left: 2px;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    user-select: none;
}
.selected-specialists-label .arrow {
    font-size: 1.1em;
    margin-left: 2px;
    transition: transform 0.2s;
}
.selected-specialists-label .arrow img{
    width: 24px;
    margin-top: 8px;
}
.selected-specialists-label.open .arrow {
    transform: rotate(180deg);
}
.selected-specialists-dropdown {
    position: absolute;
    left: 0;
    top: 120%;
    min-width: 280px;
    background: #fff;
    border: 2px solid #F7A400;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(26,34,84,0.10);
    padding: 16px 18px;
    z-index: 10;
    color: #1a2254;
    font-size: 1rem;
    font-weight: 400;
    display: block;
    cursor: auto;
}
.selected-specialists-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.selected-specialists-dropdown li {
    margin-bottom: 8px;
    font-size: 1rem;
    color: #1a2254;
    display: flex;
    align-items: center;
    gap: 8px;
}
.selected-specialists-dropdown li:last-child {
    margin-bottom: 0;
}
.selected-specialists-dropdown .spec-level {
    color: #ff9800;
    font-size: 0.95em;
    margin-left: 4px;
}
.selected-specialists-dropdown .spec-count {
    color: #b2b2c7;
    font-size: 0.95em;
    margin-left: 4px;
}
.form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 18px;
}
.contact-form input,
.contact-form textarea {
    border: 2px solid #e5e7f0;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 1.1rem;
    font-family: inherit;
    color: #1a2254;
    background: #fff;
    width: 100%;
    transition: border 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border: 2px solid #F7A400;
}
.contact-form textarea {
    min-height: 70px;
    resize: vertical;
}
.step3-buttons {
    display: flex;
    gap: 18px;
    margin-top: 8px;
    justify-content: flex-end;
}
@media (max-width: 900px) {
    .form-row {
        flex-direction: column;
        gap: 12px;
    }
    .step{
        width: 100%;
    }
    .main-title{
        font-size: 30px;
        line-height: 35px;
        margin-bottom: 30px;
    }
    .specialist-card{
        font-size: 14px;
    }
    .selected-specialists-grid{
        grid-template-columns: repeat(1, 1fr);
        width: 100%;
    }
    .step2-buttons, .step3-buttons{
        flex-direction: column;
    }
    .btn-yellow{
        width: 100%;
    }
    #step1, #step2{
        padding-bottom: 35px;
    }
    .modal-content{
        width: 90%;
        min-width: 300px;
    }
    .modal-message{
        font-size: 20px;
    }
} 