/* ============================================
   WP SLIDING GLAZING - СТИЛИ
   Цвета: #a5c064, #071f3b
   ============================================ */

.wpsg-quiz {
    max-width: 900px;
    margin: 0 auto;
    font-family: inherit;
    padding: 20px 0;
}

/* Прогресс */
.wpsg-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    justify-content: center;
}

.wpsg-progress-item {
    width: 40px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 4px;
    transition: all 0.5s ease;
}

.wpsg-progress-item.wpsg-active {
    background: #a5c064;
}

.wpsg-progress-item.wpsg-done {
    background: #a5c064;
    opacity: 0.6;
}

/* Счетчик */
.wpsg-subtitle {
    text-align: center;
    color: #071f3b;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
}

.wpsg-subtitle span {
    color: #a5c064;
    font-weight: 700;
}

/* Вопросы */
.wpsg-item {
    display: none;
    animation: wpsgFadeIn 0.5s ease;
}

.wpsg-item.wpsg-active {
    display: block;
}

@keyframes wpsgFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.wpsg-title {
    font-size: 28px;
    font-weight: 600;
    color: #071f3b;
    margin-bottom: 30px;
    text-align: center;
}

/* Радио */
.wpsg-row {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.wpsg-row-2 { grid-template-columns: repeat(2, 1fr); }
.wpsg-row-3 { grid-template-columns: repeat(3, 1fr); }
.wpsg-row-4 { grid-template-columns: repeat(4, 1fr); }
.wpsg-row-6 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
    .wpsg-row-2, .wpsg-row-3, .wpsg-row-4, .wpsg-row-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .wpsg-row-2, .wpsg-row-3, .wpsg-row-4, .wpsg-row-6 {
        grid-template-columns: 1fr;
    }
}

.wpsg-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;
}

.wpsg-radio:hover {
    border-color: #a5c064;
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(165, 192, 100, 0.15);
}

.wpsg-radio input[type="radio"] {
    display: none;
}

.wpsg-radio input[type="radio"]:checked ~ .wpsg-radio-check {
    background: #a5c064;
    border-color: #a5c064;
}

.wpsg-radio input[type="radio"]:checked ~ .wpsg-radio-check::after {
    display: block;
}

.wpsg-radio input[type="radio"]:checked ~ .wpsg-radio-title {
    color: #a5c064;
    font-weight: 600;
}

.wpsg-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;
}

.wpsg-radio-check::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    display: none;
}

.wpsg-radio-title {
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.wpsg-radio-image {
    display: block;
    margin-top: 10px;
}

.wpsg-radio-image img {
    max-width: 100%;
    max-height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

/* Размеры */
.wpsg-size {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto 30px;
}

@media (max-width: 480px) {
    .wpsg-size {
        grid-template-columns: 1fr;
    }
}

.wpsg-size-field label {
    display: block;
    font-weight: 500;
    color: #071f3b;
    margin-bottom: 8px;
}

.wpsg-size-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    text-align: center;
}

.wpsg-size-input:focus {
    outline: none;
    border-color: #a5c064;
}

/* Кнопка */
.wpsg-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.wpsg-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;
}

.wpsg-btn:hover {
    background: #071f3b;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(7, 31, 59, 0.2);
}

/* Результат */
.wpsg-result-block {
    max-width: 600px;
    margin: 0 auto 30px;
}

.wpsg-result-summary {
    background: #f5f8f0;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 20px;
    border-left: 4px solid #a5c064;
}

.wpsg-result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
}

.wpsg-result-item:last-child {
    border-bottom: none;
}

.wpsg-result-label {
    color: #666;
    font-weight: 500;
}

.wpsg-result-value {
    color: #071f3b;
    font-weight: 600;
}

.wpsg-result-subtitle {
    text-align: center;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Форма */
.wpsg-form-block {
    max-width: 500px;
    margin: 0 auto;
}

.wpsg-form-text {
    text-align: center;
    font-size: 18px;
    color: #071f3b;
    margin-bottom: 20px;
}

/* Мессенджеры */
.wpsg-messengers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.wpsg-messenger {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.wpsg-messenger a {
    color: #a5c064;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-left: 5px;
}

.wpsg-messenger a:hover {
    color: #071f3b;
    text-decoration: underline;
}

/* Стили WPForms внутри */
.wpsg-wpforms .wpforms-container {
    margin: 0 !important;
}

.wpsg-wpforms .wpforms-field {
    padding: 5px 0 !important;
}

.wpsg-wpforms .wpforms-submit {
    background: #a5c064 !important;
    border-color: #a5c064 !important;
    color: #fff !important;
    padding: 14px 30px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.wpsg-wpforms .wpforms-submit:hover {
    background: #071f3b !important;
    border-color: #071f3b !important;
}

.wpsg-wpforms .wpforms-field-label {
    color: #071f3b !important;
    font-weight: 500 !important;
}

.wpsg-wpforms .wpforms-field input,
.wpsg-wpforms .wpforms-field textarea {
    border-color: #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
}

.wpsg-wpforms .wpforms-field input:focus,
.wpsg-wpforms .wpforms-field textarea:focus {
    border-color: #a5c064 !important;
}

/* Успех */
.wpsg-success {
    text-align: center;
    padding: 40px;
    animation: wpsgFadeIn 0.5s ease;
}

.wpsg-success h3 {
    font-size: 32px;
    color: #a5c064;
    margin-bottom: 15px;
}

.wpsg-success p {
    font-size: 18px;
    color: #071f3b;
}