/* 1RR Lead Forms — brand-aligned shared styles
 * Colors: red #F54343 (CTA), navy #004274 (text/labels), cyan #00aeff (focus), slate #f5f7fa (surface)
 * Namespace: .rr-form-*  (matches existing .rr-* convention)
 * No CSS variables — matches existing stylesheet convention on the site.
 */

.rr-form-page {
    background: #f5f7fa;
    padding: 32px 16px 80px;
    min-height: 70vh;
}

.rr-form-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 32px;
}

@media (max-width: 860px) {
    .rr-form-grid { grid-template-columns: 1fr; gap: 20px; }
}

.rr-form-card {
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 14px rgba(0, 66, 116, 0.06);
}

.rr-form-card h1 {
    color: #004274;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.2;
}

.rr-form-card .rr-form-sub {
    color: #556170;
    font-size: 15px;
    margin: 0 0 22px;
}

.rr-form-row {
    display: flex;
    gap: 14px;
    margin: 0 0 14px;
    flex-wrap: wrap;
}

.rr-form-row > .rr-form-field { flex: 1 1 200px; min-width: 0; }

.rr-form-field { margin: 0 0 14px; }

.rr-form-field label {
    display: block;
    color: #004274;
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 5px;
}

.rr-form-field .rr-form-opt {
    color: #7f8b97;
    font-weight: 400;
    font-size: 12px;
    margin-left: 6px;
}

.rr-form-field input[type=text],
.rr-form-field input[type=email],
.rr-form-field input[type=tel],
.rr-form-field input[type=number],
.rr-form-field select,
.rr-form-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cfd6de;
    border-radius: 8px;
    background: #fff;
    padding: 11px 13px;
    font-size: 15px;
    color: #222;
    transition: border-color .14s ease, box-shadow .14s ease;
    font-family: inherit;
}

.rr-form-field input:focus,
.rr-form-field select:focus,
.rr-form-field textarea:focus {
    border-color: #00aeff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 174, 255, 0.16);
}

.rr-form-field textarea { resize: vertical; min-height: 90px; }

.rr-form-field.is-error input,
.rr-form-field.is-error select,
.rr-form-field.is-error textarea {
    border-color: #F54343;
    box-shadow: 0 0 0 3px rgba(245, 67, 67, 0.14);
}

.rr-form-field-error {
    color: #F54343;
    font-size: 13px;
    margin: 5px 0 0;
}

.rr-form-radios, .rr-form-checks {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.rr-form-radios label, .rr-form-checks label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #cfd6de;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 500;
    color: #222;
    font-size: 14px;
    transition: border-color .14s, background .14s;
}

.rr-form-radios input[type=radio]:checked + span,
.rr-form-checks input[type=checkbox]:checked + span {
    color: #004274;
    font-weight: 700;
}

.rr-form-radios label:has(input:checked),
.rr-form-checks label:has(input:checked) {
    border-color: #00aeff;
    background: #eaf7ff;
}

.rr-form-tcpa {
    background: #f5f7fa;
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 18px 0 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #455161;
    line-height: 1.5;
}

.rr-form-tcpa input[type=checkbox] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #F54343;
}

.rr-form-tcpa a { color: #004274; text-decoration: underline; }

.rr-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F54343;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .14s, transform .05s;
    margin-top: 4px;
    min-width: 220px;
    font-family: inherit;
    letter-spacing: .2px;
}

.rr-form-submit:hover { background: #e13535; }
.rr-form-submit:active { transform: translateY(1px); }
.rr-form-submit:disabled { background: #c7ccd2; cursor: not-allowed; }

.rr-form-submit-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.rr-form-submit-note {
    font-size: 13px;
    color: #7f8b97;
}

.cf-turnstile {
    margin: 14px 0 4px;
}

.rr-form-success,
.rr-form-error {
    padding: 14px 18px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 15px;
    line-height: 1.5;
    display: none;
}

.rr-form-success {
    background: #e6f7ec;
    border: 1px solid #8fd5a4;
    color: #1f6b37;
}

.rr-form-error {
    background: #fbecec;
    border: 1px solid #f3a8a8;
    color: #a11a1a;
}

.rr-form-success.is-visible,
.rr-form-error.is-visible { display: block; }

/* Trust panel */
.rr-trust {
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 2px 14px rgba(0, 66, 116, 0.05);
    align-self: start;
}

.rr-trust h3 {
    color: #004274;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px;
}

.rr-trust-agent {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f6;
    margin-bottom: 12px;
}

.rr-trust-agent img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00aeff;
    background: #eaf7ff;
}

.rr-trust-agent-name {
    color: #004274;
    font-weight: 700;
    font-size: 15px;
    margin: 0;
}

.rr-trust-agent-role {
    color: #7f8b97;
    font-size: 13px;
    margin: 2px 0 0;
}

.rr-trust ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rr-trust li {
    padding: 7px 0 7px 22px;
    font-size: 14px;
    color: #333;
    position: relative;
    line-height: 1.4;
}

.rr-trust li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 7px;
    color: #F54343;
    font-weight: 700;
}

.rr-trust-footer {
    font-size: 13px;
    color: #7f8b97;
    margin-top: 14px;
    line-height: 1.5;
    padding-top: 12px;
    border-top: 1px solid #eef2f6;
}

.rr-form-hp { /* honeypot container is inline-styled already */ }

/* Google Places autocomplete dropdown — match form styling */
.pac-container {
    border-radius: 8px;
    border: 1px solid #cfd6de;
    box-shadow: 0 4px 16px rgba(0, 66, 116, 0.12);
    font-family: inherit;
    margin-top: 4px;
    z-index: 99999;
}
.pac-item {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    border-top: 1px solid #eef2f6;
}
.pac-item:first-child { border-top: 0; }
.pac-item:hover, .pac-item-selected {
    background: #eaf7ff;
}
.pac-item-query {
    color: #004274;
    font-weight: 600;
    font-size: 14px;
}
.pac-matched { color: #F54343; }
