/* Registration Form Styles for Fees Page */
.registration-tab-content {
    padding: 20px 0;
}

/* Multi-step form styles */
.step-container {
    display: none;
}

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

.timeline {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #e0e0e0;
    z-index: 1;
}

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

.timeline-step:last-child {
    flex: 0;
}

.step-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.timeline-step.active .step-circle {
    background-color: #4CAF50;
}

.timeline-step.completed .step-circle {
    background-color: #2196F3;
}

.step-label {
    font-size: 0.85rem;
    text-align: center;
    color: #666;
}

.timeline-step.active .step-label {
    color: #4CAF50;
    font-weight: bold;
}

.timeline-step.completed .step-label {
    color: #2196F3;
}

/* Navigation buttons styling */
.form-navigation {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 20px;
    width: auto;
}

.form-navigation .btn {
    padding: 4px 12px;
    font-size: 0.8rem;
    border-radius: 3px;
    width: auto;
    flex: none;
}

.form-navigation .btn-primary {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.form-navigation .btn-primary:hover {
    background-color: #45a049;
    border-color: #45a049;
    transform: translateY(-1px);
}

.form-navigation .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.form-navigation .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    transform: translateY(-1px);
}

.form-navigation .btn:disabled {
    padding: 4px 12px;
    font-size: 0.8rem;
    opacity: 0.6;
}

.form-section {
    margin-bottom: 1.5rem;
}

.form-section-title {
    font-weight: bold;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
    color: #333;
}

.requirements-list {
    padding-right: 1.5rem;
}

.requirements-list li {
    margin-bottom: 0.5rem;
}

.download-section {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
}

.download-section h4 {
    margin-bottom: 1rem;
    color: #333;
}

.download-section a {
    color: #007bff;
    text-decoration: none;
}

.download-section a:hover {
    text-decoration: underline;
}

.step-summary {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border-right: 4px solid #4CAF50;
}

.step-summary h5 {
    margin-bottom: 0.5rem;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

.step-summary p {
    margin-bottom: 0.25rem;
}

/* Form input styles */
.registration-form .form-control {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.registration-form .form-control:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.registration-form .form-select {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-size: 1rem;
}

.registration-form .form-select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.registration-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Required field indicator */
.required-field::after {
    content: " *";
    color: #dc3545;
}

/* Honeypot fields (hidden from users) */
.nowayin {
    display: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .timeline {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline:before {
        display: none;
    }
    
    .timeline-step {
        flex-direction: row;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .step-circle {
        margin-bottom: 0;
        margin-left: 1rem;
    }
    
    .step-label {
        text-align: right;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-navigation .btn {
        width: 100%;
    }
}

/* Tab specific styles */
.nav-tabs .nav-link {
    color: #495057;
    border: 1px solid transparent;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
    color: #4CAF50;
}

.nav-tabs .nav-link.active {
    color: #4CAF50;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    border-bottom: 3px solid #4CAF50;
}

/* Registration header */
.registration-header {
    color: #2c5530;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Success message styling */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    border-radius: 0.375rem;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
}

/* Error message styling */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Loading state */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spinner 0.75s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Print styles */
@media print {
    .nav-tabs,
    .form-navigation,
    .nowayin {
        display: none !important;
    }
    
    .step-container {
        display: block !important;
    }
    
    .registration-form {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
}