/* Main Styles */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border-radius: 10px;
    overflow: hidden;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: white;
    padding: 1.25rem;
}

.card-title {
    font-weight: 600;
    color: #005296;
}

.section-title {
    color: #005296;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

/* Progress Bar Styles */
.progress {
    height: 0.8rem;
    border-radius: 10px;
    overflow: hidden;
}

.step-indicators {
    margin-top: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6c757d;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.step-text {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
}

.step.active .step-icon {
    background-color: #005296;
    color: white;
}

.step.active .step-text {
    color: #005296;
    font-weight: bold;
}

.step.complete .step-icon {
    background-color: #198754;
    color: white;
}

/* Form Section Styles */
.form-section {
    padding: 1rem 0;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.form-control, .form-select {
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    transition: all 0.2s ease-in-out;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #86b7fe;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Table Styling */
.table {
    vertical-align: middle;
}

.table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .step-text {
        display: none;
    }
    
    .step-icon {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.8rem;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-navigation button {
        width: 100%;
    }
}

/* Animation for section transitions */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-section:not(.d-none) {
    animation: fadeIn 0.5s ease-out;
}

/* Summary Section Styling */
#applicationSummary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.25rem;
}

.summary-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.summary-section:last-child {
    border-bottom: none;
}

.summary-section h5 {
    color: #005296;
    margin-bottom: 0.75rem;
}

.summary-item {
    display: flex;
    margin-bottom: 0.5rem;
}

.summary-item .label {
    font-weight: 600;
    min-width: 150px;
}

/* Form Validation Styling */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-select:invalid,
.form-select.is-invalid {
    border-color: #dc3545;
}
