.multistep-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    font-family: Arial, sans-serif;
}

/* Прогрес-бар */
.msf-progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
}

.msf-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.msf-step.active {
    background-color: #0073aa;
    color: white;
}

.msf-step.completed {
    background-color: #4CAF50;
    color: white;
}

.msf-step-connector {
    flex-grow: 1;
    height: 3px;
    background-color: #f0f0f0;
    margin: 0 10px;
    position: relative;
}

.step-number {
    font-weight: bold;
    font-size: 16px;
}

/* Контент кроку */
.msf-step-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.msf-step-content.active {
    display: block;
}

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

/* Заголовок */
.msf-step-content h2 {
    color: #333;
    margin-bottom: 40px;
    font-size: 28px;
    text-align: center;
    font-weight: 600;
}

/* Варіанти вибору з зображеннями */
.msf-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.msf-option-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.msf-option-card:hover {
    border-color: #0073aa;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.msf-option-card input[type="radio"] {
    display: none;
}

.msf-option-card input[type="radio"]:checked + .option-content {
    background-color: #f0f8ff;
}

.msf-option-card input[type="radio"]:checked + .option-content .option-image {
    border-bottom: 3px solid #0073aa;
}

.msf-option-card input[type="radio"]:checked + .option-content .option-title {
    color: #0073aa;
    font-weight: bold;
}

.option-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.option-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-bottom: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.msf-option-card:hover .option-image img {
    transform: scale(1.05);
}

.option-title {
    padding: 25px 15px;
    font-size: 20px;
    color: #333;
    font-weight: 600;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Список варіантів без зображень */
.msf-options-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.msf-option-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.msf-option-item:hover {
    border-color: #0073aa;
    background-color: #f8f9fa;
}

.msf-option-item input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.2);
}

.msf-option-item input[type="radio"]:checked + .option-text {
    color: #0073aa;
    font-weight: bold;
}

.option-text {
    font-size: 18px;
    color: #333;
}

/* Контактна форма */
.msf-contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 30px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    transform: scale(1.2);
}

.checkbox-group label {
    font-weight: normal;
    font-size: 14px;
    line-height: 1.5;
}

/* Навігація */
.msf-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.msf-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.msf-btn-prev {
    background-color: #f0f0f0;
    color: #333;
}

.msf-btn-prev:hover {
    background-color: #e0e0e0;
}

.msf-btn-next,
.msf-btn-submit {
    background-color: #0073aa;
    color: white;
}

.msf-btn-next:hover,
.msf-btn-submit:hover {
    background-color: #005a87;
}

/* Повідомлення */
.msf-message {
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

.msf-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.msf-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Помилки */
.error {
    border-color: #dc3545 !important;
}

/* Адаптивність */
@media (max-width: 768px) {
    .multistep-form-container {
        padding: 20px;
    }
    
    .msf-progress-bar {
        margin-bottom: 30px;
    }
    
    .msf-step {
        width: 30px;
        height: 30px;
    }
    
    .step-number {
        font-size: 14px;
    }
    
    .msf-step-content h2 {
        font-size: 22px;
        margin-bottom: 30px;
    }
    
    .msf-options-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .option-image {
        height: 160px;
    }
    
    .option-title {
        font-size: 18px;
        padding: 20px 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .msf-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .msf-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .option-image {
        height: 140px;
    }
    
    .option-title {
        font-size: 16px;
        padding: 15px 10px;
    }
}