:root {
    --primary: #647dee;
    --secondary: #7f53ac;
    --background: #f8f9fa;
    --text: #2d3436;
    --error: #ff7675;
    --success: #55efc4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: url('https://cdn.bitrix24.in/b28507921/disk/b04/b0460bfb2c64d802f7b5e7c4de7989ee/c4a0e5a93e06a2810e669f610bb5bd87.png') #647dee2b;
    color: var(--text);
    line-height: 1.6;
    padding: 2rem;
}

.container {
    min-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.36);
}

h1 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 24px;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: #eee;
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.form-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-section.active {
    display: block;
}

.section-title {
    color: var(--primary);
    margin: 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

button {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
}

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

.btn-prev {
    background: #eee;
    color: var(--text);
}

.btn-next {
    background: var(--primary);
    color: white;
}

.btn-submit {
    background: #5750f1;
    color: white;
}

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

@media (max-width: 600px) {
    body {
        padding: 1rem;
    }
    
    .container {
        padding: 1rem;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }
}