:root {
    --mega-green: #00B956;
    --mega-blue: #4B83F2;
    --bg: #F6F9FB;
}

body { font-family: 'Segoe UI', sans-serif; background: var(--bg); display: flex; justify-content: center; padding: 20px; }
.container { background: white; padding: 30px; border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); max-width: 1000px; width: 100%; }

/* Тарифы */
.tariff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 15px; margin-bottom: 30px; }
.tariff-card { border: 2px solid #7f7878; padding: 20px; border-radius: 20px; cursor: pointer; transition: 0.2s; background: #fff; position: relative; }

.tariff-card.tar-blue { background: var(--mega-blue); color: #fff; border-color: var(--mega-blue); }
.tar-blue .tariff-name, .tar-blue .t-speed, .tar-blue .current-p { color: #fff; }

/* Активный ВИП - ЧЕРНАЯ РАМКА */
.tariff-card.tar-blue.active {
    border: 4px solid #000000 !important;
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.tariff-card.active:not(.tar-blue) { border-color: var(--mega-green); background: #F0FFF4; }

/* Цены (исправление слипания) */
.price-wrapper { display: flex; align-items: baseline; gap: 8px; }
.old-p { font-size: 14px; text-decoration: line-through; color: #999; font-weight: normal; }
.tar-blue .old-p { color: rgba(255,255,255,0.6); }
.current-p { font-size: 24px; font-weight: 800; }
.period { font-size: 12px; color: #999; }
.tar-blue .period { color: rgba(255,255,255,0.7); }

/* Поля ввода */
.input-box { margin-bottom: 15px; position: relative; } /* Важно для подсказок */
label { display: block; font-size: 11px; color: #999; text-transform: uppercase; font-weight: bold; margin-bottom: 5px; }
input { width: 100%; padding: 12px; border: 1px solid #EEE; border-radius: 10px; font-size: 16px; background: #F9F9F9; box-sizing: border-box; }
input:focus { border-color: var(--mega-green); outline: none; background: #fff; }

/* КРАСИВЫЕ ПОДСКАЗКИ АДРЕСА */
#address_suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 9999;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    box-sizing: border-box;
}

.sugg-item {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
    transition: 0.2s;
    color: #333;
}

.sugg-item:last-child { border-bottom: none; }
.sugg-item:hover { background: #f0fdf4; color: var(--mega-green); }

/* Кнопки домов */
.house-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.h-btn { padding: 10px 15px; border: 1px solid #ddd; border-radius: 10px; cursor: pointer; background: #fff; font-weight: bold; }
.h-btn.active { background: var(--mega-green); color: #fff; border-color: var(--mega-green); }

/* Кнопка отправить */
.send-btn { width: 100%; padding: 20px; background: #EEE; color: #999; border: none; border-radius: 40px; font-size: 18px; font-weight: bold; cursor: not-allowed; transition: 0.3s; margin-top: 20px; }
.send-btn.active { background: var(--mega-green); color: #fff; cursor: pointer; box-shadow: 0 10px 20px rgba(0,185,86,0.2); }