:root {
    --green: #317D46;
    --red: #E3332C;
    --text: #1a1a1a;
    --muted: #666;
    --border: #ddd;
    --bg: #fafafa;
    --font-display: 'Roboto', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.topbar-logo {
    display: flex;
    align-items: center;
}

.topbar-logo img {
    height: 36px;
    width: auto;
}

.topbar-phone {
    color: var(--red);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.apply-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

h1 {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.lede {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.apply-form {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.apply-form label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.apply-form input,
.apply-form select {
    padding: 0.85rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 100%;
}

.branch-unavailable {
    color: var(--red);
    font-size: 0.9rem;
}

.radio-row {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.35rem;
}

.apply-form .radio-inline {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 400;
    margin-top: 0;
}

.business-details {
    margin-top: 0.5rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.statement-note {
    margin-top: 1.25rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
}

.statement-note p { margin: 0.35rem 0 0; }

.btn-link {
    margin-top: 0.6rem;
    padding: 0;
    background: none;
    border: none;
    color: var(--green);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
}

.modal-overlay[hidden] {
    display: none;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 100;
}

.modal-box {
    position: relative;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
}

.modal-box h2 {
    margin-top: 0;
    font-size: 1.2rem;
}

.modal-box h3 {
    font-size: 1rem;
    margin: 1rem 0 0.35rem;
    color: var(--green);
}

.steps-or {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0.9rem 0;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.steps-or::before,
.steps-or::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--border);
}

.steps-or span {
    padding: 0 0.6rem;
}

.modal-box ol {
    margin: 0;
    padding-left: 1.4rem;
    font-size: 0.9rem;
}

.modal-box li {
    margin-bottom: 0.4rem;
}

.step-note {
    margin: 0.3rem 0 0;
    color: var(--muted);
    font-size: 1rem;
    font-style: italic;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
}

.turnstile-container {
    margin-top: 1rem;
}

.step-progress {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

.step-status {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.field-error {
    color: var(--red);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.btn-submit {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.flash {
    margin: 1rem 1.25rem 0;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.flash-success { background: #e6f4ea; color: #1e6b34; }
.flash-error   { background: #fdecea; color: #a52a1a; }

/* ── Admin ─────────────────────────────────────────────────────────── */

.login-wrap {
    max-width: 340px;
    margin: 4rem auto;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.login-wrap form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-wrap input, .login-wrap button {
    padding: 0.7rem;
    font-size: 1rem;
}

.admin-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #fff;
}

.admin-table th, .admin-table td {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
