* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Основной контейнер формы */
.registration-container {
    max-width: 480px;
    width: 100%;
    background: white;
    padding: 48px 40px;
}

/* Логотип */
.logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo img {
    width: 140px;
    height: auto;
}

/* Переключатель языков */
.lang-switch {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 24px;
}

.lang-btn {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.2s;
    color: #666;
}

.lang-btn.active {
    background: #f0f0f0;
    color: #000;
}

h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
    text-align: center;
}

.title {
    margin-bottom: 32px;
}

/* Поля формы */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.required-star {
    color: #e53e3e;
    margin-left: 2px;
}

input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    transition: all 0.2s;
    outline: none;
    background: #fff;
}

input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.hint {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

/* Чекбокс */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0 20px;
}

.checkbox-group input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
    font-size: 14px;
    cursor: pointer;
}

.terms-link {
    color: #2188ED;
    text-decoration: none;
    font-weight: 500;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Кнопка */
button[type="submit"] {
    width: 100%;
    background: #2188ED;
    color: white;
    border: none;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

button[type="submit"]:hover {
    background: #267ED5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* Ссылка на логин */
.login-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #666;
}

.login-link a {
    color: #2188ED;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Ошибки */
.error-msg {
    color: #e53e3e;
    font-size: 12px;
    margin-top: 6px;
}

/* Успешное сообщение */
.success-message {
    background: #48bb78;
    color: white;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Лоадер */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}

.main-content {
    text-align: center;
    margin-bottom: 40px;
}

.thankyou-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.thankyou-message {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 16px;
}

.thankyou-message:last-of-type {
    margin-bottom: 0;
}

/* Блок Telegram */
.telegram-block {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.telegram-text {
    font-size: 14px;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.5;
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #0088cc;
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s;
}

.telegram-link:hover {
    background: #0077b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.telegram-icon {
    width: 24px;
    height: 24px;
    fill: white;
}

@media (max-width: 480px) {
    .thankyou-container {
        padding: 32px 24px;
    }
    
    .thankyou-title {
        font-size: 28px;
    }
    
    .telegram-link {
        padding: 10px 24px;
        font-size: 14px;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
        