﻿/* ===== Base / Reset ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Verdana, "Segoe UI", Arial, Helvetica, sans-serif;
    color: #111;
    background: #fff;
    line-height: 1.4;
}

.center {
    text-align: center;
}

/* ===== Top Bar ===== */
.topbar {
    display: grid;
    grid-template-columns: 370px 1fr auto; /* left logo / middle image / right title */
    align-items: center;
    gap: 12px;
    background: #008080; /* teal */
    color: #fff;
    padding: 8px 12px;
    border-bottom: 2px solid #c9c9c9;
}

.topbar__left img {
    max-width: 100%;
    height: auto;
    display: block;
}

.topbar__middle img {
    display: block;
    width: 100%;
    max-height: 72px; /* approximate banner height */
    object-fit: cover;
    border-radius: 2px;
}

.topbar__right {
    display: flex;
    justify-content: flex-end;
}

.topbar__title {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* A thin teal divider (the original had extra teal rows) */
.topbar-divider {
    height: 6px;
    background: #008080;
}

/* ===== Content Area ===== */
.content {
    padding: 16px 12px 32px;
}

/* ===== Card (replaces nested tables) ===== */
.card {
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #333333; /* matches original border color */
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.card--wide {
    max-width: 650px;
}
/* matches original width=650 */

.card__header {
    background: #0000ff; /* Blue header row */
    color: #fff;
    padding: 8px 12px;
}

.card__body {
    padding: 14px 16px;
}

/* ===== Form Grid (labels & fields aligned) ===== */
.form-grid {
    display: grid;
    grid-template-columns: 220px 1fr; /* label / input */
    gap: 10px 14px;
    align-items: center;
}

.form-row {
    display: contents;
}
/* allows label+input to participate in grid */

.form-grid label {
    text-align: right;
    padding-right: 6px;
    font-size: 0.95rem;
    color: #111;
}

.input,
.form-grid .input,
.form-grid input[type="text"],
.form-grid select {
    width: 100%;
    min-height: 32px;
    padding: 6px 8px;
    border: 1px solid #bfbfbf;
    border-radius: 3px;
    font-size: 0.95rem;
}

.spacer-25 {
    height: 25px;
}

/* ===== Messages ===== */
.message.info {
    margin: 14px auto 10px;
    max-width: 720px;
    color: #0f3bd4;
}

/* ===== Buttons ===== */
.actions {
    margin: 10px auto 0;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: #008080;
    color: #fff;
    border-color: #006f6f;
}

    .btn-primary:hover {
        background: #007373;
    }

.btn-secondary {
    background: #e0e0e0;
    color: #111;
    border-color: #bdbdbd;
}

    .btn-secondary:hover {
        background: #d5d5d5;
    }

/* ===== Divider ===== */
.divider {
    border: none;
    border-top: 1px solid #e3e3e3;
    margin: 20px auto 16px;
    max-width: 900px;
}

/* ===== Footer ===== */
.footer-address {
    margin: 0 auto 8px;
}

.FooterName {
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.FooterNormal {
    font-size: 0.92rem;
    color: #333;
}

.footer-ada {
    margin-top: 12px;
}

.ada-title {
    font-size: 18px;
}

.ada-link {
    color: darkblue;
    font-size: 15px;
    text-decoration: none;
}

    .ada-link:hover {
        text-decoration: underline;
    }

/* ===== Utility / Accessibility ===== */
.whitetext {
    color: #ffffff;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .topbar {
        grid-template-columns: 1fr;
    }

    .topbar__right {
        justify-content: flex-start;
    }

    .card--wide {
        max-width: 92%;
    }
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

        .form-grid label {
            text-align: left;
            padding-right: 0;
            margin-bottom: 4px;
        }
}

.large-text {
    font-size: 14px; /* choose desired size */
}
