/**
 * Application Wizard Styles
 * Multi-step form wizard for job applications
 */

/* Wizard Container */
.wizard-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 40px;
}

/* Progress Indicator */
.wizard-progress {
    margin-bottom: 40px;
}

.progress-container {
    position: relative;
    padding: 0 20px;
}

.progress-bar-wrapper {
    position: absolute;
    top: 17px;
    left: 60px;
    right: 60px;
    height: 4px;
    background-color: #e9ecef;
    z-index: 0;
    border-radius: 2px;
}

.wizard-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1370b5, #0d5a94);
    transition: width 0.4s ease;
    width: 0%;
    border-radius: 2px;
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-indicator:hover .step-number {
    transform: scale(1.1);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.step-indicator.active .step-number {
    background: linear-gradient(135deg, #1370b5, #0d5a94);
    color: #fff;
    box-shadow: 0 5px 20px rgba(19, 112, 181, 0.4);
}

.step-indicator.completed .step-number {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: #fff;
}

.step-indicator.completed .step-number span {
    display: none;
}

.step-indicator.completed .step-number::after {
    content: '\2713';
    font-weight: bold;
}

.step-label {
    margin-top: 10px;
    font-size: 13px;
    color: #888;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.step-indicator.active .step-label {
    color: #1370b5;
    font-weight: 600;
}

.step-indicator.completed .step-label {
    color: #28a745;
}

/* Wizard Steps */
.wizard-step {
    display: none;
    animation: fadeInStep 0.4s ease;
}

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

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

.step-title {
    color: #1370b5;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 10px;
}

.step-description {
    color: #666;
    margin-bottom: 30px;
    font-size: 15px;
}

/* Form Styling */
.wizard-step .form-group {
    margin-bottom: 20px;
}

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

.wizard-step .form-label .required {
    color: #dc3545;
    margin-left: 3px;
}

.wizard-step .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.wizard-step .form-control:focus {
    border-color: #1370b5;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(19, 112, 181, 0.1);
    outline: none;
}

.wizard-step .form-control.is-invalid {
    border-color: #dc3545;
    background-color: #fff;
}

.wizard-step .form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.wizard-step select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    padding-right: 40px;
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* File Upload Styling */
.file-upload-wrapper {
    position: relative;
}

.wizard-step input[type="file"].form-control {
    padding: 10px 16px;
}

.wizard-step input[type="file"].form-control::file-selector-button {
    background: linear-gradient(135deg, #1370b5, #0d5a94);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    margin-right: 15px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wizard-step input[type="file"].form-control::file-selector-button:hover {
    background: linear-gradient(135deg, #0d5a94, #094578);
}

.file-info {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.file-name-display {
    color: #28a745;
    font-weight: 500;
}

/* Review Section */
.review-section {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #1370b5;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.review-heading {
    color: #1370b5;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
}

.review-heading i {
    margin-right: 10px;
    font-size: 20px;
}

.review-content p {
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
}

.review-content strong {
    color: #333;
    min-width: 140px;
    display: inline-block;
}

.review-content span {
    color: #555;
}

/* Document List */
.document-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.document-item:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.document-item i {
    font-size: 18px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.document-item.uploaded i {
    color: #28a745;
}

.document-item.not-uploaded i {
    color: #dc3545;
}

.document-item .doc-info {
    flex: 1;
}

.document-item .doc-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.document-item .doc-filename {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.document-item.not-uploaded {
    opacity: 0.7;
    background: #f8f9fa;
}

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

.wizard-alert i {
    font-size: 20px;
    margin-right: 12px;
}

.wizard-alert.alert-info {
    background: linear-gradient(135deg, #e7f3ff, #f0f8ff);
    border: 1px solid #b8daff;
    color: #004085;
}

.wizard-alert.alert-success {
    background: linear-gradient(135deg, #d4edda, #e8f5e9);
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wizard-alert.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #ffebee);
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Navigation Buttons */
.wizard-navigation {
    border-top: 2px solid #e9ecef;
    padding-top: 30px;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wizard-btn {
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wizard-btn-prev {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e9ecef;
}

.wizard-btn-prev:hover {
    background: #e9ecef;
    border-color: #ddd;
}

.wizard-btn-next {
    background: linear-gradient(135deg, #1370b5, #0d5a94);
    color: #fff;
    box-shadow: 0 4px 15px rgba(19, 112, 181, 0.3);
}

.wizard-btn-next:hover {
    background: linear-gradient(135deg, #0d5a94, #094578);
    box-shadow: 0 6px 20px rgba(19, 112, 181, 0.4);
    transform: translateY(-2px);
}

.wizard-btn-submit {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: #fff;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.wizard-btn-submit:hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

.wizard-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Section Divider */
.section-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e9ecef;
}

.section-divider span {
    background: #fff;
    padding: 0 20px;
    color: #888;
    font-size: 14px;
    position: relative;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .wizard-container {
        padding: 30px 25px;
    }
}

@media (max-width: 768px) {
    .wizard-container {
        padding: 25px 20px;
        margin: 0 -15px;
        border-radius: 0;
    }

    .step-label {
        display: none;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .progress-bar-wrapper {
        left: 40px;
        right: 40px;
        top: 15px;
    }

    .step-title {
        font-size: 20px;
    }

    .wizard-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .wizard-btn {
        width: 100%;
        justify-content: center;
    }

    .review-content strong {
        min-width: 120px;
    }

    .review-section {
        padding: 20px 15px;
    }
}

@media (max-width: 576px) {
    .step-indicators {
        justify-content: space-around;
    }

    .progress-bar-wrapper {
        left: 30px;
        right: 30px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .wizard-step .form-control {
        padding: 10px 14px;
        font-size: 14px;
    }

    .review-content p {
        flex-direction: column;
    }

    .review-content strong {
        margin-bottom: 3px;
    }

    .document-item {
        padding: 10px 12px;
    }

    .document-item .doc-label {
        font-size: 13px;
    }
}

/* Print Styles */
@media print {
    .wizard-navigation,
    .wizard-progress {
        display: none;
    }

    .wizard-step {
        display: block !important;
        page-break-inside: avoid;
    }

    .wizard-container {
        box-shadow: none;
        padding: 0;
    }
}
