/* KCB BUNI — Contact page styling. Runtime file (no rebuild to tweak). Loaded after home.css,
   so it inherits the .kcb-home design tokens (--navy, --green, --muted, --line-strong, …). */

.kcb-home .kh-contact { padding: 56px 0 72px; }

.kcb-home .kh-contact-wrap {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: start;
}

/* Left column — "We're here to help!" */
.kcb-home .kh-contact-intro h1 {
    font-size: 2.4rem;
    line-height: 1.15;
    color: var(--green);
    font-weight: 600;
    margin: 0 0 18px;
    white-space: pre-line; /* honour the \n in the JSON title */
}
.kcb-home .kh-contact-intro p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
    max-width: 340px;
}

/* Right column — the form */
.kcb-home .kh-contact-form { width: 100%; }
.kcb-home .kh-cf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    margin-bottom: 20px;
}
.kcb-home .kh-cf-field { display: flex; flex-direction: column; }
.kcb-home .kh-cf-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 7px;
}
.kcb-home .kh-cf-field input,
.kcb-home .kh-cf-field textarea {
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    padding: 11px 13px;
    font: inherit;
    font-size: 0.92rem;
    color: var(--ink);
    background: #fff;
    width: 100%;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.kcb-home .kh-cf-field input:focus,
.kcb-home .kh-cf-field textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(132, 189, 0, 0.15);
}
.kcb-home .kh-cf-field textarea { resize: vertical; min-height: 150px; }
.kcb-home .kh-cf-submit { margin-top: 4px; }

/* Inline validation errors (email / phone / required). */
.kcb-home .kh-cf-field.has-error input,
.kcb-home .kh-cf-field.has-error textarea { border-color: #c0392b; }
.kcb-home .kh-cf-field.has-error input:focus,
.kcb-home .kh-cf-field.has-error textarea:focus {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}
.kcb-home .kh-cf-error { color: #c0392b; font-size: 0.78rem; margin-top: 5px; }

/* Fallback shown when the visitor's mail app can't be opened (no default handler). */
.kcb-home .kh-cf-fallback {
    margin-top: 22px;
    border: 1px solid var(--line-strong);
    border-left: 4px solid var(--green);
    background: var(--green-tint);
    border-radius: 8px;
    padding: 18px;
}
.kcb-home .kh-cf-fb-title { font-weight: 700; color: var(--navy); margin: 0 0 6px; font-size: 0.98rem; }
.kcb-home .kh-cf-fb-lead { color: var(--ink); font-size: 0.9rem; line-height: 1.5; margin: 0 0 12px; }
.kcb-home .kh-cf-fb-email { color: var(--green-2); font-weight: 600; }
.kcb-home .kh-cf-fb-box {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    padding: 11px 13px;
    font: inherit;
    font-size: 0.85rem;
    color: var(--ink);
    background: #fff;
    resize: vertical;
}
.kcb-home .kh-cf-fb-acts { display: flex; gap: 12px; align-items: center; margin-top: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
    .kcb-home .kh-contact { padding: 40px 0 56px; }
    .kcb-home .kh-contact-wrap { grid-template-columns: 1fr; gap: 30px; }
    .kcb-home .kh-cf-grid { grid-template-columns: 1fr; }
    .kcb-home .kh-contact-intro h1 { font-size: 2rem; }
    .kcb-home .kh-contact-intro p { max-width: none; }
}
