/* ============================================
   WP GIL QUIZ - СТИЛИ
   Цвета: #a5c064 (основной), #071f3b (темный)
   ============================================ */

.wpgq-quiz {
    max-width: 900px;
    margin: 0 auto;
    font-family: inherit;
    padding: 20px 0;
}

/* Прогресс */
.wpgq-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    justify-content: center;
}

.wpgq-progress-item {
    width: 40px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 4px;
    transition: all 0.5s ease;
}

.wpgq-progress-item.wpgq-active {
    background: #a5c064;
}

.wpgq-progress-item.wpgq-done {
    background: #a5c064;
    opacity: 0.6;
}

/* Счетчик */
.wpgq-subtitle {
    text-align: center;
    color: #071f3b;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
}

.wpgq-subtitle span {
    color: #a5c064;
    font-weight: 700;
}

/* Вопросы */
.wpgq-item {
    display: none;
    animation: wpgqFadeIn 0.5s ease;
}

.wpgq-item.wpgq-active {
    display: block;
}

@keyframes wpgqFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.wpgq-title {
    font-size: 28px;
    font-weight: 600;
    color: #071f3b;
    margin-bottom: 30px;
    text-align: center;
}

/* Радио */
.wpgq-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.wpgq-radio {
    position: relative;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
}

.wpgq-radio:hover {
    border-color: #a5c064;
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(165, 192, 100, 0.15);
}

.wpgq-radio input[type="radio"] {
    display: none;
}

.wpgq-radio input[type="radio"]:checked ~ .wpgq-radio-check {
    background: #a5c064;
    border-color: #a5c064;
}

.wpgq-radio input[type="radio"]:checked ~ .wpgq-radio-check::after {
    display: block;
}

.wpgq-radio input[type="radio"]:checked ~ .wpgq-radio-title {
    color: #a5c064;
    font-weight: 600;
}

.wpgq-radio-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.wpgq-radio-check::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    display: none;
}

.wpgq-radio-title {
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.wpgq-radio-image {
    display: block;
    margin-top: 10px;
}

.wpgq-radio-image img {
    max-width: 100%;
    max-height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

/* Кнопка */
.wpgq-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.wpgq-btn {
    background: #a5c064;
    color: #fff;
    border: none;
    padding: 14px 45px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpgq-btn:hover {
    background: #071f3b;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(7, 31, 59, 0.2);
}

/* Загрузка файла */
.wpgq-file-drop {
    border: 2px dashed #a5c064;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.wpgq-file-drop:hover {
    background: #f0f5e8;
}

.wpgq-file-drop svg {
    margin-bottom: 15px;
}

.wpgq-file-drop span {
    display: block;
    color: #666;
    font-size: 14px;
}

.wpgq-file-drop input[type="file"] {
    display: none;
}

/* Форма */
.wpgq-form-block {
    max-width: 500px;
    margin: 0 auto;
}

.wpgq-form-text {
    text-align: center;
    font-size: 18px;
    color: #071f3b;
    margin-bottom: 20px;
}

.wpgq-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpgq-form input[type="tel"] {
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.wpgq-form input[type="tel"]:focus {
    outline: none;
    border-color: #a5c064;
}

.wpgq-form-btn {
    background: #a5c064;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpgq-form-btn:hover {
    background: #071f3b;
}

.wpgq-form-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Telegram */
.wpgq-telegram {
    text-align: center;
    margin: 20px 0;
    font-size: 14px;
    color: #666;
}

.wpgq-telegram a {
    color: #a5c064;
    text-decoration: none;
    font-weight: 600;
}

.wpgq-telegram a:hover {
    color: #071f3b;
    text-decoration: underline;
}

/* Политика */
.wpgq-policy {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}

.wpgq-policy label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.wpgq-policy input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #a5c064;
}

.wpgq-policy a {
    color: #a5c064;
    text-decoration: none;
}

.wpgq-policy a:hover {
    color: #071f3b;
    text-decoration: underline;
}

/* Успех */
.wpgq-success {
    text-align: center;
    padding: 40px;
    animation: wpgqFadeIn 0.5s ease;
}

.wpgq-success h3 {
    font-size: 32px;
    color: #a5c064;
    margin-bottom: 15px;
}

.wpgq-success p {
    font-size: 18px;
    color: #071f3b;
}

/* Адаптив */
@media (max-width: 768px) {
    .wpgq-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .wpgq-title {
        font-size: 22px;
    }
    
    .wpgq-progress-item {
        width: 30px;
    }
}

@media (max-width: 480px) {
    .wpgq-row {
        grid-template-columns: 1fr;
    }
    
    .wpgq-title {
        font-size: 18px;
    }
}
/* Дополнительные стили для файлового поля */
.wpgq-file-drop {
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpgq-file-drop:hover {
    border-color: #071f3b !important;
    background: #e8f0d8 !important;
}

.wpgq-file-drop .wpgq-drop-text {
    pointer-events: none;
}

.wpgq-file-drop input[type="file"] {
    display: none;
}

.wpgq-file-info {
    color: #071f3b;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}