* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #e2e8f0;
}

.glass-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 40px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-header {
    text-align: center;
    margin-bottom: 35px;
}

.rocket-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.form-header p {
    color: #94a3b8;
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 20px;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
}

label i {
    color: #818cf8;
    font-size: 0.9rem;
}

label span.required {
    color: #f87171;
    font-size: 0.75rem;
}

input,
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #f1f5f9;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

input::placeholder,
textarea::placeholder {
    color: #64748b;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
    background: rgba(15, 23, 42, 0.8);
}

textarea {
    resize: none;
}

/* Кнопки */
button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(102, 126, 234, 0.5);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loader {
    display: none;
    font-size: 1rem;
}

/* Чекбоксы языков */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 16px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    border-color: #818cf8;
    background: rgba(129, 140, 248, 0.1);
}

.checkbox-label:has(input:checked) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    border-color: #818cf8;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #818cf8;
    cursor: pointer;
}

.checkbox-label span {
    color: #e2e8f0;
    font-size: 0.9rem;
}

/* Уровни языков */
.lang-level {
    margin-left: 28px;
    margin-top: 8px;
    margin-bottom: 15px;
}

.level-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.level-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.level-btn:hover {
    border-color: #818cf8;
}

.level-btn input[type="radio"] {
    display: none;
}

.level-btn span {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

.level-btn:has(input:checked) {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #818cf8;
}

.level-btn:has(input:checked) span {
    color: white;
    font-weight: 600;
}

/* Прогресс бар */
.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px 24px 0 0;
    overflow: hidden;
}

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

/* Соцсети */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-input {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.social-input i {
    font-size: 1.2rem;
    color: #818cf8;
    width: 24px;
}

.social-input input {
    border: none;
    background: transparent;
    padding: 0;
}

/* Навыки теги */
.skills-input input {
    margin-bottom: 10px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    font-size: 0.85rem;
    animation: tagPop 0.3s ease;
}

@keyframes tagPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.skill-tag i {
    cursor: pointer;
    font-size: 0.7rem;
    opacity: 0.7;
}

.skill-tag i:hover {
    opacity: 1;
}

/* Подсказки */
.input-group {
    position: relative;
}

/* SMS тоггл */
.sms-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sms-toggle input {
    display: none;
}

.toggle-slider {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
}

.sms-toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.sms-toggle input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-text {
    color: #e2e8f0;
    font-size: 0.9rem;
}

.toggle-text i {
    margin-right: 8px;
    color: #818cf8;
}

/* Разработчик */
.developer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.developer span {
    font-size: 0.8rem;
    color: #818cf8;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
        text-shadow: 0 0 5px rgba(129, 140, 248, 0.3);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(129, 140, 248, 0.8);
    }
    100% {
        opacity: 0.6;
        text-shadow: 0 0 5px rgba(129, 140, 248, 0.3);
    }
}

/* Адаптив */
@media (max-width: 600px) {
    .glass-container {
        padding: 25px;
    }
    
    .row {
        grid-template-columns: 1fr;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .checkbox-group {
        flex-direction: column;
    }
    
    .checkbox-label {
        width: 100%;
    }
}
