/* ==================================
   СТИЛИ ДЛЯ ФОРМЫ КВИЗА
   ================================== */

/* Контейнер формы */
.leadform {
    max-width: 600px;
    margin: 30px auto;
    padding: 40px 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .leadform {
        padding: 30px 20px;
        margin: 20px auto;
    }
}

/* Поля ввода */
.leadform input[type="text"],
.leadform input[type="email"],
.leadform input[type="tel"] {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 16px;
    font-family: 'RalewayRegular', sans-serif;
    color: #333;
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.leadform input[type="text"]:focus,
.leadform input[type="email"]:focus,
.leadform input[type="tel"]:focus {
    outline: none;
    border-color: #2e5c8a;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(46, 92, 138, 0.1);
}

.leadform input::placeholder {
    color: #999;
    font-size: 15px;
}

/* Стили для телефонного ввода с intl-tel-input */
.leadform .phone {
    position: relative;
    margin-bottom: 20px;
}

.leadform .phone input[type="tel"] {
    margin-bottom: 0;
}

/* Сообщения об ошибках */
.leadform .error-msg {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.leadform .error-msg.hide {
    display: none;
}

/* Кнопка отправки */
.leadform button[type="submit"],
.leadform .submit {
    width: 100%;
    padding: 18px 30px;
    margin-top: 10px;
    font-size: 18px;
    font-family: 'MontserratBold', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(135deg, #2e5c8a 0%, #1e3c5a 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 92, 138, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.leadform button[type="submit"]:hover,
.leadform .submit:hover {
    background: linear-gradient(135deg, #1e3c5a 0%, #2e5c8a 100%);
    box-shadow: 0 6px 20px rgba(46, 92, 138, 0.4);
    transform: translateY(-2px);
}

.leadform button[type="submit"]:active,
.leadform .submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(46, 92, 138, 0.3);
}

/* Иконка в кнопке */
.leadform button[type="submit"] i,
.leadform .submit i {
    margin-left: 10px;
}

/* Прелоадер формы */
.leadform .form-preloader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.leadform .form-preloader.hidden {
    display: none;
}

/* SVG спиннер */
.leadform .spinner {
    animation: rotate 2s linear infinite;
}

.leadform .spinner .path {
    stroke: #2e5c8a;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Текст безопасности */
.result-lock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: #6c757d;
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    font-family: 'RalewayRegular', sans-serif;
}

.result-lock::before {
    content: "🔒";
    font-size: 20px;
}

@media (max-width: 480px) {
    .result-lock {
        font-size: 12px;
        padding: 12px;
    }
}

/* Grid layout для формы с двумя колонками */
.leadform .row {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

.leadform .row .col-xs-12 {
    flex: 1;
}

@media (max-width: 768px) {
    .leadform .row {
        flex-direction: column;
        gap: 0;
    }
}

/* Стили для валидации */
.leadform input.valid {
    border-color: #28a745;
}

.leadform input.error,
.leadform input.invalid {
    border-color: #dc3545;
}

/* Анимация появления формы */
.leadform {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Заголовок над формой */
.tasks-title {
    text-align: center;
    margin-bottom: 30px;
    color: #2e5c8a;
}

/* Дополнительная информация */
.result-item-wrap {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

.result-item::before {
    content: "✓";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
}

@media (max-width: 600px) {
    .result-item-wrap {
        flex-direction: column;
        align-items: center;
    }
}
