/* Основные заголовки */
.main-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--text-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.main-subtitle {
    font-size: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Контейнер формы */
.container {
    margin: 0 auto;
    margin-top: 5%;
    padding-bottom: 5%;
}

.questions-container {
    max-width: 800px;
    width: 100%;
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 4rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.questions-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Группы полей */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group label {
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background-color: var(--darker-bg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: var(--text);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    min-height: 250px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.3);
    transform: translateY(-2px);
}

/* Кнопка */
.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
}

.btn-large:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Стили для неактивной кнопки */
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: linear-gradient(135deg, var(--gray) 0%, var(--dark-gray) 100%) !important;
    pointer-events: none;
}

.btn-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Переменные цветов */
:root {
    --gray: #6c757d;
    --dark-gray: #495057;
}

/* Стили для блока соглашений */
.agreements-block {
    margin: 1rem 0 2rem;
    padding: 1.5rem;
    background: var(--darker-bg);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.agreement-item {
    margin-bottom: 1.2rem;
}

.agreement-item:last-child {
    margin-bottom: 0;
}

.agreement-item.required .checkbox-text {
    font-weight: 500;
}

.agreement-item.optional {
    opacity: 0.9;
}

/* Стили для кастомного чекбокса */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: var(--card-bg);
    border: 2px solid var(--accent);
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"]:focus + .checkbox-custom {
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.3);
}

.checkbox-text {
    flex: 1;
}

/* Стили для ссылок */
.agreement-link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent);
    transition: all 0.3s ease;
}

.agreement-link:hover {
    color: var(--accent-light);
    border-bottom-style: solid;
}

.required-star {
    color: #ff4444;
    margin-left: 4px;
    font-weight: bold;
}

/* Стили для тултипа */
.tooltip-icon {
    color: var(--accent);
    margin-left: 6px;
    font-size: 0.9rem;
    cursor: help;
    position: relative;
}

.tooltip-icon:hover {
    color: var(--accent-light);
}

.tooltip-icon:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    border: 1px solid var(--accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

/* Состояние ошибки */
.checkbox-label.error .checkbox-custom {
    border-color: #ff4444;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Кнопка-триггер для открытия модального окна */
.service-trigger {
    text-align: center;
    margin-bottom: 2rem;
}

.service-trigger-btn {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.service-trigger-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.service-trigger-btn i {
    font-size: 1.2rem;
}

/* Стили модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

/* Стили для модального окна сервиса */
.service-modal .modal-content {
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 0;
    background: var(--darker-bg);
}

.service-modal-header {
    position: relative;
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-modal-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.service-modal-icon i {
    filter: drop-shadow(0 4px 10px rgba(67, 97, 238, 0.3));
}

.service-modal-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--text-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.service-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-modal-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.service-modal-body {
    padding: 2rem;
}

.service-section {
    margin-bottom: 2.5rem;
}

.service-section h3 {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    text-align: center;
}

.service-section p {
    color: var(--text);
    line-height: 1.6;
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Стили для шагов */
.steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.step {
    display: flex;
    justify-content: center;
}

.step-content {
    text-align: center;
}

.step-content strong {
    color: var(--text-light) !important;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    max-width: 100%;
}

/* Стили для важного списка */
.important-list {
    list-style: none;
    padding: 0;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.important-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    text-align: left;
}

.important-list i {
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.important-list span {
    color: var(--text);
    line-height: 1.5;
}

/* Стили для примеров */
.examples {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.example {
    background: var(--card-bg);
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    font-style: italic;
    color: var(--text-muted);
    text-align: left;
}

.example i {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--accent);
    opacity: 0.3;
    font-size: 1.2rem;
}

.service-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Стили для модального окна успеха */
.modal-icon {
    font-size: 5rem;
    color: #4CAF50;
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s ease;
}

.modal-icon i {
    filter: drop-shadow(0 4px 10px rgba(76, 175, 80, 0.3));
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--text-light), #4CAF50);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modal-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 5rem 0% 3rem;
    }
    
    .questions-container {
        padding: 2rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .main-subtitle {
        font-size: 1.2rem;
    }
    
    .agreements-block {
        padding: 1rem;
    }
    
    .checkbox-text {
        font-size: 0.9rem;
    }
    
    .service-modal .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .service-modal-title {
        font-size: 1.5rem;
    }
    
    .service-modal-body {
        padding: 1.5rem;
    }
    
    .service-section p {
        max-width: 100%;
    }
    
    .steps {
        max-width: 100%;
        gap: 1.5rem;
    }
    
    .important-list {
        max-width: 100%;
    }
    
    .important-list li {
        padding: 0.5rem;
    }
    
    .examples {
        max-width: 100%;
    }
    
    .modal-content {
        padding: 2rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-text {
        font-size: 1rem;
    }
}

/* Стили для списка важных пунктов на мобильных */
@media (max-width: 480px) {
    .important-list li {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .example {
        padding: 1rem;
        font-size: 0.95rem;
    }
}