body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.about-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 15px 40px;
    box-sizing: border-box;
}

.contact-card {
    max-width: 520px;
    width: 100%;
    margin: 0 auto 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 18px 20px 22px;
    box-sizing: border-box;
}

.contact-intro {
    margin-bottom: 10px;
}

.contact-intro p {
    margin: 4px 0 0;
    font-size: 0.95em;
    color: #555;
}

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

.contact-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9em;
    color: #333;
    font-weight: 600;
}

.contact-field input[type="text"],
.contact-field input[type="email"],
.contact-field textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid #ccd1d9;
    font-size: 1rem;
    box-sizing: border-box;
    min-height: 44px;
}

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

.captcha-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9em;
}

.captcha-row span {
    white-space: normal;
}

.captcha-row input[type="text"] {
    max-width: 100px;
    min-height: 44px;
}

.contact-submit-row {
    margin-top: 14px;
    text-align: right;
}

.contact-submit {
    padding: 12px 22px;
    border-radius: 6px;
    background: transparent;
    color: #002b5c;
    border: 2px solid #002b5c;
    font-weight: bold;
    font-size: 0.95em;
    cursor: pointer;
    min-height: 48px;
    transition: background 0.2s ease, color 0.2s ease;
}

.contact-submit:hover:not([disabled]) {
    background: rgba(0, 43, 92, 0.06);
    color: #002b5c;
}

.contact-submit[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.back-link {
    margin-top: 16px;
    text-align: left;
}

.back-link a {
    display: inline-block;
    font-size: 0.95em;
    color: #002b5c;
    text-decoration: none;
    padding: 8px 0;
    min-height: 44px;
    line-height: 28px;
}

.back-link a:hover {
    text-decoration: underline;
}

.alert {
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-bottom: 12px;
}

.alert-error {
    background: #ffe5e5;
    border: 1px solid #e39b9b;
    color: #7a2222;
}

.alert-success {
    background: #e7ffe9;
    border: 1px solid #8dcf9b;
    color: #21572a;
}

/* Toast message (bottom centre) */
#toast {
    position: fixed;
    left: 50%;
    bottom: max(20px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    background: rgba(0, 43, 92, 0.98);
    color: #ffdd00;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 2000;
    max-width: calc(100vw - 32px);
    text-align: center;
    box-sizing: border-box;
}

#toast.show {
    opacity: 1;
}

/* Header used across BFS public pages */
.brn-header {
    text-align: center;
    background: #ffffff;
    padding: 18px 10px 22px;
    border-radius: 12px;
    margin: 0 auto 20px;
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(0, 43, 92, 0.12);
    border-bottom: 4px solid #002b5c;
    box-shadow: none;
    box-sizing: border-box;
}

.brn-header-logo {
    width: 90px;
    height: auto;
    margin: 0 auto 8px;
    display: block;
}

/* contact.php — logo 75% larger (90px → 158px) */
body.contact-page .brn-header {
    max-width: 520px;
}

body.contact-page .brn-header-logo {
    width: min(158px, 55vw);
}

.brn-header-logo-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0 auto 8px;
    display: block;
    cursor: default;
    line-height: 0;
}

.brn-header-logo-btn .brn-header-logo {
    margin: 0;
}

.brn-header-logo-btn:hover .brn-header-logo {
    opacity: 0.85;
}

.brn-header-title {
    color: #002b5c;
    font-size: clamp(1.2rem, 4.5vw, 1.55rem);
    font-weight: 700;
    margin: 0 auto 4px;
    text-align: center;
    line-height: 1.2;
}

.brn-header-sub {
    color: #0A3D91;
    font-size: clamp(0.88rem, 3.2vw, 0.95rem);
    text-align: center;
    margin: 0 auto;
}

footer {
    text-align: center;
    margin: 30px auto 0;
    padding: 15px;
    font-size: 0.85rem;
    color: #002b5c;
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
}

footer a {
    color: #0A3D91;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.brn-adsense-wrap {
    width: 100%;
    max-width: 520px;
    margin: 20px auto 8px;
    text-align: center;
    overflow: hidden;
    min-height: 90px;
}

@media (max-width: 640px) {
    .about-container {
        padding: 12px 12px 28px;
        padding-bottom: max(28px, env(safe-area-inset-bottom));
    }

    .brn-header,
    body.contact-page .brn-header {
        max-width: 100%;
        margin-bottom: 14px;
        padding: 14px 12px 16px;
    }

    .contact-card {
        max-width: 100%;
        padding: 14px 14px 18px;
        margin-bottom: 18px;
    }

    .contact-submit {
        width: 100%;
    }

    .captcha-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .captcha-row input[type="text"] {
        max-width: 100%;
        width: 100%;
    }

    footer {
        max-width: 100%;
        padding: 12px;
    }
}

@media (min-width: 641px) {
    .about-container {
        padding: 28px 20px 48px;
    }
}
