@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.bo {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8fafc;
    color: #334155;
}

/* Геометрические фигуры */
.geometric-shape {
    position: absolute;
    opacity: 0.15;
    z-index: -1;
}

.shape-1 {
    width: 150px;
    height: 150px;
    border-radius: 30px;
    background: #94a3b8;
    transform: rotate(15deg);
    top: 10%;
    left: 5%;
}

.shape-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #7dd3fc;
    bottom: 15%;
    left: 8%;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: #cbd5e1;
    transform: rotate(45deg);
    top: 25%;
    right: 10%;
}

.shape-4 {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: #bae6fd;
    transform: rotate(10deg);
    bottom: 20%;
    right: 15%;
}

.shape-5 {
    width: 120px;
    height: 60px;
    border-radius: 60px / 30px;
    background: #e2e8f0;
    top: 15%;
    right: 20%;
}

.shape-line {
    position: absolute;
    height: 1px;
    background: #cbd5e1;
    opacity: 0.2;
    z-index: -1;
}

.line-1 {
    width: 300px;
    transform: rotate(-20deg);
    top: 30%;
    left: -50px;
}

.line-2 {
    width: 250px;
    transform: rotate(15deg);
    bottom: 25%;
    right: -30px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    padding: 40px;
    width: 100%;
    max-width: 700px;
    margin: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.3);
}

.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, #60a5fa, #38bdf8);
}

h1 {
    color: #1e293b;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
    font-size: 28px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #475569;
    font-size: 15px;
}

input,
select,
textarea {
    width: 100%;
    padding: 8px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #7dd3fc;
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.2);
    background-color: #fff;
}

.checkbox-group {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
}

.checkbox-label input {
    width: auto;
    margin-right: 10px;
}

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #3b82f6, #0ea5e9);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1);
}

button:hover {
    background: linear-gradient(to right, #2563eb, #0284c7);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.15);
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #94a3b8;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider::before {
    margin-right: 15px;
}

.divider::after {
    margin-left: 15px;
}

.errorlist {
    list-style: none;
    margin-top: 5px;
    color: #ef4444;
    font-size: 14px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
}

.form-navigation button {
    width: 48%;
}

.form-navigation button#prevBtn {
    background: linear-gradient(to right, #64748b, #94a3b8);
}

.form-navigation button#prevBtn:hover {
    background: linear-gradient(to right, #475569, #64748b);
}

.warning-text {
    color: #ef4444;
    font-size: 14px;
    margin-top: 20px;
}

.info-text {
    font-size: 14px;
    margin-top: 20px;
    color: #475569;
}

@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
        margin: 20px;
    }

    h1 {
        font-size: 24px;
    }

    .shape-1,
    .shape-2,
    .shape-3,
    .shape-4,
    .shape-5 {
        display: none;
    }

    .form-navigation {
        flex-direction: column;
    }

    .form-navigation button {
        width: 100%;
        margin-bottom: 10px;
    }
}

.form-container {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin: 30px;
}

.progress-container {
    width: 150px;
    position: sticky;
    top: 30px;
}

.progress-bar {
    position: relative;
    height: 400px;
    width: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin: 0 auto;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, #60a5fa, #38bdf8);
    border-radius: 3px;
    transition: height 0.5s ease;
}

.progress-steps {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 400px;
    justify-content: space-between;
    position: absolute;
    left: 30px;
    top: 0;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.progress-step.active .step-number {
    background: #3b82f6;
    color: white;
}

.progress-step.completed .step-number {
    background: #10b981;
    color: white;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

.progress-step.active .step-label {
    color: #1e293b;
    font-weight: 600;
}

@media (max-width: 768px) {
    .bo {
        flex-direction: column;
    }

    .container {
        width: 90%;
    }

    .form-container {
        flex-direction: column;
        gap: 20px;
    }

    .progress-container {
        width: 100%;
        position: static;
    }

    .progress-bar {
        display: none;
    }

    .progress-steps {
        position: static;
        flex-direction: row;
        height: auto;
        width: 100%;
        justify-content: space-between;
        margin-bottom: 20px;
    }

    .progress-step {
        flex-direction: column;
        text-align: center;
    }

    .step-label {
        font-size: 12px;
        white-space: normal;
        text-align: center;
        max-width: 80px;
    }
}
.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    }
    .text-danger.small {
    font-size: 0.875em;
    margin-top: 0.25rem;
    }
    .progress-container {
    width: 200px;
    padding: 20px;
    }
    .progress-bar {
    height: 300px;
    width: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    position: relative;
    margin: 0 auto;
    }
    .progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, #60a5fa, #38bdf8);
    border-radius: 3px;
    transition: height 0.5s ease;
    }
    .progress-steps {
    position: absolute;
    left: 30px;
    top: 0;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    }
    .progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    }
    .progress-step.active .step-number {
    background: #3b82f6;
    color: white;
    }
    .progress-step.completed .step-number {
    background: #10b981;
    color: white;
    }
    .step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    transition: all 0.3s ease;
    }
    .step-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
    }
    .progress-step.active .step-label {
    color: #1e293b;
    font-weight: 600;
    }
    .form-step {
    display: none;
    }
    .form-step.active {
    display: block;
    }
    .warning-text {
    color: #ef4444;
    font-size: 14px;
    margin-top: 20px;
    }
@media (max-width: 768px) {
    .bo {
        flex-direction: column;
        align-items: stretch;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 20px 15px;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
    
    .progress-container {
        width: 100%;
        position: static;
        padding: 0 10px;
        margin-bottom: 20px;
    }
    
    .progress-bar {
        display: none; /* скрываем вертикальный */
    }
    
    .progress-steps {
        position: static;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: auto;
        gap: 0;
        padding: 0 10px;
        margin-bottom: 10px;
    }
    
    .progress-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
    }
    
    .step-label {
        font-size: 12px;
        max-width: 70px;
        white-space: normal;
        text-align: center;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-navigation button {
        width: 100%;
        margin: 0 !important;
    }
    
    h1 {
        font-size: 22px;
    }
    
    label {
        font-size: 14px;
    }
    
    input, select, textarea {
        font-size: 14px;
        padding: 10px;
    }
    }
    