/* Form Wizard Styles */
.form-wizard-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F5F4EE;
    padding: 20px;
}

/* For modal context - override container height */
.modal-body .form-wizard-container {
    min-height: auto;
    background-color: transparent;
    padding: 0;
}

.form-wizard-card {
    background: white;
    border-radius: 8px;
    padding: 50px 60px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* For modal context - remove shadow */
.modal-body .form-wizard-card {
    box-shadow: none;
    max-width: 100%;
    padding: 30px 40px;
}

.form-wizard-header {
    text-align: center;
    margin-bottom: 50px;
}

.form-wizard-title {
    font-size: 32px;
    font-weight: 700;
    color: #030712;
    margin-bottom: 10px;
    font-family: "Barlow", sans-serif;
}

.form-wizard-subtitle {
    font-size: 16px;
    color: #4C4C4C;
    margin: 0;
    font-family: "Roboto", sans-serif;
}

.form-wizard-subtitle span {
    color: #2e3192;
}

/* Step Indicator */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 50px;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    z-index: 2;
}

.wizard-step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #9ca3af;
    margin-bottom: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.wizard-step.active .wizard-step-icon {
    background-color: #2e3192;
    color: white;
    transform: scale(1.1);
}

.wizard-step.completed .wizard-step-icon {
    background-color: #2e3192;
    color: white;
}

.wizard-step-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
    font-family: "Roboto", sans-serif;
}

.wizard-step.active .wizard-step-label {
    color: #030712;
    font-weight: 600;
}

/* Form Sections */
.form-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #030712;
    margin-bottom: 30px;
    font-family: "Barlow", sans-serif;
}

/* Form Groups */
.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group-row.full {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    color: #4C4C4C;
    margin-bottom: 8px;
    font-weight: 500;
    font-style: italic;
    font-family: "Roboto", sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    background: transparent;
    color: #030712;
    transition: border-color 0.3s ease;
    outline: none;
    font-family: "Roboto", sans-serif;
}

.form-group input::placeholder,
.form-group select::placeholder {
    color: #d1d5db;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-bottom-color: #2e3192;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 15px;
}

.btn-previous,
.btn-next {
    padding: 18px 30px;
    border: none;
    border-radius: 0.01px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    font-family: "Roboto", sans-serif;
}

.btn-previous {
    background: #f3f4f6;
    color: #4C4C4C;
}

.btn-previous:hover {
    background: #e5e7eb;
}

.btn-previous:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-next {
    background-color: #F7941D;
    color: white;
    margin-left: auto;
}

.btn-next:hover {
    background-color: #e68818;
    transition: 0.2s linear;
}

.btn-submit {
    background-color: #2e3192;
    color: white;
    padding: 18px 40px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 0.01px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.btn-submit:hover {
    background-color: #1f2263;
    transition: 0.2s linear;
}

/* Responsive */
@media (max-width: 768px) {
    .form-wizard-card {
        padding: 30px 20px;
    }

    .form-wizard-title {
        font-size: 24px;
    }

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

    .wizard-steps {
        margin-bottom: 30px;
    }

    .wizard-step-label {
        font-size: 12px;
    }

    .wizard-step-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-next,
    .btn-submit,
    .btn-previous {
        margin-left: 0;
        width: 100%;
    }

    .btn-previous {
        order: 2;
    }

    .btn-next,
    .btn-submit {
        order: 1;
    }
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 30px;
}

.success-message.show {
    display: block;
}

.success-icon {
    font-size: 60px;
    color: #2e3192;
    margin-bottom: 20px;
}

.success-message h2 {
    color: #030712;
    margin-bottom: 10px;
    font-family: "Barlow", sans-serif;
}

.success-message p {
    color: #4C4C4C;
    margin-bottom: 20px;
    font-family: "Roboto", sans-serif;
}

.btn-back-home {
    background-color: #2e3192;
    color: white;
    padding: 18px 30px;
    border: none;
    border-radius: 0.01px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-family: "Roboto", sans-serif;
    font-weight: 600;
}

.btn-back-home:hover {
    background-color: #1f2263;
    color: white;
    transition: 0.2s linear;
}

/* Subcategories Styling */
#subCategoryModal {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

#subCategoryModal .swiper-wrapper {
    display: flex;
    gap: 10px;
    width: 50%;
}

#subCategoryModal .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex: 0 0 calc(50% - 5px);
    min-width: 100px;
}

#subCategoryModal .swiper-slide img {
    max-width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

#subCategoryModal .swiper-slide h3 {
    font-size: 14px;
    color: #030712;
    margin: 0;
}

#subCategoryModal .swiper-slide:hover {
    background: #e8f4f8;
    border-color: #F7941D;
    transform: translateY(-5px);
}

#subCategoryModal .swiper-slide.selected {
    border-color: #F7941D;
    background: #fff8f0;
}

#subcategories-container .swiper-slide img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

#subcategories-container .swiper-slide h3 {
    font-size: 14px;
    color: #030712;
    margin: 0;
    font-weight: 600;
    font-family: "Roboto", sans-serif;
}

/* Subcategory Selection State */
#subcategories-container .swiper-slide.selected {
    background: #F7941D;
    border-color: #F7941D;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#subcategories-container .swiper-slide.selected h3 {
    color: white;
}

/* Dynamic Form Fields */
#dynamic-form-fields {
    margin-bottom: 20px;
}

#dynamic-form-fields .form-group {
    margin-bottom: 20px;
}
