/**
 * FLEXCREDI - Multi-Step Form Styles
 * Styles for the home page multi-step credit application form
 */

/* Progress Bar Styles */
.progress-bar-container {
    margin-bottom: 30px;
    padding: 20px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 30px;
    max-width: 100%;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: #dee2e6;
    z-index: 0;
}

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

.progress-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 3px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    font-size: 24px;
    color: #6c757d;
}

.progress-step.active .progress-circle {
    border-color: #28a745;
    background: #28a745;
    color: white;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.4);
    transform: scale(1.1);
}

.progress-step.completed .progress-circle {
    border-color: #28a745;
    background: #28a745;
    color: white;
}

.progress-step.completed .progress-circle::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
}

.progress-step.completed .progress-circle i {
    display: none;
}

.progress-label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.progress-step.active .progress-label,
.progress-step.completed .progress-label {
    color: #28a745;
    font-weight: 700;
}

/* Form Step Styles */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

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

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

.step-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.step-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.step-header p {
    color: #6c757d;
    margin: 0;
    font-size: 14px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.section-title i {
    color: #28a745;
    margin-right: 8px;
}

/* Step Navigation Buttons */
.step-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.step-navigation button {
    flex: 1;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-prev {
    background: #6c757d;
    color: white;
}

.btn-prev:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-next {
    background: #28a745;
    color: white;
}

.btn-next:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-submit {
    background: #28a745;
    color: white;
}

.btn-submit:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Review Section Styles */
.review-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
}

.review-item:last-child {
    border-bottom: none;
}

.review-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.review-value {
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
    text-align: right;
}

/* Form Field Enhancements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-control.error {
    border-color: #dc3545;
}

.form-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert-info i {
    font-size: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .progress-bar {
        padding: 0 10px;
    }

    .progress-bar::before {
        left: 10%;
        right: 10%;
    }

    .progress-circle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .progress-label {
        font-size: 10px;
    }

    .step-header h2 {
        font-size: 20px;
    }

    .section-title {
        font-size: 16px;
    }

    .step-navigation {
        flex-direction: column;
    }

    .step-navigation button {
        width: 100%;
    }

    .review-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .review-value {
        text-align: left;
    }
}

/* Success Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    max-width: 500px;
    width: 90%;
}

.modal-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: none;
}

.modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #dee2e6;
}

.modal-footer button {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}
