/* Registration Form Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card {
    border-radius: 15px;
    overflow: hidden;
}

.form-label {
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
}

.is-invalid {
    border-color: #dc3545 !important;
}

.is-invalid-check {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 3px solid #e9ecef;
}

.step.active .step-number {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.5);
}

.step.completed .step-number {
    background: #198754;
    border-color: #198754;
    color: white;
}

.step small {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
    margin-top: 0.5rem;
}

.step.active small {
    color: #0d6efd;
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 3px;
    background: #e9ecef;
    margin: 0 -1rem;
    align-self: flex-start;
    margin-top: 25px;
    position: relative;
    z-index: 0;
}

.step.completed + .step-line {
    background: #198754;
}

/* Registration Steps */
.registration-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.registration-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Animation */
.success-animation {
    padding: 3rem;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3.5rem;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
}

@keyframes scaleIn {
    from {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.spinner-border {
    width: 4rem;
    height: 4rem;
}

/* File Upload Progress */
#photo_upload_progress,
#doc_upload_progress {
    margin-top: 1rem;
}

.progress {
    height: 25px;
    border-radius: 8px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    font-size: 0.875rem;
    line-height: 25px;
}

/* Alert Styling */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #155724;
}

.alert-warning {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #856404;
}

/* Sibling Input Group */
.sibling-group {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .progress-steps {
        flex-wrap: wrap;
    }
    
    .step {
        min-width: 60px;
    }
    
    .step small {
        font-size: 0.65rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-line {
        margin-top: 20px;
    }
    
    .card-body {
        padding: 2rem 1rem !important;
    }
}

/* Custom Checkbox Styling */
.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Textarea Styling */
textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Input Focus Animations */
.form-control:focus,
.form-select:focus {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Button Hover Effects */
.btn-outline-secondary:hover {
    transform: translateX(-5px);
}

.btn-primary:hover i,
.btn-success:hover i {
    transform: translateX(5px);
    display: inline-block;
    transition: transform 0.3s ease;
}
