/* ── reCAPTCHA v2 challenge popup fix ─────────────────────────────────────────
   Some themes push Google's challenge popup off-screen, so clicking the checkbox
   seems to do nothing. Center the popup CONTAINER on-screen, and lift the challenge
   HOLDER above the dimming backdrop so the image tiles stay clickable.
   (Do NOT bump the backdrop's z-index — doing so puts it over the tiles and the
   challenge closes on the first tile click.) */
div[style*="z-index: 2000000000"][style*="position: absolute"] {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}
div[style*="z-index: 2000000000"][style*="position: relative"] {
    z-index: 2147483647 !important;
}

/* ── CSR Contact Form ─────────────────────────────────────────────────────── */
:root {
    --csr-navy:    #33373D;   /* dark slate — headings/text */
    --csr-navy-2:  #262a30;
    --csr-accent:  #7888FC;   /* brand indigo — primary interactive */
    --csr-accent-d:#5866e0;   /* darker indigo — buttons / hover */
    --csr-magenta: #F89F22;   /* brand orange — secondary accent */
    --csr-white:   #ffffff;
    --csr-border:  #dde0e8;
    --csr-bg-field:#f7f8fc;
    --csr-text:    #33373D;
    --csr-muted:   #7a7a7a;
    --csr-error:   #c0392b;
    --csr-radius:  10px;
    --csr-chip:    #eef0fe;
    --csr-btn:     #0A76B4;   /* site theme blue — submit button */
    --csr-btn-h:   #095e90;   /* darker blue — button hover */
}

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

.csr-card {
    background: var(--csr-white); border: 1px solid var(--csr-border);
    border-top: 4px solid var(--csr-accent); border-radius: var(--csr-radius);
    box-shadow: 0 3px 16px rgba(51,55,61,.08); padding: 34px 38px;
}

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

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

.csr-field input[type="text"], .csr-field input[type="email"], .csr-field input[type="tel"],
.csr-field input[type="url"], .csr-field select, .csr-field textarea {
    width: 100%; padding: 10px 13px; border: 1.5px solid var(--csr-border); border-radius: 6px;
    font-size: 14px; color: var(--csr-text); background: var(--csr-bg-field);
    transition: border-color .18s, box-shadow .18s, background .18s;
    font-family: inherit; appearance: none; -webkit-appearance: none;
}
.csr-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;
}
.csr-field input:focus, .csr-field select:focus, .csr-field textarea:focus {
    outline: none; border-color: var(--csr-accent); background: var(--csr-white);
    box-shadow: 0 0 0 3px rgba(120,136,252,.18);
}
.csr-field textarea { resize: vertical; min-height: 92px; }
.csr-field input::placeholder, .csr-field textarea::placeholder { color: #aab3bf; }
.csr-field input[type="file"] { width: 100%; font-size: 13px; color: var(--csr-muted); padding: 8px 0; }
.csr-field input:disabled { background: #eef0f4; color: #9aa3ad; cursor: not-allowed; }

/* ── Persona conditional fields — blend into the single continuous form ─────── */
.csr-persona { margin: 0; padding: 0; }
.csr-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). */
.csr-wrap .csr-step3 { display: block !important; }

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

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

.csr-check input[type="checkbox"], .csr-check input[type="radio"] {
    appearance: none; -webkit-appearance: none; width: 17px; height: 17px; min-width: 17px; margin: 0;
    border: 1.5px solid var(--csr-border); border-radius: 4px; background: var(--csr-white);
    cursor: pointer; position: relative; transition: background .15s, border-color .15s; flex: none;
}
.csr-check input[type="radio"] { border-radius: 50%; }
.csr-check input[type="radio"]:checked { background: var(--csr-accent); border-color: var(--csr-accent); }
.csr-check input[type="radio"]:checked::after { content: ''; position: absolute; top: 4px; left: 4px; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.csr-check input[type="checkbox"]:checked { background: var(--csr-accent); border-color: var(--csr-accent); }
.csr-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 ───────────────────────────────────────────────── */
.csr-phone-wrap { position: relative; display: flex; align-items: stretch; gap: 8px; }
.csr-dial-trigger { display: flex; align-items: center; gap: 6px; padding: 10px 12px;
    border: 1.5px solid var(--csr-border); border-radius: 6px; background: var(--csr-bg-field);
    cursor: pointer; white-space: nowrap; user-select: none; font-size: 14px; color: var(--csr-text); }
.csr-dial-trigger:focus { outline: none; border-color: var(--csr-accent); box-shadow: 0 0 0 3px rgba(120,136,252,.18); }
.csr-dial-flag { font-size: 16px; line-height: 1; }
.csr-dial-caret { color: var(--csr-muted); }
.csr-phone-number { flex: 1 1 auto; min-width: 0; }
.csr-dial-dropdown { position: absolute; top: calc(100% + 4px); left: 0; z-index: 40; width: 300px; max-width: 90vw;
    background: #fff; border: 1px solid var(--csr-border); border-radius: 8px; box-shadow: 0 8px 24px rgba(21,27,78,.16);
    display: flex; flex-direction: column; overflow: hidden; }
.csr-dial-search-wrap { padding: 8px; border-bottom: 1px solid var(--csr-border); }
.csr-dial-search { width: 100%; padding: 8px 10px; border: 1.5px solid var(--csr-border); border-radius: 6px; font-size: 13px; background: var(--csr-bg-field); }
.csr-dial-list { list-style: none; margin: 0; padding: 4px; max-height: 240px; overflow-y: auto; }
.csr-dial-option { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--csr-text); }
.csr-dial-option:hover { background: var(--csr-chip); }
.csr-dial-option .csr-dial-country { flex: 1; }
.csr-dial-option .csr-dial-num { color: var(--csr-muted); }

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

/* ── Privacy ──────────────────────────────────────────────────────────────── */
.csr-privacy-wrap { margin: 0 0 12px; }
.csr-privacy-wrap:first-of-type { margin-top: 6px; }
.csr-wrap .csr-privacy-label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px;
    color: var(--csr-muted); cursor: pointer; line-height: 1.4 !important; margin: 0 !important; }
.csr-wrap .csr-privacy-label span, .csr-wrap .csr-privacy-label a { line-height: 1.4 !important; padding: 0 !important; margin: 0 !important; }
.csr-wrap .csr-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(--csr-border); border-radius: 4px; background: var(--csr-bg-field);
    cursor: pointer; margin: 1px 0 0 !important; position: relative; transition: background .15s, border-color .15s; }
.csr-privacy-label input[type="checkbox"]:checked { background: var(--csr-accent); border-color: var(--csr-accent); }
.csr-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; }
.csr-privacy-label a { color: var(--csr-accent-d); }

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

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

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

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