/* Pages that load Bootstrap (facilities, housing, etc.) get their navbar
   sized/faced by Bootstrap's own body{font:14px/1.42857143 "Helvetica
   Neue",...} reset, since w3.css's nav classes don't set their own
   typography — they just inherit. This page has no Bootstrap, so body
   would otherwise fall back to w3.css's own Verdana default and the nav
   would look larger and in a different typeface than every other page.
   All three properties pinned to match exactly. */
.w3-bar-item { font-size: 14px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 1.42857143; }

:root {
    --bg: #eaece6;
    --card: #f5f6f1;
    --border: #c7cbbf;
    --navy: #1b2a3d;
    --terracotta: #b34a1f;
    --muted: #565a52;
    --body-color: #23262b;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--body-color);
}

.contact-hero {
    background: var(--navy);
    padding: 44px 24px 36px;
    text-align: center;
}

.contact-hero h1 {
    font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
    font-size: 30px;
    color: #f5f6f1;
    margin: 0 0 8px;
}

.contact-hero p {
    font-size: 14px;
    color: #c7cfda;
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-wrap {
    max-width: 460px;
    margin: 0 auto;
    padding: 30px 24px 44px;
}

.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px 26px;
}

.contact-card label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 700;
}

.contact-field { margin-bottom: 16px; }

.contact-card input[type="text"],
.contact-card input[type="email"],
.contact-card textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    color: var(--body-color);
}

.contact-card textarea {
    height: 110px;
    resize: vertical;
}

.contact-card input:focus,
.contact-card textarea:focus {
    outline: none;
    border-color: var(--terracotta);
}

.contact-card button {
    width: 100%;
    background: var(--terracotta);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.contact-card button:hover {
    background: #9c3f19;
}

/* Hidden from real users via CSS, not display:none — bots tend to skip
   display:none fields but still fill this one in. */
.hp-field {
    position: absolute;
    left: -9999px;
}

.form-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f1aeb5;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0 0 16px;
    font-size: 13px;
    text-align: left;
}

.contact-fine {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    margin: 16px 0 0;
    line-height: 1.6;
}

/* Success page */
.success-wrap {
    max-width: 460px;
    margin: 40px auto;
    padding: 0 24px 44px;
    text-align: center;
}

.success-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 30px 26px;
}

.success-card h1 {
    font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
    font-size: 22px;
    color: var(--body-color);
    margin: 0 0 10px;
}

.success-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 8px;
}

.redirect-note a {
    color: var(--terracotta);
    font-weight: 700;
    text-decoration: none;
}
