body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1f1f1f;
}

.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    width: 140px;
}

.registration-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.registration-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    min-height: 600px; /* Prevents CLS when loading content */
}

.registration-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 36px 30px;
}

.registration-header h1 {
    font-weight: 300;
    font-size: 2.6rem;
    margin-bottom: 12px;
}

.registration-body {
    padding: 40px 48px 48px;
}

.progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0;
    transition: width 0.4s ease;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 28px 0;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 8px;
    padding: 0 24px;
    overflow: hidden;
    min-height: 34px; /* Prevents CLS */
}

.step-indicator .step {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    background: #e9ecef;
    color: #6c757d;
    transition: all 0.3s ease;
    flex: 0 0 auto;
}

.step-indicator .step.active {
    background: #667eea;
    color: #fff;
    transform: scale(1.05);
}

.step-indicator .step.completed {
    background: #28a745;
    color: #fff;
}

.step-line {
    width: 28px;
    height: 2px;
    background: #e9ecef;
    transition: background 0.3s ease;
    flex: 0 0 auto;
}

.step-line.completed {
    background: #28a745;
}

.step-content {
    display: none;
    min-height: 400px; /* Prevents CLS when switching steps */
}

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

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.2);
}

.btn {
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 28px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover,
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.24);
}

.btn-outline-secondary {
    border-width: 2px;
}

.alert {
    border-radius: 12px;
    transition: opacity 0.3s ease;
}

.info-block {
    background: #f8f9ff;
    border: 1px solid #eef0ff;
    border-radius: 14px;
    padding: 20px 24px;
    color: #343a40;
}

.info-block h4 {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* Prevent CLS for icons */
.fas, .fab {
    width: 1em;
    height: 1em;
    display: inline-block;
}

/* Fixed sizes for large icons */
.fa-4x {
    width: 4rem;
    height: 4rem;
}

#blocked-actions {
    display: flex;
    justify-content: center;
}

#blocked-actions > * {
    min-width: 210px;
}

@media (max-width: 768px) {
    .registration-body {
        padding: 32px 16px;
    }

    .language-switcher {
        position: static;
        width: 100%;
        margin: 16px auto;
    }

    .btn {
        width: 100%;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 12px;
    }

    .step-indicator {
        padding: 0 8px;
        gap: 2px;
        overflow-x: visible;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }

    .step-indicator .step:nth-child(n+5) {
        margin-top: 4px;
    }

    .step-indicator .step {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .step-line {
        width: 12px;
    }
}

@media (max-width: 480px) {
    .step-indicator {
        gap: 1px;
        padding: 0 4px;
    }

    .step-indicator .step {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }

    .step-line {
        width: 8px;
    }

    .registration-body {
        padding: 24px 12px;
    }

    .registration-header {
        padding: 24px 20px;
    }

    .registration-header h1 {
        font-size: 2.2rem;
    }
}
