/* Contact page (pages/public/contact.php) — only what pages.css has no component for. */

.v4-contact-title { font-size: clamp(1.6rem, 1.2vw + 1.1rem, 2rem); line-height: 1.15; }
.v4-contact-intro { margin: 8px 0 24px !important; }
.v4-contact-note { text-align: center; }

/* Sidebar: stacked cards beside the form */
.v4-contact-aside { display: grid; gap: 16px; }
.v4-contact-aside .v4-card h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.v4-contact-list { display: grid; gap: 18px; }
.v4-contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.v4-contact-list .v4-card__icon { width: 40px; height: 40px; margin: 0; border-radius: 11px; }
.v4-contact-list .v4-card__icon .v4-ico { width: 19px; height: 19px; }
.v4-contact-list div { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: .9375rem; }
.v4-contact-list strong { font-size: .875rem; }
.v4-contact-list a { font-weight: 600; overflow-wrap: anywhere; }
.v4-contact-list div > span { font-size: .8125rem; color: var(--v4-text-3); }
.v4-contact-list div > .v4-contact-addr { font-size: .9375rem; color: var(--v4-text-2); }
.v4-contact-aside .v4-defs > div { flex-direction: column; gap: 2px; padding: 10px 0; }
.v4-contact-aside .v4-defs dt { font-size: .8125rem; }
.v4-contact-aside .v4-defs dd { text-align: left; }
.v4-contact-links { display: grid; gap: 8px; }
.v4-contact-links a {
    display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px;
    border: 1px solid var(--v4-line); border-radius: 12px; font-weight: 600; font-size: .9375rem; color: var(--v4-text);
    transition: border-color .2s var(--v4-ease), background-color .2s var(--v4-ease);
}
.v4-contact-links a .v4-ico:first-child { color: var(--v4-teal-700); }
.v4-contact-links a .v4-ico:last-child { margin-left: auto; color: var(--v4-text-3); transition: transform .2s var(--v4-ease); }
.v4-contact-links a:hover { border-color: var(--v4-teal-600); background: var(--v4-tint); color: var(--v4-text); }
.v4-contact-links a:hover .v4-ico:last-child { transform: translateX(3px); color: var(--v4-teal-700); }

/* Offices */
.v4-contact-offices { max-width: 900px; margin-inline: auto; }
.v4-contact-hours { display: inline-flex; align-items: center; gap: 8px; }

/* SimpleCaptcha (includes/captcha.php) sized for the V4 form */
#contactForm .captcha-container { margin: 0; }
#contactForm .captcha-row { gap: 12px 16px; }
#contactForm .captcha-img { border-radius: 10px; border: 1px solid var(--v4-line-2); }
#contactForm .captcha-input::placeholder { letter-spacing: .02em; text-transform: none; font-weight: 500; font-family: var(--v4-font-sans); }
#contactForm .captcha-input { width: 170px; flex: 0 0 auto; text-transform: uppercase; letter-spacing: .18em; font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-weight: 700; }
#contactForm .captcha-refresh-btn { width: 32px; height: 32px; top: -12px; right: -12px; font-size: 16px; background: var(--v4-teal-700); box-shadow: 0 0 0 3px #fff; }
#contactForm .captcha-refresh-btn:hover { background: var(--v4-teal-800); }
#contactForm .captcha-help { color: var(--v4-text-3); font-size: .8125rem; margin: 0; }
#contactForm .captcha-container > label { font-size: .875rem; font-weight: 600; color: var(--v4-text); }

/* pages.js hides the form's children with [hidden] after a successful send, but
   author display rules (.v4-form-row, .v4-field, .v4-check, .v4-btn) outrank the
   UA [hidden] rule. Enforce it here until pages.css does it for every form. */
#contactForm > [hidden] { display: none !important; }
