/* ═══════════════════════════════════════════════════════════════
   KS Contact Method Buttons — замена select-а на сетку кнопок
   ═══════════════════════════════════════════════════════════════ */

/* Скрываем нативный select — он остаётся в DOM для сабмита */
.kscb-hidden {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Сетка кнопок */
.qpt-contact-btns {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

/* Одна кнопка */
.qpt-contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px;
    border: 1.5px solid #e3e3e3;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
    min-height: 64px;
    text-align: center;
    user-select: none;
}

.qpt-contact-btn:hover {
    border-color: #20B8AD;
    background: #f0fdfc;
    transform: translateY(-1px);
}

.qpt-contact-btn svg,
.qpt-contact-btn img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.qpt-contact-btn svg {
    color: #444;
    transition: color 0.15s;
}

.qpt-contact-btn span {
    font-size: 11px;
    line-height: 1.2;
    color: #555;
    font-weight: 500;
    transition: color 0.15s;
}

/* Активная кнопка */
.qpt-contact-btn.is-active {
    border-color: #20B8AD;
    background: #e8faf8;
    box-shadow: 0 2px 8px rgba(32, 184, 173, 0.15);
}

.qpt-contact-btn.is-active svg {
    color: #20B8AD;
}

.qpt-contact-btn.is-active span {
    color: #20B8AD;
    font-weight: 600;
}

/* Мобильная адаптация — кнопки в 2 ряда */
@media (max-width: 480px) {
    .qpt-contact-btns {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .qpt-contact-btn {
        padding: 8px 4px;
        min-height: 58px;
    }
    .qpt-contact-btn span {
        font-size: 10px;
    }
}
