/* ── Bruce Bertman Lead Form ──────────────────────────────────────────────── */
:root {
    --bbm-navy:    #133A1E;   /* dark green — headings */
    --bbm-navy-2:  #0d2d16;
    --bbm-accent:  #09720E;   /* brand green — primary interactive */
    --bbm-accent-d:#016400;   /* darker green — buttons / hover */
    --bbm-magenta: #CC3366;   /* magenta — secondary accent */
    --bbm-white:   #ffffff;
    --bbm-border:  #dbe3dd;
    --bbm-bg-field:#f6faf7;
    --bbm-text:    #222222;
    --bbm-muted:   #54595f;
    --bbm-error:   #c0392b;
    --bbm-radius:  10px;
    --bbm-chip:    #eaf4ec;
}

.bbm-wrap { max-width: 720px; margin: 0 auto; box-sizing: border-box;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.bbm-wrap *, .bbm-wrap *::before, .bbm-wrap *::after { box-sizing: border-box; }

.bbm-card {
    background: var(--bbm-white); border: 1px solid var(--bbm-border);
    border-top: 4px solid var(--bbm-magenta); border-radius: var(--bbm-radius);
    box-shadow: 0 3px 16px rgba(19,58,30,.08); padding: 34px 38px;
}

/* ── Rows / fields ────────────────────────────────────────────────────────── */
.bbm-form { display: block; }
.bbm-row { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.bbm-cols-2 { flex-direction: row; gap: 20px; }
.bbm-cols-2 .bbm-field { flex: 1; min-width: 0; }
.bbm-col-title { flex: 0 0 108px !important; }

.bbm-field { display: flex; flex-direction: column; gap: 5px; }
.bbm-field label { font-size: 13px; font-weight: 600; color: var(--bbm-text); }
.bbm-req { color: var(--bbm-magenta); margin-left: 2px; }
.bbm-opt { font-weight: 400; color: var(--bbm-muted); font-size: 12px; }
.bbm-hint { font-size: 11.5px; color: var(--bbm-muted); }
.bbm-note-inline { font-size: 13px; color: var(--bbm-muted); background: var(--bbm-chip);
    border-radius: 8px; padding: 10px 12px; margin: 0 0 14px; }

.bbm-field input[type="text"], .bbm-field input[type="email"], .bbm-field input[type="tel"],
.bbm-field input[type="url"], .bbm-field select, .bbm-field textarea {
    width: 100%; padding: 10px 13px; border: 1.5px solid var(--bbm-border); border-radius: 6px;
    font-size: 14px; color: var(--bbm-text); background: var(--bbm-bg-field);
    transition: border-color .18s, box-shadow .18s, background .18s;
    font-family: inherit; appearance: none; -webkit-appearance: none;
}
.bbm-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%2369727d' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px;
}
.bbm-field input:focus, .bbm-field select:focus, .bbm-field textarea:focus {
    outline: none; border-color: var(--bbm-accent); background: var(--bbm-white);
    box-shadow: 0 0 0 3px rgba(9,114,14,.14);
}
.bbm-field textarea { resize: vertical; min-height: 92px; }
.bbm-field input::placeholder, .bbm-field textarea::placeholder { color: #aab3bf; }
.bbm-field input[type="file"] { width: 100%; font-size: 13px; color: var(--bbm-muted); padding: 8px 0; }
.bbm-field input:disabled { background: #eef0f4; color: #9aa3ad; cursor: not-allowed; }

/* ── Persona conditional fields — blend into the single continuous form ─────── */
.bbm-persona { margin: 0; padding: 0; }
.bbm-otherbox { margin-top: 8px; }

/* Closing fields must ALWAYS be visible — force it even if a stale/cached script
   tries to hide the container (overrides the [hidden] attribute). */
.bbm-wrap .bbm-step3 { display: block !important; }

/* ── Honeypot ─────────────────────────────────────────────────────────────── */
.bbm-hp { position: absolute; left: -9999px; }

/* ── Checkbox / radio groups ──────────────────────────────────────────────── */
.bbm-checkbox-group { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; margin-top: 4px; }
.bbm-check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--bbm-text);
    font-weight: 500; cursor: pointer; line-height: 1.35; padding: 5px 0; }
.bbm-radio-row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; margin-top: 4px; }
.bbm-radio-row .bbm-check { padding: 3px 0; }
.bbm-nosite { margin-top: 6px; font-weight: 400; font-size: 12.5px; color: var(--bbm-muted); }

.bbm-check input[type="checkbox"], .bbm-check input[type="radio"] {
    appearance: none; -webkit-appearance: none; width: 17px; height: 17px; min-width: 17px; margin: 0;
    border: 1.5px solid var(--bbm-border); border-radius: 4px; background: var(--bbm-white);
    cursor: pointer; position: relative; transition: background .15s, border-color .15s; flex: none;
}
.bbm-check input[type="radio"] { border-radius: 50%; }
.bbm-check input[type="radio"]:checked { background: var(--bbm-accent); border-color: var(--bbm-accent); }
.bbm-check input[type="radio"]:checked::after { content: ''; position: absolute; top: 4px; left: 4px; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.bbm-check input[type="checkbox"]:checked { background: var(--bbm-accent); border-color: var(--bbm-accent); }
.bbm-check input[type="checkbox"]:checked::after { content: ''; display: block; width: 4px; height: 8px;
    border: 2px solid #fff; border-top: none; border-left: none; transform: rotate(45deg);
    position: absolute; top: 1px; left: 5px; }

/* ── Phone dial-code picker ───────────────────────────────────────────────── */
.bbm-phone-wrap { position: relative; display: flex; align-items: stretch; gap: 8px; }
.bbm-dial-trigger { display: flex; align-items: center; gap: 6px; padding: 10px 12px;
    border: 1.5px solid var(--bbm-border); border-radius: 6px; background: var(--bbm-bg-field);
    cursor: pointer; white-space: nowrap; user-select: none; font-size: 14px; color: var(--bbm-text); }
.bbm-dial-trigger:focus { outline: none; border-color: var(--bbm-accent); box-shadow: 0 0 0 3px rgba(9,114,14,.14); }
.bbm-dial-flag { font-size: 16px; line-height: 1; }
.bbm-dial-caret { color: var(--bbm-muted); }
.bbm-phone-number { flex: 1 1 auto; min-width: 0; }
.bbm-dial-dropdown { position: absolute; top: calc(100% + 4px); left: 0; z-index: 40; width: 300px; max-width: 90vw;
    background: #fff; border: 1px solid var(--bbm-border); border-radius: 8px; box-shadow: 0 8px 24px rgba(21,27,78,.16);
    display: flex; flex-direction: column; overflow: hidden; }
.bbm-dial-search-wrap { padding: 8px; border-bottom: 1px solid var(--bbm-border); }
.bbm-dial-search { width: 100%; padding: 8px 10px; border: 1.5px solid var(--bbm-border); border-radius: 6px; font-size: 13px; background: var(--bbm-bg-field); }
.bbm-dial-list { list-style: none; margin: 0; padding: 4px; max-height: 240px; overflow-y: auto; }
.bbm-dial-option { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--bbm-text); }
.bbm-dial-option:hover { background: var(--bbm-chip); }
.bbm-dial-option .bbm-dial-country { flex: 1; }
.bbm-dial-option .bbm-dial-num { color: var(--bbm-muted); }

/* ── Territory multi-select ───────────────────────────────────────────────── */
.bbm-multi { position: relative; }
.bbm-multi-trigger { display: flex; align-items: center; justify-content: space-between; padding: 10px 13px;
    border: 1.5px solid var(--bbm-border); border-radius: 6px; background: var(--bbm-bg-field); cursor: pointer; font-size: 14px; color: var(--bbm-text); }
.bbm-multi-trigger:focus { outline: none; border-color: var(--bbm-accent); box-shadow: 0 0 0 3px rgba(9,114,14,.14); }
.bbm-multi-panel { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 40; background: #fff;
    border: 1px solid var(--bbm-border); border-radius: 8px; box-shadow: 0 8px 24px rgba(21,27,78,.16); overflow: hidden; }
.bbm-multi-search-wrap { padding: 8px; border-bottom: 1px solid var(--bbm-border); }
.bbm-multi-search { width: 100%; padding: 8px 10px; border: 1.5px solid var(--bbm-border); border-radius: 6px; font-size: 13px; background: var(--bbm-bg-field); }
.bbm-multi-list { list-style: none; margin: 0; padding: 4px; max-height: 220px; overflow-y: auto; }
.bbm-multi-option .bbm-check { padding: 7px 8px; border-radius: 6px; }
.bbm-multi-option .bbm-check:hover { background: var(--bbm-chip); }

/* ── Privacy ──────────────────────────────────────────────────────────────── */
.bbm-privacy-wrap { margin: 0 0 12px; }
.bbm-privacy-wrap:first-of-type { margin-top: 6px; }
.bbm-wrap .bbm-privacy-label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px;
    color: var(--bbm-muted); cursor: pointer; line-height: 1.4 !important; margin: 0 !important; }
.bbm-wrap .bbm-privacy-label span, .bbm-wrap .bbm-privacy-label a { line-height: 1.4 !important; padding: 0 !important; margin: 0 !important; }
.bbm-wrap .bbm-privacy-label input[type="checkbox"] {
    appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 17px; height: 17px; min-width: 17px;
    border: 1.5px solid var(--bbm-border); border-radius: 4px; background: var(--bbm-bg-field);
    cursor: pointer; margin: 1px 0 0 !important; position: relative; transition: background .15s, border-color .15s; }
.bbm-privacy-label input[type="checkbox"]:checked { background: var(--bbm-accent); border-color: var(--bbm-accent); }
.bbm-privacy-label input[type="checkbox"]:checked::after { content: ''; display: block; width: 4px; height: 8px;
    border: 2px solid #fff; border-top: none; border-left: none; transform: rotate(45deg); position: absolute; top: 1px; left: 4px; }
.bbm-privacy-label a { color: var(--bbm-accent-d); }

/* ── Button ───────────────────────────────────────────────────────────────── */
.bbm-btn { display: block; width: 100%; padding: 15px 28px; background: var(--bbm-accent-d); color: #fff;
    border: none; border-radius: 50px; font-size: 15px; font-weight: 600; cursor: pointer;
    transition: background .18s; font-family: "Inter", sans-serif; letter-spacing: .3px; margin-top: 6px; }
.bbm-btn:hover:not(:disabled) { background: var(--bbm-accent); }
.bbm-btn:disabled { background: #9db8a1; cursor: not-allowed; }

/* ── Notices ──────────────────────────────────────────────────────────────── */
.bbm-notice { padding: 13px 16px; border-radius: 6px; font-size: 14px; line-height: 1.6; }
.bbm-success { background: #f0faf5; border: 1px solid #a7dfc4; color: #1a5c3a; }
.bbm-error   { background: #fff5f5; border: 1px solid #f5c0c0; color: #8b1c1c; }

/* ── Validation ───────────────────────────────────────────────────────────── */
.bbm-field-invalid input, .bbm-field-invalid select, .bbm-field-invalid textarea, .bbm-field-invalid input[type="checkbox"] {
    border-color: var(--bbm-error) !important; box-shadow: 0 0 0 3px rgba(208,17,43,.08) !important; }
.bbm-field-error { display: block; font-size: 12px; color: var(--bbm-error); margin-top: 3px; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .bbm-card { padding: 24px 18px; }
    .bbm-cols-2 { flex-direction: column; gap: 16px; }
    .bbm-col-title { flex: 1 !important; }
    .bbm-checkbox-group { grid-template-columns: 1fr; }
    .bbm-dial-dropdown { width: 260px; }
    .bbm-btn { font-size: 14px; padding: 12px 20px; }
}
@media (max-width: 380px) {
    .bbm-card { padding: 20px 13px; border-radius: 0; border-left: none; border-right: none; }
}
