/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    padding: 2rem 1.5rem;
    margin: 0;
}

/* Register Container */
.register-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* Step Header */
.step-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 1.8rem 2rem;
    color: white;
}

.step-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.step-header h2 i {
    margin-right: 10px;
}

.step-header p {
    opacity: 0.8;
    margin-top: 0.3rem;
}

.login-link {
    margin-top: 1rem;
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 40px;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.login-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

.login-link i {
    margin-right: 8px;
}

/* Progress Wrapper */
.progress-wrapper {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.step-badge {
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.step-badge i {
    margin-right: 6px;
}

/* Form Container */
.form-container {
    padding: 2rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.full-width {
    grid-column: 1 / -1;
}

/* Labels */
label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: #0f172a;
}

label i {
    margin-right: 6px;
    color: #3b82f6;
}

.required:after {
    content: "*";
    color: #ef4444;
    margin-left: 4px;
}

/* Inputs, Selects, Textareas */
input, select, textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Upload Area */
.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 0.8rem;
    background: #f8fafc;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.file-list {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
}

.file-list span {
    display: inline-block;
    background: #e2e8f0;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin: 0.2rem;
}

/* Dynamic Group */
.dynamic-group {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.dynamic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn-remove {
    background: #fee2e2;
    border: none;
    color: #b91c1c;
    padding: 0.3rem 0.9rem;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.3s;
}

.btn-remove:hover {
    background: #fecaca;
}

.btn-add {
    background: white;
    border: 1.5px dashed #3b82f6;
    color: #1e40af;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 0.5rem;
    transition: all 0.3s;
}

.btn-add:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}

.btn-add i {
    margin-right: 6px;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.btn-prev {
    background: #f1f5f9;
    color: #1e293b;
    border: none;
    padding: 0.75rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-prev:hover {
    background: #e2e8f0;
}

.btn-next, .btn-submit {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-next:hover, .btn-submit:hover {
    background: #2563eb;
}

.btn-next i, .btn-submit i {
    margin-left: 8px;
}

.btn-prev i {
    margin-right: 8px;
}

/* Success Message */
.success-message {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
}

/* Error Messages */
.text-red-500 {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-pane {
    animation: fadeIn 0.3s ease;
}

/* Responsive */
@media (max-width: 640px) {
    body {
        padding: 1rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .step-header {
        padding: 1.2rem;
    }
    
    .step-header h2 {
        font-size: 1.4rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-buttons button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Horizontal Rule */
hr {
    margin: 1rem 0;
    border-color: #e2e8f0;
}