/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f8;
    color: #333;
    margin: 0;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    margin: 10px 0;
    color: #2c3e50;
}

header p {
    color: #555;
}

/* Form Styles */
form {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccd0d5;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: #5dade2;
    outline: none;
}

textarea {
    resize: vertical;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #5dade2;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #3498db;
}

button:disabled {
    background-color: #a0c4e8;
    cursor: not-allowed;
}

.button-group {
    display: flex;
    justify-content: space-between;
}

.prev-btn {
    background-color: #95a5a6;
}

.prev-btn:hover {
    background-color: #7f8c8d;
}

.next-btn {
    background-color: #5dade2;
}

.next-btn:hover {
    background-color: #3498db;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.progress-bar .step {
    width: 25px;
    height: 25px;
    background-color: #dcdcdc;
    border-radius: 50%;
    position: relative;
}

.progress-bar .step.active {
    background-color: #5dade2;
}

.progress-bar .step::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #dcdcdc;
    transform: translateX(-50%);
    z-index: -1;
}

.progress-bar .step.active::after {
    background-color: #5dade2;
}

.progress-bar .step:last-child::after {
    content: none;
}

/* Error States */
input.error,
select.error,
textarea.error {
    border-color: #e74c3c;
}

input.error::placeholder,
textarea.error::placeholder {
    color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 600px) {
    .button-group {
        flex-direction: column;
    }

    .button-group button {
        width: 100%;
        margin-bottom: 10px;
    }

    .progress-bar {
        flex-direction: column;
        align-items: center;
    }

    .progress-bar .step::after {
        display: none;
    }

    .progress-bar .step {
        margin-bottom: 10px;
    }
}
