/* Registration Page Specific Styles */

.registration-header {
    text-align: center;
    margin-bottom: 30px;
}

.registration-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.registration-header p {
    color: #666;
    font-size: 1.1rem;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 20px;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
}

.step.active {
    background: #ff6b35;
    color: white;
}

.step.completed {
    background: #28a745;
    color: white;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.form-section h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.4rem;
    border-left: 4px solid #ff6b35;
    padding-left: 15px;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.form-navigation button {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#prevBtn {
    background: #6c757d;
    color: white;
}

#prevBtn:hover {
    background: #5a6268;
}

#nextBtn, #submitBtn {
    background: linear-gradient(135deg, #ff6b35, #f9844a);
    color: white;
}

#nextBtn:hover, #submitBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #ff6b35, #f9844a);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.file-upload {
    border: 2px dashed #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.file-upload:hover {
    border-color: #ff6b35;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-label {
    cursor: pointer;
    color: #ff6b35;
    font-weight: 600;
}

.login-links {
    margin-top: 20px;
}

.login-links a {
    color: #ff6b35;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

/* Character counter styling */
small {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

/* Responsive adjustments for registration */
@media (max-width: 768px) {
    .step-indicator {
        gap: 10px;
    }

    .step {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .form-section {
        padding: 20px;
    }

    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .form-navigation button {
        width: 100%;
    }
}

/* Animation for form transitions */
.form-step {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.form-step.active {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced form validation styles */
.form-group input.error,
.form-group select.error {
    border-color: #e74c3c;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-group input.valid,
.form-group select.valid {
    border-color: #28a745;
}

/* Loading state for submit button */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Tooltip styles for help text */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Success message animation */
.alert-success {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced file upload area */
.file-upload.has-file {
    border-color: #28a745;
    background-color: #f8fff9;
}

.file-upload.has-file .file-upload-label {
    color: #28a745;
}

/* Form section hover effects */
.form-section {
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}