:is(.network-form, .directory-search, .apcd-form) {
    --auth-font: 'Instrument Sans', sans-serif;
    --auth-text: .82rem;
    --auth-label: .76rem;
    --auth-muted: .7rem;
    font-family:var(--auth-font);
    font-size:var(--auth-text);
}

:is(.network-form, .directory-search, .apcd-form) label:not(.form-check-label) {
    display:block;
    margin-bottom:5px;
    color:#344755;
    font-size:var(--auth-label);
    font-weight:700;
}

:is(.network-form, .directory-search, .apcd-form) :is(.form-control, .form-select) {
    min-height:31px;
    padding:6px 10px;
    border:1px solid #dce4e7;
    border-radius:4px;
    background-color:#fff;
    color:#54636d;
    font-size:var(--auth-text);
    line-height:1.5;
}

:is(.network-form, .directory-search, .apcd-form) textarea.form-control {
    min-height:75px;
}

:is(.network-form, .directory-search, .apcd-form) :is(.form-control, .form-select):focus {
    border-color:#087b5b;
    box-shadow:0 0 0 3px rgba(8,123,91,.12);
}

:is(.network-form, .directory-search, .apcd-form) .is-invalid {
    border-color:#dc3545;
}

.register-form-card :is(.form-control, .form-select).is-invalid {
    border-color:#dc3545;
}

:is(.network-form, .directory-search, .apcd-form) :is(.form-text, small, .invalid-feedback) {
    font-size:var(--auth-muted);
    line-height:1.45;
}

:is(.network-form, .directory-search, .apcd-form) small {
    display:block;
    margin-top:3px;
    color:#879399;
}

:is(.network-form, .directory-search, .apcd-form) .form-check-label {
    color:#607280;
    font-size:var(--auth-muted);
    font-weight:400;
}

:is(.network-form, .directory-search, .apcd-form) .form-check-input:checked {
    border-color:#087b51;
    background-color:#087b51;
}

.network-card.network-form {
    padding:26px 30px;
    border:1px solid #e3e8e6;
    border-radius:12px;
    background:#fff;
    box-shadow:0 8px 24px rgba(38,68,76,.1);
}

.apcd-form-heading {
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:24px;
}

.apcd-form-heading > span {
    display:grid;
    place-items:center;
    flex:0 0 44px;
    height:44px;
    border-radius:50%;
    background:#087b5b;
    color:#fff;
    font-size:1.2rem;
}

.network-form .apcd-form-heading h2 {
    margin:0;
    color:#075b48;
    font-size:1.25rem;
    font-weight:800;
}

.apcd-form-heading p {
    margin:5px 0 0;
    color:#7d8990;
    font-size:var(--auth-muted);
}

:is(.network-form, .directory-search) button.network-button {
    min-height:36px;
    padding:9px 14px;
    border:0;
    border-radius:5px;
    background:linear-gradient(90deg,#087b51,#0a965c);
    font-size:var(--auth-text);
    font-weight:800;
}

.apcd-form button[type="submit"].btn {
    border-radius:5px;
    font-size:var(--auth-text);
}

/* Keep request pages and their forms on the same, compact content width. */
.network-form-page { padding:28px 0 36px; }
.network-form-page > .container { max-width:1040px; }
.network-form-page .network-kicker { margin-bottom:8px; }
.network-form-page h1 { font-size:clamp(1.9rem,3vw,2.6rem); margin-bottom:12px; }
.network-form-page .network-intro { max-width:none; font-size:.95rem; line-height:1.55; margin-bottom:16px; }
.network-form-page .network-note { margin:16px 0; padding:12px 16px; font-size:.85rem; line-height:1.5; }
.network-form-page .network-form { max-width:none; }
.network-form-page .apcd-form-heading { margin-bottom:18px; }
.network-form-page .network-form .form-check { margin:14px 0; }

.network-form-page:has(.request-layout) > .container { max-width:1240px; }
.request-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:24px; align-items:start; }
.request-guide { padding:25px; border:1px solid #e7e5d9; border-radius:12px; background:#fffdf7; }
.request-guide-icon { display:grid; place-items:center; width:44px; height:44px; margin-bottom:16px; border-radius:50%; color:#087b51; background:#e6f2e9; font-size:1.3rem; }
.request-guide h2 { margin-bottom:18px; color:#075b48; font-size:1.2rem; }
.request-guide ol { margin:0; padding:0; list-style:none; counter-reset:request-step; }
.request-guide ol li { position:relative; padding:0 0 17px 33px; counter-increment:request-step; }
.request-guide ol li::before { content:counter(request-step); position:absolute; left:0; top:1px; display:grid; place-items:center; width:23px; height:23px; border-radius:50%; background:#f6e8c8; color:#80600d; font-size:.75rem; font-weight:700; }
.request-guide strong { color:#284a3c; font-size:.85rem; }
.request-guide p { margin:4px 0 0; color:#657369; font-size:.8rem; line-height:1.5; }
.request-guide .network-note { margin:0 0 18px; padding:12px; font-size:.76rem; }
.request-guide .request-guide-intro { margin:0 0 18px; }
.request-guide-checklist { display:grid; gap:12px; margin:0 0 18px; padding:0; list-style:none; }
.request-guide-checklist li { position:relative; padding-left:24px; color:#284a3c; font-size:.82rem; line-height:1.5; }
.request-guide-checklist li::before { content:'✓'; position:absolute; left:0; color:#087b51; font-weight:700; }
.request-guide .request-guide-followup { padding-top:16px; margin:0 0 18px; border-top:1px solid #e7e5d9; }
.request-guide-contact { display:inline-flex; align-items:center; gap:8px; color:#087b51; font-size:.82rem; font-weight:700; text-decoration:none; }

@media(max-width:991.98px) {
    .request-layout { grid-template-columns:minmax(0,1fr); gap:18px; }
}

:is(.login-card, .register-form-card, .apcd-form) .input-group .btn-outline-secondary:is(:hover, :focus, :active) {
    background:transparent;
    color:#687983;
    box-shadow:none;
}

:is(.login-card, .register-form-card, .apcd-form) .input-group .btn-outline-secondary:focus-visible {
    border-color:#087b51;
    outline:none;
    color:#087b51;
}

@media(max-width:575.98px) {
    .network-card.network-form {
        padding:20px 17px;
    }
}
