


/* ===== CSS ПЕРЕМЕННЫЕ ===== */
:root {
    /* Светлая тема */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    --card-background: rgba(255, 255, 255, 0.95);
    --text-color: #333;
    --border-color: rgba(255, 255, 255, 0.3);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --input-background: #ffffff;
    --input-border: #e8e8e8;
    --progress-background: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] {
    /* Темная тема */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --background-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #533483 75%, #7209b7 100%);
    --card-background: rgba(26, 26, 46, 0.9);
    --text-color: #e8eaed;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --input-background: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.1);
    --progress-background: rgba(255, 255, 255, 0.1);
}

/* ===== ОСНОВНЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: transparent;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    transition: all 0.3s ease;
    position: relative;
}

/* Красивый фоновый слой с криптовалютным изображением */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./images/cryptocurrency-4590430_1280.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed;
    opacity: 0.6 !important;
    filter: blur(2px) brightness(1.3) contrast(1.2);
    z-index: -2;
    pointer-events: none;
}

/* Убираем лишний градиентный слой - пусть изображение видно лучше */

/* ===== БЛОК ИНФОРМАЦИИ О РАБОТЕ ===== */
.work-info-block {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 20px;
    padding: 25px;
    margin-top: 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    animation: slideInUp 0.6s ease-out;
}

.work-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.work-info-header i {
    font-size: 28px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.work-info-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
}

.work-info-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--card-background);
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out backwards;
}

.info-item:nth-child(1) { animation-delay: 0.1s; }
.info-item:nth-child(2) { animation-delay: 0.2s; }
.info-item:nth-child(3) { animation-delay: 0.3s; }
.info-item:nth-child(4) { animation-delay: 0.4s; }
.info-item:nth-child(5) { animation-delay: 0.5s; }
.info-item:nth-child(6) { animation-delay: 0.6s; }

.info-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.info-item i {
    font-size: 24px;
    color: #667eea;
    min-width: 24px;
    margin-top: 2px;
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-text strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.info-text span {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимация градиента убрана - используем только фоновое изображение */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== КОНТЕЙНЕР ФОРМЫ ===== */
.form-container {
    background: var(--card-background);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 
        0 25px 50px var(--shadow-color),
        0 8px 25px rgba(255, 193, 7, 0.1),
        inset 0 1px 1px var(--border-color);
    padding: 40px;
    width: 100%;
    max-width: 800px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    animation: shimmer 2s ease-in-out infinite;
}

.form-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-container:hover::after {
    opacity: 1;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* ===== ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ ===== */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-btn {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.theme-btn i {
    font-size: 20px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.theme-btn:hover i {
    transform: rotate(180deg);
}

/* ===== АНИМИРОВАННЫЕ ИКОНКИ ===== */
.animated-icon {
    transition: all 0.3s ease;
    transform-origin: center;
}

.animated-icon:hover {
    transform: scale(1.2) rotate(5deg);
    color: #ffc107;
}

.form-group:focus-within .animated-icon {
    transform: scale(1.1);
    color: #ffc107;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* ===== ОБЕРТКИ ПОЛЕЙ ВВОДА ===== */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input,
.input-wrapper select {
    padding-right: 40px;
}

/* ===== ИНДИКАТОРЫ ВАЛИДАЦИИ ===== */
.validation-icon {
    position: absolute;
    right: 12px;
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.validation-icon.success {
    opacity: 1;
    color: #28a745;
    animation: bounceIn 0.5s ease;
}

.validation-icon.success::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.validation-icon.error {
    opacity: 1;
    color: #dc3545;
    animation: shake 0.5s ease;
}

.validation-icon.error::before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ===== ЗАГОЛОВОК ===== */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.company-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.company-logo i {
    font-size: 32px;
    color: #ffc107;
    background: linear-gradient(45deg, #ffc107, #ffeb3b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company-logo span {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

/* Официальный значок egov.kz */
.official-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(0, 128, 0, 0.1), rgba(0, 170, 0, 0.1));
    border: 2px solid rgba(0, 150, 0, 0.3);
    border-radius: 25px;
    margin-top: 8px;
    animation: officialGlow 2s ease-in-out infinite alternate;
}

.official-badge i {
    color: #00aa00;
    font-size: 16px;
}

.badge-text {
    font-size: 12px;
    color: #00aa00;
    font-weight: 600;
    white-space: nowrap;
}

@keyframes officialGlow {
    0% {
        box-shadow: 0 0 5px rgba(0, 150, 0, 0.3);
        border-color: rgba(0, 150, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 15px rgba(0, 150, 0, 0.5);
        border-color: rgba(0, 150, 0, 0.5);
    }
}

.header h1 {
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.header p {
    font-size: 16px;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== ПРОГРЕСС ЗАПОЛНЕНИЯ ===== */
.form-progress {
    margin: 24px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05), rgba(255, 235, 59, 0.05));
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 12px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.progress-text {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.progress-fields {
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.7;
}

#progressPercent, #filledFields {
    color: #ffc107;
    font-weight: 700;
}

.progress-bar {
    height: 12px;
    background: var(--progress-background, rgba(255, 193, 7, 0.1));
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc107, #ffeb3b, #ffc107);
    border-radius: 6px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50px;
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { left: -50px; }
    100% { left: 100%; }
}

/* ===== ПРОГРЕСС СООБЩЕНИЯ ===== */
.progress-message {
    text-align: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.progress-message.empty {
    background: rgba(108, 117, 125, 0.1);
    color: var(--text-color);
    opacity: 0.7;
}

.progress-message.started {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(253, 126, 20, 0.1));
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.2);
}

.progress-message.good-start {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(253, 126, 20, 0.15));
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.3);
}

.progress-message.half-way {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1), rgba(0, 123, 255, 0.1));
    color: #17a2b8;
    border-color: rgba(23, 162, 184, 0.2);
}

.progress-message.good-progress {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 235, 59, 0.15));
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.3);
}

.progress-message.almost-done {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 235, 59, 0.2));
    color: #e0a800;
    border-color: rgba(255, 193, 7, 0.4);
    animation: pulse 2s infinite;
}

.progress-message.complete {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15), rgba(32, 201, 151, 0.15));
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.3);
    animation: successPulse 1.5s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); box-shadow: 0 0 20px rgba(40, 167, 69, 0.3); }
    100% { transform: scale(1); }
}









/* ===== ФОРМА ===== */
.application-form {
    margin-bottom: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group label i {
    color: #ffc107;
    font-size: 16px;
    width: 16px;
    text-align: center;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid rgba(255, 193, 7, 0.15);
    border-radius: 20px;
    font-size: 16px;
    font-family: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(248, 250, 252, 0.85));
    color: var(--text-color);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    outline: none;
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(255, 193, 7, 0.08);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.form-group input::before,
.form-group select::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 235, 59, 0.3));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: rgba(255, 193, 7, 0.4);
    box-shadow: 0 4px 25px rgba(255, 193, 7, 0.08);
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.92));
}

.form-group input:focus::before,
.form-group select:focus::before {
    opacity: 0.6;
}

.form-group input:valid,
.form-group select:valid {
    border-color: rgba(40, 167, 69, 0.3);
    box-shadow: 0 2px 15px rgba(40, 167, 69, 0.05);
}

.form-group input:hover,
.form-group select:hover {
    transform: translateY(-0.5px);
    box-shadow: 0 3px 20px rgba(255, 193, 7, 0.06);
    border-color: rgba(255, 193, 7, 0.25);
}

.form-group input::placeholder {
    color: rgba(153, 153, 153, 0.6);
    font-weight: 400;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select {
    background: linear-gradient(135deg, rgba(42, 42, 74, 0.9), rgba(26, 26, 46, 0.9));
    border-color: rgba(255, 193, 7, 0.3);
}

[data-theme="dark"] .form-group input::placeholder {
    color: rgba(232, 234, 237, 0.5);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3cpath stroke='%23ffc107' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m19 9-7 7-7-7'/%3e%3c/svg%3e");
    background-position: right 20px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 56px;
    position: relative;
    font-weight: 500;
}

/* Дополнительное скрытие стрелок для разных браузеров */
.form-group select::-ms-expand {
    display: none; /* IE/Edge */
}

.form-group select:hover {
    transform: translateY(-0.5px);
    box-shadow: 0 3px 20px rgba(255, 193, 7, 0.06);
    border-color: rgba(255, 193, 7, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.88));
}

.form-group select:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 25px rgba(255, 193, 7, 0.08);
    border-color: rgba(255, 193, 7, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.92));
}

.form-group select option {
    background: var(--card-background);
    color: var(--text-color);
    padding: 16px 20px;
    border-radius: 12px;
    margin: 4px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid transparent;
    font-size: 15px;
}

.form-group select option:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 235, 59, 0.15));
    border-color: rgba(255, 193, 7, 0.3);
    color: var(--text-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.form-group select option:checked,
.form-group select option:selected {
    background: linear-gradient(135deg, #ffc107, #ffeb3b);
    color: #333;
    font-weight: 600;
    border-color: #ffc107;
}

/* Улучшенные стили для темной темы */
[data-theme="dark"] .form-group select option {
    background: rgba(42, 42, 74, 0.9);
    color: #e8eaed;
    border-color: rgba(255, 193, 7, 0.2);
}

[data-theme="dark"] .form-group select option:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 235, 59, 0.2));
    border-color: rgba(255, 193, 7, 0.4);
    color: #ffffff;
}

/* Улучшенные стили для темной темы */
[data-theme="dark"] .form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3cpath stroke='%23ffc107' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m19 9-7 7-7-7'/%3e%3c/svg%3e");
    background-position: right 20px center;
    background-repeat: no-repeat;
    background-size: 20px;
}

[data-theme="dark"] .form-group select:hover {
    background: linear-gradient(135deg, rgba(42, 42, 74, 0.85), rgba(26, 26, 46, 0.85));
    box-shadow: 0 3px 20px rgba(255, 193, 7, 0.08);
    border-color: rgba(255, 193, 7, 0.3);
}

[data-theme="dark"] .form-group select:focus {
    background: linear-gradient(135deg, rgba(42, 42, 74, 0.9), rgba(26, 26, 46, 0.9));
    box-shadow: 0 4px 25px rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.4);
}

/* Улучшенные анимации для select */
.form-group select {
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.form-group select:hover {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.form-group select:focus {
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Дополнительные эффекты для select */
.form-group select::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 235, 59, 0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.form-group select:focus::after {
    opacity: 1;
}

/* Стрелка остается стабильной при focus - без поворота чтобы избежать суеты */

/* Анимация для мягкого появления */
@keyframes selectGlow {
    0% { 
        box-shadow: 0 3px 20px rgba(255, 193, 7, 0.06);
    }
    50% { 
        box-shadow: 0 4px 25px rgba(255, 193, 7, 0.08);
    }
    100% { 
        box-shadow: 0 3px 20px rgba(255, 193, 7, 0.06);
    }
}

.form-group select:hover {
    animation: selectGlow 4s ease-in-out infinite;
}

/* ===== СЧЁТЧИК СИМВОЛОВ ===== */
.char-counter {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #999;
    pointer-events: none;
    background: #ffffff;
    padding: 0 4px;
}

/* ===== СООБЩЕНИЯ ОБ ОШИБКАХ ===== */
.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.error-message.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== ПРЕДВАРИТЕЛЬНЫЙ ПРОСМОТР ===== */
.preview-section {
    margin: 32px 0;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05), rgba(255, 235, 59, 0.05));
    border: 2px solid rgba(255, 193, 7, 0.2);
    border-radius: 16px;
    animation: slideIn 0.5s ease;
}

.preview-section h3 {
    color: var(--text-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
}

.preview-section h3 i {
    color: #ffc107;
}

.preview-container {
    background: #ffffff;
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 12px;
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.preview-content {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    background: var(--card-background);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

/* Стили для отдельных строк предварительного просмотра */
.preview-item {
    display: flex;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.preview-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.preview-item:hover {
    background: rgba(255, 193, 7, 0.05);
    border-radius: 6px;
    transform: translateX(2px);
    transition: all 0.2s ease;
}

.preview-label {
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.8;
    min-width: 120px;
    margin-right: 16px;
}

.preview-value {
    color: var(--text-color);
    flex: 1;
    font-weight: 500;
}

.preview-header-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 2px solid #ffc107;
}

.preview-time {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    margin-bottom: 20px;
    font-style: italic;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== КНОПКИ ===== */
.form-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
    min-width: 160px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #ffc107, #ffeb3b);
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    background: linear-gradient(135deg, #ffb300, #ffc107);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--card-background);
    color: var(--text-color);
    border: 2px solid #ffc107;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.btn-secondary:hover {
    background: #ffc107;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== НАПОМИНАНИЕ ===== */
.submit-reminder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 14px;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

.submit-reminder i {
    color: #ffc107;
    font-size: 16px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.9; }
}

/* ===== БЛОК БЕЗОПАСНОСТИ ===== */
.security-block {
    margin-top: 40px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(255, 193, 7, 0.05));
    border: 2px solid var(--border-color);
    border-radius: 16px;
    animation: securityAppear 0.8s ease-out;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .security-block {
    background: linear-gradient(135deg, rgba(67, 249, 123, 0.1), rgba(255, 193, 7, 0.1));
    border: 2px solid rgba(67, 249, 123, 0.2);
}

.security-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
}

.security-header i {
    font-size: 24px;
    color: #28a745;
}

.security-header h3 {
    font-size: 20px;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
}

.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.security-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(40, 167, 69, 0.1);
    transition: all 0.3s ease;
}

.security-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15);
    border-color: rgba(40, 167, 69, 0.3);
}

.security-item i {
    font-size: 20px;
    color: #28a745;
    margin-top: 2px;
    flex-shrink: 0;
}

.security-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.security-text strong {
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
}

.security-text span {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
}

.security-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(40, 167, 69, 0.2);
}

.security-footer p {
    color: #495057;
    font-size: 12px;
    margin: 0;
    font-style: italic;
}

@keyframes securityAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== TELEGRAM ОТЗЫВЫ ===== */
.telegram-reviews-block {
    margin-top: 32px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.05), rgba(0, 173, 181, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
    animation: reviewsAppear 1s ease-out;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .telegram-reviews-block {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.1), rgba(0, 173, 181, 0.1));
    border: 1px solid rgba(0, 136, 204, 0.2);
}

.telegram-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.telegram-header i {
    font-size: 28px;
    color: #0088cc;
    animation: pulse 2s infinite;
}

.telegram-header h3 {
    font-size: 22px;
    color: var(--text-color);
    margin: 0;
    font-weight: 600;
}

.telegram-description {
    font-size: 16px;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 32px;
    line-height: 1.6;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #0088cc, #00ade6);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    margin-bottom: 24px;
}

.telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
    background: linear-gradient(135deg, #0077b3, #009dd1);
    text-decoration: none;
    color: white;
}

.telegram-btn i:first-child {
    font-size: 20px;
}

.telegram-btn i:last-child {
    font-size: 14px;
    opacity: 0.8;
}

.telegram-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
}

.stat-item i {
    color: #0088cc;
    font-size: 16px;
}

/* ===== ПЕРЕОПРЕДЕЛЕНИЯ ДЛЯ СВЕТЛОЙ ТЕМЫ ===== */
.security-text strong,
.security-header h3 {
    color: #2c3e50;
}

.preview-time,
.security-text span,
.security-footer p {
    color: #6c757d;
}

/* ===== ПЕРЕОПРЕДЕЛЕНИЯ ДЛЯ ТЕМНОЙ ТЕМЫ ===== */
[data-theme="dark"] .preview-time,
[data-theme="dark"] .security-text span,
[data-theme="dark"] .security-footer p {
    color: var(--text-color) !important;
    opacity: 0.7;
}

[data-theme="dark"] .preview-header-text,
[data-theme="dark"] .preview-value,
[data-theme="dark"] .security-text strong,
[data-theme="dark"] .security-header h3 {
    color: var(--text-color) !important;
}

/* ===== БЕЛЫЕ КАРТОЧКИ В БЛОКАХ ===== */
.security-item {
    background: #ffffff !important;
    color: #2c3e50 !important;
}

.security-item .security-text strong,
.security-item .security-text span {
    color: #2c3e50 !important;
}

.security-item .security-text span {
    color: #6c757d !important;
    opacity: 1;
}

/* Даже в темной теме белые карточки остаются белыми */
[data-theme="dark"] .security-item {
    background: #ffffff !important;
    color: #2c3e50 !important;
}

[data-theme="dark"] .security-item .security-text strong,
[data-theme="dark"] .security-item .security-text span {
    color: #2c3e50 !important;
}

[data-theme="dark"] .security-item .security-text span {
    color: #6c757d !important;
    opacity: 1;
}





.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ffc107;
    transform: scale(1.2);
}

.dot:hover {
    background: #ffc107;
}

@keyframes reviewsAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== УВЕДОМЛЕНИЯ ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(400px);
    transition: all 0.3s ease;
    max-width: 350px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.notification.error {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .form-container {
        padding: 24px;
        border-radius: 16px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        min-width: auto;
        width: 100%;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .company-logo span {
        font-size: 24px;
    }
    
    .official-badge {
        padding: 6px 12px;
    }
    
    .badge-text {
        font-size: 11px;
    }
    
    .official-badge i {
        font-size: 14px;
    }
    
    .notification {
        left: 10px;
        right: 10px;
        top: 10px;
        transform: translateY(-100px);
        max-width: none;
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 20px;
    }
    
    .form-group input,
    .form-group select {
        padding: 18px 20px;
        font-size: 16px; /* Предотвращает зум на iOS */
        border-radius: 18px;
        min-height: 56px;
    }
    
    .form-group select {
        padding-right: 50px;
        background-size: 18px;
        background-position: right 18px center;
    }
    
    .form-group input:focus,
    .form-group select:focus {
        transform: translateY(-2px) scale(1.005);
    }
    
    .form-group input:hover,
    .form-group select:hover {
        transform: translateY(-1px) scale(1.002);
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .preview-container {
        padding: 16px;
    }
    
    .preview-content {
        font-size: 14px;
        padding: 16px;
    }
    
    .preview-header-text {
        font-size: 16px;
    }
    
    .preview-time {
        font-size: 12px;
    }
    
    .preview-item {
        flex-direction: column;
        margin-bottom: 16px;
    }
    
    .preview-label {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 4px;
        font-size: 14px;
    }
    
    .preview-value {
        font-size: 15px;
        padding-left: 8px;
    }
    
    .security-block {
        margin-top: 24px;
        padding: 20px;
    }
    
    .security-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .security-header h3 {
        font-size: 18px;
    }
    
    .security-header i {
        font-size: 20px;
    }
    
    .security-item {
        padding: 12px;
    }
    
    .security-text strong {
        font-size: 13px;
    }
    
    .security-text span {
        font-size: 12px;
    }
    
    .form-progress {
        padding: 16px;
        margin: 16px 0;
    }
    
    .progress-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    

    
    .reviews-block {
        padding: 16px;
        margin-top: 24px;
    }
    
    .reviews-container {
        height: 240px;
    }
    
    .review-item {
        padding: 16px;
    }
    
    .review-text {
        font-size: 14px;
    }
    
    .telegram-reviews-block {
        padding: 24px 16px;
        margin-top: 24px;
    }
    
    .telegram-header h3 {
        font-size: 18px;
    }
    
    .telegram-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .telegram-stats {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .stat-item {
        justify-content: center;
    }
}

/* ===== КНОПКИ ВЫБОРА ЗАРПЛАТЫ ===== */
.salary-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.salary-btn {
    padding: 16px 24px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    color: var(--text-color);
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    text-align: center;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.2);
}

.salary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.salary-btn::after {
    content: '💰';
    position: absolute;
    right: 12px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.salary-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(255, 193, 7, 0.3);
    color: white;
    border-color: rgba(255, 193, 7, 0.4);
}

.salary-btn:hover::before {
    opacity: 1;
}

.salary-btn:hover::after {
    opacity: 1;
    transform: scale(1);
}

.salary-btn.selected {
    background: linear-gradient(135deg, #ffc107, #ffeb3b);
    color: #333;
    font-weight: 700;
    border-color: #ffc107;
    box-shadow: 0 8px 32px rgba(255, 193, 7, 0.4);
    transform: translateY(-2px) scale(1.05);
    animation: selectedPulse 2s infinite;
}

.salary-btn.selected::before {
    opacity: 0;
}

.salary-btn.selected::after {
    opacity: 1;
    transform: scale(1.1);
    color: #333;
}

.salary-btn:active {
    transform: translateY(-1px) scale(0.98);
}

@keyframes selectedPulse {
    0%, 100% { 
        box-shadow: 0 8px 32px rgba(255, 193, 7, 0.4);
    }
    50% { 
        box-shadow: 0 12px 40px rgba(255, 193, 7, 0.6);
    }
}

/* Стили для кнопок зарплаты в темной теме */
[data-theme="dark"] .salary-btn {
    background: linear-gradient(135deg, rgba(42, 42, 74, 0.9), rgba(26, 26, 46, 0.9));
    color: #e8eaed;
    border-color: rgba(255, 193, 7, 0.3);
}

[data-theme="dark"] .salary-btn:hover {
    background: linear-gradient(135deg, rgba(42, 42, 74, 0.95), rgba(26, 26, 46, 0.95));
    color: white;
    border-color: rgba(255, 193, 7, 0.5);
}

[data-theme="dark"] .salary-btn.selected {
    background: linear-gradient(135deg, #ffc107, #ffeb3b);
    color: #333;
    border-color: #ffc107;
}

[data-theme="dark"] .salary-btn.selected::after {
    color: #333;
}

/* ===== ВИЗУАЛИЗАЦИЯ ЗАРПЛАТЫ ===== */
.salary-visualization {
    margin-top: 20px;
    animation: slideIn 0.5s ease;
}

.salary-chart {
    background: var(--card-background);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.selected-amount {
    font-size: 18px;
    font-weight: 700;
    color: #ffc107;
    background: linear-gradient(135deg, #ffc107, #ffeb3b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.salary-scale {
    margin: 16px 0;
}

.scale-track {
    position: relative;
    height: 8px;
    background: rgba(255, 193, 7, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.scale-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #ffc107, #ff6b35);
    border-radius: 4px;
    width: 0%;
    transition: width 0.8s ease;
}

.scale-marker {
    position: absolute;
    top: -2px;
    height: 12px;
    width: 4px;
    background: #333;
    border-radius: 2px;
    left: 0%;
    transition: left 0.8s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

[data-theme="dark"] .scale-marker {
    background: #fff;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 4px;
}

.salary-info {
    text-align: center;
    margin-top: 12px;
}

.monthly-equivalent {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
    font-style: italic;
}

@media (max-width: 768px) {
    .salary-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .salary-btn {
        padding: 14px 18px;
        font-size: 14px;
        min-height: 52px;
        border-radius: 14px;
    }
    
    .salary-btn::after {
        right: 8px;
        font-size: 16px;
    }
    
    .salary-chart {
        padding: 16px;
    }
    
    .chart-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ ===== */
.form-group input:focus + .char-counter {
    color: #ffc107;
}

.form-container:hover {
    box-shadow: 0 25px 70px rgba(255, 193, 7, 0.2);
}

/* Плавные переходы для всех интерактивных элементов */
* {
    transition: all 0.3s ease;
}

/* Убираем переходы для трансформ чтобы избежать конфликтов */
*:not(.btn):not(.notification) {
    transition: all 0.3s ease;
}