/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, #f4f7f6, #e0eafc);
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.wizard-container {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 750px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
}

.wizard-header {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    padding: 30px 40px;
    text-align: center;
    width: 100%;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.wizard-header h1 {
    margin: 0 0 10px 0;
    font-weight: 700;
    font-size: 2.2em;
    letter-spacing: -0.5px;
}

.wizard-header p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

/* Steps Indicator */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    padding: 25px 40px;
    width: 100%;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    box-sizing: border-box;
}

.step {
    font-weight: 600;
    color: #aaa;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.step.active {
    color: #6a11cb;
    background-color: #e8e0f5;
}

.step:hover {
    color: #6a11cb;
}

/* Form Styling */
#wizard-form {
    width: 100%;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-step {
    width: 100%;
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    flex-direction: column;
    align-items: center;
}

.form-step.active {
    display: flex;
}

.form-step h2 {
    color: #2575fc;
    margin-bottom: 30px;
    font-size: 1.8em;
    font-weight: 600;
    text-align: center;
}

.form-group {
    width: 100%;
    margin-bottom: 25px;
    position: relative;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
    font-size: 1em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus {
    outline: none;
    border-color: #2575fc;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.2);
}

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

/* Checkbox and Radio Button Styling */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    display: none; /* Hide default */
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    color: #444;
    font-size: 1.05em;
    transition: color 0.2s ease;
}

.checkbox-label:hover,
.radio-label:hover {
    color: #2575fc;
}

/* Custom Checkbox/Radio */
.checkbox-label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    background-color: #fff;
    border-radius: 4px;
    margin-right: 10px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.checkbox-label input[type="checkbox"]:checked + span::before,
.checkbox-label::before {
    border-color: #2575fc;
}

.checkbox-label input[type="checkbox"]:checked + span::after,
.checkbox-label::after {
    content: '\2714'; /* Checkmark */
    font-size: 14px;
    color: white;
    position: absolute;
    left: 6px; /* Adjust as needed */
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + span::after {
    opacity: 1;
}

.checkbox-label input[type="checkbox"]:checked ~ span::before {
    background-color: #2575fc;
    border-color: #2575fc;
}


/* Custom Radio Button */
.radio-label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    background-color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.radio-label input[type="radio"]:checked + span::before {
    border-color: #2575fc;
}

.radio-label input[type="radio"]:checked + span::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: #2575fc;
    border-radius: 50%;
    position: absolute;
    left: 10px; /* Adjust as needed */
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.radio-label input[type="radio"]:checked ~ span::before {
    background-color: #2575fc;
    border-color: #2575fc;
}

/* File Input Styling */
input[type="file"] {
    background-color: #f9f9f9;
    border: 1px dashed #ccc;
    padding: 10px;
    cursor: pointer;
}
input[type="file"]:hover {
    border-color: #2575fc;
}

.image-preview {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.note {
    font-size: 0.9em;
    color: #777;
    margin-top: -15px;
    margin-bottom: 25px;
    text-align: left;
    width: 100%;
}


/* Navigation Buttons */
.form-navigation {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

button {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
    letter-spacing: 0.5px;
}

button:hover {
    background: linear-gradient(to right, #2575fc, #6a11cb);
    box-shadow: 0 8px 20px rgba(37, 117, 252, 0.4);
}

button#prevBtn {
    background: #e0e0e0;
    color: #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

button#prevBtn:hover {
    background: #ccc;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

#submitBtn {
    background: #4CAF50; /* Green for submit */
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

#submitBtn:hover {
    background: #45a049;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.5);
}


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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .wizard-container {
        margin: 15px;
    }
    .wizard-header h1 {
        font-size: 1.8em;
    }
    .wizard-header p {
        font-size: 1em;
    }
    .wizard-steps {
        padding: 15px 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .step {
        font-size: 0.9em;
        margin: 5px;
    }
    .form-step h2 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
    #wizard-form {
        padding: 30px 20px;
    }
    button {
        padding: 10px 20px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .wizard-container {
        margin: 10px;
    }
    .wizard-header {
        padding: 20px 15px;
    }
    .wizard-header h1 {
        font-size: 1.6em;
    }
    .form-navigation {
        flex-direction: column;
        align-items: center;
    }
    #prevBtn {
        margin-bottom: 10px;
        width: 80%;
    }
    #nextBtn, #submitBtn {
        width: 80%;
    }
    .step {
        font-size: 0.85em;
        padding: 4px 8px;
    }
}