/* ── Price Gate Overlay ─────────────────────────────────────────────────── */
#fbm-gate-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,0.65);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    backdrop-filter: blur(4px);
}
body.fbm-gate-open { overflow: hidden; }

#fbm-gate-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%; max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,0.28);
    font-family: inherit;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
#fbm-gate-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}
#fbm-gate-robot-context {
    display: flex; align-items: center; gap: 12px;
}
#fbm-gate-thumb {
    width: 44px; height: 44px; border-radius: 8px;
    object-fit: cover; border: 1px solid #e5e7eb;
}
#fbm-gate-subtitle {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: #16a34a; margin-bottom: 2px;
}
#fbm-gate-robot-name {
    font-size: 15px; font-weight: 700; color: #111;
}
#fbm-gate-close {
    background: none; border: none; cursor: pointer;
    font-size: 22px; color: #9ca3af; line-height: 1;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
#fbm-gate-close:hover { background: #f3f4f6; color: #374151; }

/* ── Form ────────────────────────────────────────────────────────────────── */
#fbm-gate-form-wrap { padding: 24px; }
#fbm-gate-intro {
    font-size: 14px; color: #4b5563; margin: 0 0 20px;
    line-height: 1.5;
}
.fbm-gate-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 460px) { .fbm-gate-row { grid-template-columns: 1fr; } }

.fbm-gate-field { margin-bottom: 14px; }
.fbm-gate-field label {
    display: block; font-size: 13px; font-weight: 600;
    color: #374151; margin-bottom: 5px;
}
.fbm-gate-req { color: #dc2626; }
.fbm-gate-field input,
.fbm-gate-field select {
    width: 100%; padding: 10px 12px;
    border: 1.5px solid #d1d5db; border-radius: 8px;
    font-size: 14px; color: #111; background: #fff;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.fbm-gate-field input:focus,
.fbm-gate-field select:focus {
    outline: none; border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}
.fbm-gate-error {
    display: block; font-size: 12px; color: #dc2626;
    margin-top: 4px; min-height: 16px;
}
.fbm-gate-privacy {
    font-size: 11px; color: #9ca3af; margin: 4px 0 18px;
}

/* ── Submit button ───────────────────────────────────────────────────────── */
.fbm-gate-btn-primary {
    width: 100%; padding: 14px 20px;
    background: #16a34a; color: #fff;
    border: none; border-radius: 10px;
    font-size: 15px; font-weight: 700;
    cursor: pointer; display: flex; align-items: center;
    justify-content: center; gap: 8px;
    transition: background 0.15s, transform 0.1s;
}
.fbm-gate-btn-primary:hover { background: #15803d; transform: translateY(-1px); }
.fbm-gate-btn-primary:disabled { opacity: 0.6; cursor: default; transform: none; }

/* ── Price reveal ───────────────────────────────────────────────────────── */
#fbm-gate-reveal { padding: 24px; }

#fbm-gate-avail-wrap {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 16px;
    font-size: 13px; font-weight: 600; color: #374151;
}
.fbm-gate-dot {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.fbm-gate-dot-green  { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.18); }
.fbm-gate-dot-amber  { background: #d97706; box-shadow: 0 0 0 3px rgba(217,119,6,0.18); }
.fbm-gate-dot-red    { background: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.18); }

#fbm-gate-price-block {
    text-align: center; padding: 20px 0 12px;
}
#fbm-gate-price-main {
    display: flex; align-items: baseline; justify-content: center; gap: 2px;
}
.fbm-gate-price-symbol { font-size: 26px; font-weight: 700; color: #111; }
.fbm-gate-price-num    { font-size: 48px; font-weight: 900; color: #111; line-height: 1; }
.fbm-gate-price-mo     { font-size: 16px; font-weight: 500; color: #6b7280; margin-left: 4px; }
#fbm-gate-price-local  { font-size: 13px; color: #6b7280; margin-top: 4px; }
#fbm-gate-price-sub    { font-size: 12px; color: #9ca3af; margin-top: 6px; }

/* ── Duration grid ───────────────────────────────────────────────────────── */
#fbm-gate-duration-wrap { margin: 16px 0; }
.fbm-gate-dur-label {
    font-size: 12px; font-weight: 600; color: #6b7280;
    text-transform: uppercase; letter-spacing: 0.05em;
    margin-bottom: 10px;
}
#fbm-gate-duration-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.fbm-gate-dur-btn {
    border: 2px solid #e5e7eb; background: #fff; border-radius: 10px;
    padding: 10px 8px; cursor: pointer; text-align: center;
    transition: border-color 0.15s, background 0.15s;
    position: relative; overflow: hidden;
}
.fbm-gate-dur-btn:hover { border-color: #16a34a; background: #f0fdf4; }
.fbm-gate-dur-btn.fbm-gate-dur-selected {
    border-color: #16a34a; background: #f0fdf4;
}
.fbm-gate-dur-mo  { display: block; font-size: 12px; color: #6b7280; margin-bottom: 4px; }
.fbm-gate-dur-price { display: block; font-size: 13px; font-weight: 700; color: #111; }
.fbm-gate-dur-badge {
    display: inline-block; margin-top: 5px;
    font-size: 10px; font-weight: 700;
    background: #dcfce7; color: #15803d;
    padding: 2px 6px; border-radius: 20px;
}
.fbm-gate-dur-best { background: #16a34a; color: #fff; }

/* ── Urgency ────────────────────────────────────────────────────────────── */
#fbm-gate-urgency {
    font-size: 13px; color: #92400e; background: #fef3c7;
    border: 1px solid #fde68a; border-radius: 8px;
    padding: 10px 14px; margin: 12px 0;
}

/* ── Disclaimer + note ───────────────────────────────────────────────────── */
.fbm-gate-disclaimer {
    font-size: 11px; color: #9ca3af; margin: 12px 0 16px;
    line-height: 1.5;
}
#fbm-gate-quote-note {
    font-size: 12px; color: #6b7280; text-align: center;
    margin-top: 10px;
}

/* ── Reserve button ──────────────────────────────────────────────────────── */
#fbm-gate-reserve-btn { margin-top: 4px; }
