/**
 * Стили верификации заведений mos77.ru
 * - Бейдж на карточке (галочка)
 * - Трастовый блок на странице заведения (Trust Box)
 * - Плашка для владельца (Owner Claim Bar)
 * - Модальное окно тарифов и заявки
 */

/* 1. Бейдж на карточке в каталоге */
.mc-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-left: 4px;
    color: #0284c7;
    cursor: help;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}
.mc-verified-badge:hover {
    transform: scale(1.15);
}
.mc-verified-badge svg {
    display: block;
}

/* 2. Трастовый блок на странице заведения */
.mos77-verified-box {
    margin: 20px 0 24px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.06);
    position: relative;
    font-size: 14px;
    line-height: 1.5;
}
.mos77-vb-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.mos77-vb-shield {
    font-size: 28px;
    line-height: 1;
}
.mos77-vb-head {
    display: flex;
    flex-direction: column;
}
.mos77-vb-title {
    font-size: 16px;
    font-weight: 800;
    color: #0369a1;
}
.mos77-vb-check {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #0284c7;
}
.mos77-vb-desc {
    margin: 0 0 12px 0;
    color: #334155;
    font-size: 13.5px;
}
.mos77-vb-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-top: 10px;
    border-top: 1px dashed #bae6fd;
    font-size: 12.5px;
    color: #475569;
}
.mos77-vb-item b {
    color: #0f172a;
}
.mos77-vb-verified-tag {
    color: #059669;
    font-weight: 700;
    background: #d1fae5;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
}
.mos77-vb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.mos77-vb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.mos77-vb-btn--wa {
    background: #25d366;
    color: #fff !important;
}
.mos77-vb-btn--wa:hover {
    background: #20bd5a;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}
.mos77-vb-btn--phone {
    background: #0284c7;
    color: #fff !important;
}
.mos77-vb-btn--phone:hover {
    background: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}
.mos77-vb-btn--site {
    background: #fff;
    color: #0369a1 !important;
    border: 1px solid #7dd3fc;
}
.mos77-vb-btn--site:hover {
    background: #f8fafc;
    border-color: #0284c7;
}

/* 3. Плашка для владельца (Claim Bar) - отключена */
.mos77-claim-bar {
    display: none !important;
}
.mos77-cb-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}
.mos77-cb-icon {
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
}
.mos77-cb-text {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: #475569;
}
.mos77-cb-text strong {
    font-size: 12.5px;
    color: #0f172a;
    font-weight: 700;
    white-space: nowrap;
}
.mos77-cb-text span {
    color: #64748b;
}
.mos77-cb-btn {
    flex-shrink: 0;
    padding: 5px 11px;
    background: #0284c7;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.mos77-cb-btn:hover {
    background: #0369a1;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

@media (max-width: 640px) {
    .mos77-claim-bar {
        padding: 6px 10px;
        gap: 8px;
        flex-direction: row;
        align-items: center;
    }
    .mos77-cb-text {
        font-size: 11.5px;
        gap: 3px;
    }
    .mos77-cb-text strong {
        font-size: 12px;
    }
    .mos77-cb-text span {
        display: none;
    }
    .mos77-cb-btn {
        width: auto;
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* 4. Модальное окно подтверждения заведения (Redesign) */
.mos77-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
    padding: 16px;
    box-sizing: border-box;
}

.mos77-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.mos77-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mos77-modal__dialog {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 22px;
    width: 100%;
    max-width: 640px;
    max-height: 92vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 32px 36px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    transform: scale(0.96) translateY(8px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mos77-modal.is-active .mos77-modal__dialog {
    transform: scale(1) translateY(0);
}

/* Кнопка закрытия */
.mos77-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    transition: all 0.15s ease;
    z-index: 5;
}

.mos77-modal__close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

/* Заголовок модалки */
.mos77-modal__header {
    text-align: center;
    margin-bottom: 20px;
}

.mos77-modal__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}

.mos77-modal__title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 8px 0;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.mos77-modal__lead {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Карточка выбранного заведения */
.mos77-ver-venue-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.mos77-vvc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mos77-vvc-info {
    flex: 1;
    min-width: 0;
}

.mos77-vvc-sub {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 2px;
}

.mos77-vvc-name {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mos77-vvc-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #059669;
    background: #d1fae5;
    padding: 4px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}

.mos77-status-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
    animation: mos77Pulse 2s infinite;
}

@keyframes mos77Pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Преимущества 2x2 */
.mos77-ver-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}

.mos77-vf-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fafafa;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 10px 12px;
    transition: border-color 0.2s;
}

.mos77-vf-card:hover {
    border-color: #cbd5e1;
    background: #fff;
}

.mos77-vf-ico-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--ico-bg, #f1f5f9);
    color: var(--ico-color, #0284c7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.mos77-vf-content {
    font-size: 12px;
    line-height: 1.35;
}

.mos77-vf-content strong {
    display: block;
    color: #0f172a;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 2px;
}

.mos77-vf-content span {
    color: #64748b;
    display: block;
}

/* Тарифы */
.mos77-ver-tariffs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.mos77-tariff-card {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.mos77-tariff-card:hover {
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.mos77-tariff-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mos77-tariff-card.is-selected {
    border-color: #0284c7;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
    box-shadow: 0 8px 24px -4px rgba(2, 132, 199, 0.16);
}

.mos77-tariff-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.mos77-tariff-tag {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.mos77-tag-premium {
    color: #7c3aed;
}

.mos77-tariff-badge-save {
    background: #dcfce7;
    color: #15803d;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.mos77-tariff-badge-pop {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.mos77-tariff-name {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.mos77-tariff-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 2px;
}

.mos77-price-number {
    font-size: 22px;
    font-weight: 900;
    color: #0284c7;
    letter-spacing: -0.5px;
}

.mos77-tariff-card[data-tariff="premium"].is-selected .mos77-price-number {
    color: #7c3aed;
}

.mos77-price-term {
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
}

.mos77-tariff-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 10px;
    font-weight: 500;
}

.mos77-tariff-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 10px;
    margin-top: auto;
}

.mos77-tariff-list li {
    font-size: 11.5px;
    color: #334155;
    line-height: 1.35;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.mos77-tariff-list li span {
    color: #0284c7;
    font-weight: 800;
    font-size: 11px;
    flex-shrink: 0;
}

.mos77-tariff-card[data-tariff="premium"] .mos77-tariff-list li span {
    color: #7c3aed;
}

/* Поля формы */
.mos77-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.mos77-form-group {
    display: flex;
    flex-direction: column;
}

.mos77-form-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.mos77-req {
    color: #ef4444;
}

.mos77-opt {
    color: #94a3b8;
    font-weight: 400;
    font-size: 11px;
}

.mos77-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13.5px;
    color: #0f172a;
    background: #ffffff;
    box-sizing: border-box;
    transition: all 0.15s ease;
    font-family: inherit;
}

.mos77-input::placeholder {
    color: #94a3b8;
    font-size: 12.5px;
}

.mos77-input:focus {
    border-color: #0284c7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Действия формы */
.mos77-form-actions {
    margin-top: 18px;
}

.mos77-btn-submit {
    width: 100%;
    height: 48px;
    padding: 0 20px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px -3px rgba(2, 132, 199, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
}

.mos77-btn-submit:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    box-shadow: 0 10px 24px -2px rgba(2, 132, 199, 0.45);
    transform: translateY(-1px);
}

.mos77-btn-submit:active {
    transform: translateY(0);
}

.mos77-btn-submit:disabled {
    background: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Статус отправки */
.mos77-form-status {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.mos77-form-status.is-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.mos77-form-status.is-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Подвал доверия */
.mos77-trust-footer {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mos77-tf-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.35;
    text-align: center;
}

/* Мобильная адаптация */
@media (max-width: 600px) {
    .mos77-modal {
        padding: 10px;
    }
    .mos77-modal__dialog {
        padding: 22px 16px;
        border-radius: 18px;
    }
    .mos77-modal__title {
        font-size: 18px;
    }
    .mos77-ver-venue-card {
        padding: 10px 12px;
        flex-wrap: wrap;
    }
    .mos77-vvc-status {
        width: 100%;
        justify-content: center;
    }
    .mos77-ver-features,
    .mos77-ver-tariffs,
    .mos77-form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .mos77-vf-card {
        padding: 8px 10px;
    }
    .mos77-tariff-card {
        padding: 12px 14px;
    }
    .mos77-btn-submit {
        font-size: 14px;
        height: 46px;
    }
    .mos77-tf-item {
        font-size: 11px;
    }
}
