/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Container for the multi-step form */
.multi-step-form-container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 800px; /* Set minimum height to avoid shifting */
}

/* Section title styling */
.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

/* Intro text styling */
.intro-text {
    margin-bottom: 20px;
    color: #333;
}

.intro-text p {
    margin-bottom: 10px;
}

/* Form group styling */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

/* Form control styling */
.form-control {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    box-sizing: border-box;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    color: #495057;
    background-color: #fff;
}

.form-control.is-valid {
    border-color: #28a745;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

/* Validation error message styling */
.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: .25rem;
    font-size: 80%;
    color: #dc3545;
}

.valid-feedback {
    display: none;
    width: 100%;
    margin-top: .25rem;
    font-size: 80%;
    color: #28a745;
}

/* Ensure select text is fully visible */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 35px; /* Add padding for the arrow */
    height: auto; /* Adjust height */
}

/* Check mark for validation */
.form-group .valid-icon {
    position: absolute;
    right: 10px;
    top: 35px;
    color: #28a745;
    display: none;
}

.form-group .invalid-icon {
    position: absolute;
    right: 10px;
    top: 35px;
    color: #dc3545;
    display: none;
}

/* Button styling */
.btn {
    display: inline-block;
    font-size: 16px;
    padding: 12px 24px;
    margin: 5px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: auto;
}

.btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.btn:hover:not(:disabled) {
    background-color: #0056b3;
}

/* Secondary button styling */
.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #5a6268;
}

/* Button group styling */
.btn-group {
    display: flex;
    justify-content: space-between;
}

.btn-group .btn {
    flex: 1;
    margin: 0 5px;
}

/* Hidden class to toggle visibility */
.hidden {
    display: none;
}

/* Active class to show elements */
.active {
    display: block;
}

/* Progress bar styling */
.progress-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.progress-step {
    width: 25px;
    height: 25px;
    background-color: #e9ecef;
    border-radius: 50%;
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6c757d;
    z-index: 1;
}

.progress-step.active {
    background-color: #007bff;
    color: #fff;
}

.progress-line {
    position: absolute;
    width: 80%;
    height: 2px;
    background-color: #e9ecef;
    top: 12.5px;
    z-index: 0;
}

.progress-line.active {
    background-color: #007bff;
}

/* Mobile responsive styling */
@media (max-width: 600px) {
    .btn {
        font-size: 14px;
        padding: 10px 20px;
        width: 100%;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        margin: 5px 0;
    }

    .section-title {
        font-size: 20px;
    }

    .multi-step-form-container {
        padding: 10px;
        min-height: 800px; /* Set minimum height for mobile to avoid shifting */
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-control {
        padding: 8px;
        font-size: 14px;
    }
}
