:root {
    --alcros-navy: #071428;
    --alcros-navy-mid: #0c2247;
    --alcros-gold: #f4b400;
    --alcros-gold-hover: #e5a800;
    --citizen-site-header-height: 4.25rem;
}

html,
body.citizen-site {
    height: 100%;
    overflow: hidden;
}

.citizen-site {
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.citizen-site::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(105deg, rgba(7, 20, 40, 0.94) 0%, rgba(7, 20, 40, 0.82) 42%, rgba(7, 20, 40, 0.55) 68%, rgba(7, 20, 40, 0.45) 100%),
        url('../../../images/municipal-hall.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.citizen-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    flex-shrink: 0;
    background: var(--alcros-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

#alcros-notify-overlay {
    pointer-events: none;
}

#alcros-notify-overlay:not(.hidden) {
    pointer-events: auto;
}

#alcros-notify-overlay.hidden {
    pointer-events: none;
}

.citizen-site-main {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    margin-top: var(--citizen-site-header-height);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

.citizen-brand-logo {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.site-brand-text {
    min-width: 0;
    line-height: 1.15;
}

.site-brand-title {
    color: #fff;
    font-weight: 800;
    font-size: 0.875rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.site-brand-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.5625rem;
    font-style: italic;
    line-height: 1.3;
    margin-top: 0.125rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 640px) {
    .site-brand-title {
        font-size: 1.125rem;
    }

    .site-brand-subtitle {
        font-size: 0.6875rem;
    }
}

.citizen-nav-link {
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.65rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    text-decoration: none;
}

.citizen-nav-link:hover {
    color: var(--alcros-gold);
}

.citizen-nav-link.is-active {
    color: #fff;
    border-bottom-color: var(--alcros-gold);
}

.citizen-btn-login {
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.45rem 1.1rem;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.citizen-btn-login:hover {
    background: #fff;
    color: var(--alcros-navy);
}

.citizen-page-hero {
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
}

.citizen-page-hero h1 {
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.citizen-page-hero p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.875rem;
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.6;
}

.citizen-page-hero .back-home--inline {
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1rem;
}

.citizen-page-hero .back-home--inline:hover {
    color: var(--alcros-gold);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.citizen-section-label {
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--alcros-gold);
    margin-bottom: 1.5rem;
}

.citizen-service-card {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    box-shadow: 0 12px 32px rgba(7, 20, 40, 0.18);
    cursor: pointer;
    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease;
}

.citizen-service-card:hover {
    background: #fff;
    border-color: rgba(244, 180, 0, 0.55);
    box-shadow: 0 22px 48px rgba(7, 20, 40, 0.28);
    transform: translateY(-4px);
}

.citizen-service-card:hover .citizen-link-gold {
    color: var(--alcros-navy);
    border-bottom-color: var(--alcros-navy);
}

.citizen-service-card:hover .citizen-link-gold i,
.citizen-service-card:hover .citizen-link-gold svg {
    transform: translateX(2px);
}

.citizen-service-card .citizen-link-gold i,
.citizen-service-card .citizen-link-gold svg {
    transition: transform 0.25s ease;
}

.citizen-service-card > div.w-12,
.citizen-service-card > div.w-8 {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.citizen-service-card:hover > div.w-12,
.citizen-service-card:hover > div.w-8 {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.citizen-link-gold {
    color: #92400e;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(244, 180, 0, 0.55);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
}

.citizen-link-gold:hover {
    color: var(--alcros-navy);
    border-bottom-color: var(--alcros-navy);
}

@media (min-width: 768px) {
    .special-services-grid .citizen-service-card--psa-center {
        grid-column: 2;
    }
}

.citizen-service-card__fees {
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.5rem;
    background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
}

.citizen-service-card__fees-label {
    margin: 0 0 0.25rem;
    font-size: 0.5625rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b45309;
}

.citizen-service-card__fees-line {
    margin: 0;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.45;
    color: #92400e;
}

.citizen-service-card__fees-line + .citizen-service-card__fees-line {
    margin-top: 0.2rem;
}

.citizen-service-card.p-8 .citizen-service-card__fees {
    text-align: left;
    margin-bottom: 1rem;
}

.citizen-service-card--appointment {
    cursor: default;
}

.citizen-service-card--appointment:hover {
    transform: none;
}

.citizen-service-card__actions {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    margin-top: auto;
}

.citizen-service-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0.65rem;
    padding: 0.55rem 0.85rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

@media (min-width: 640px) {
    .citizen-service-card__btn {
        width: auto;
        flex: 1 1 auto;
    }
}

.citizen-service-card__btn--primary {
    background: var(--alcros-navy);
    color: #fff;
    border: 1px solid var(--alcros-navy);
    box-shadow: 0 4px 14px rgba(7, 20, 40, 0.15);
}

.citizen-service-card__btn--primary:hover {
    background: #0a1a35;
    color: #fff;
}

.citizen-service-card__btn--secondary {
    background: #fff;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.citizen-service-card__btn--secondary:hover {
    border-color: var(--alcros-gold);
    color: var(--alcros-navy);
    background: #fffbeb;
}

body.svc-req-modal-open {
    overflow: hidden;
}

body.svc-req-modal-open .citizen-site-main {
    overflow: hidden;
}

.svc-req-modal {
    position: fixed;
    inset: 0;
    z-index: 85;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
}

.svc-req-modal.hidden {
    display: none;
}

.svc-req-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 20, 40, 0.62);
    backdrop-filter: blur(4px);
    animation: svc-req-fade-in 0.22s ease-out;
}

.svc-req-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 26rem);
    max-height: min(90dvh, 640px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 1.125rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 28px 80px rgba(7, 20, 40, 0.35);
    animation: svc-req-slide-up 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

@keyframes svc-req-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes svc-req-slide-up {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.svc-req-modal__header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1rem 0.85rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #fff 100%);
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.svc-req-modal__header-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: #fff;
    border: 1px solid #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.svc-req-modal__kicker {
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 0.15rem;
}

.svc-req-modal__title {
    font-size: 1.0625rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.3;
}

.svc-req-modal__close {
    margin-left: auto;
    flex-shrink: 0;
    padding: 0.45rem;
    border: none;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.7);
    color: #64748b;
    cursor: pointer;
}

.svc-req-modal__close:hover {
    background: #fff;
    color: #0f172a;
}

.svc-req-modal__body {
    padding: 1rem 1.15rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #334155;
    flex: 1 1 auto;
    min-height: 0;
}

.svc-req-lead {
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
}

.svc-req-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: svc-req;
}

.svc-req-list > li {
    counter-increment: svc-req;
    position: relative;
    padding: 0.65rem 0.65rem 0.65rem 2.35rem;
    margin-bottom: 0.5rem;
    background: #fafafa;
    border: 1px solid #f1f5f9;
    border-radius: 0.65rem;
}

.svc-req-list > li::before {
    content: counter(svc-req);
    position: absolute;
    left: 0.65rem;
    top: 0.65rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: var(--alcros-navy);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 800;
    line-height: 1.35rem;
    text-align: center;
}

.svc-req-sublist {
    list-style: disc;
    margin: 0.45rem 0 0;
    padding-left: 1.15rem;
    color: #64748b;
    font-size: 0.75rem;
}

.svc-req-sublist li {
    margin-bottom: 0.2rem;
}

.svc-req-fees {
    margin-top: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.65rem;
    background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
}

.svc-req-fees p {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #92400e;
}

.svc-req-fees p + p {
    margin-top: 0.35rem;
}

.svc-req-notes {
    margin-top: 0.65rem;
    font-size: 0.6875rem;
    line-height: 1.45;
    color: #64748b;
}

.svc-req-notes p {
    margin: 0;
}

.svc-req-modal__footer {
    flex-shrink: 0;
    padding: 0.85rem 1rem 1rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.svc-req-modal__hint {
    margin: 0 0 0.75rem;
    font-size: 0.6875rem;
    line-height: 1.45;
    color: #64748b;
}

.svc-req-modal__footer-actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
}

@media (min-width: 420px) {
    .svc-req-modal__footer-actions {
        flex-direction: row;
        justify-content: flex-end;
    }
}

.svc-req-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s;
}

.svc-req-modal__btn--ghost {
    background: #fff;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.svc-req-modal__btn--ghost:hover {
    color: #0f172a;
    border-color: #cbd5e1;
}

.svc-req-modal__btn--primary {
    background: var(--alcros-gold);
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(244, 180, 0, 0.35);
    flex: 1 1 auto;
}

.svc-req-modal__btn--primary:hover {
    background: var(--alcros-gold-hover);
    color: #0f172a;
}

.citizen-help-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    box-shadow: 0 12px 32px rgba(7, 20, 40, 0.16);
}

.citizen-footer {
    background: var(--alcros-navy);
    color: rgba(255, 255, 255, 0.75);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.citizen-footer a,
.citizen-footer button {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s;
}

.citizen-footer a:hover,
.citizen-footer button:hover {
    color: #fff;
}

#citizenMobileNav.is-open {
    display: block;
}

/* ── Mobile & small-tablet responsiveness ── */
@media (max-width: 1023px) {
    html,
    body.citizen-site {
        height: auto;
        min-height: 100%;
        overflow: auto;
    }

    .citizen-site {
        height: auto;
        min-height: 100dvh;
        max-height: none;
        overflow: visible;
    }

    .citizen-site-main {
        overflow: visible;
        min-height: auto;
    }
}

@media (max-width: 639px) {
    .citizen-site-header .max-w-7xl {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .citizen-brand-logo {
        width: 2.5rem;
        height: 2.5rem;
    }

    .citizen-site-header a.flex.items-center.gap-3 {
        gap: 0.625rem;
    }

    #citizenMobileNav .citizen-nav-link {
        display: block;
        padding: 0.65rem 0.5rem;
        font-size: 0.75rem;
    }

    .citizen-page-hero {
        padding: 1.5rem 1rem 1.25rem;
    }

    .citizen-page-hero h1 {
        font-size: clamp(1.35rem, 6vw, 1.75rem);
    }

    .citizen-page-hero p {
        font-size: 0.8125rem;
    }

    .citizen-service-card.p-8,
    .citizen-service-card.p-6 {
        padding: 1.25rem;
    }

    .citizen-help-card {
        padding: 1.25rem !important;
    }

    .citizen-footer {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        text-align: center;
    }

    .citizen-footer > div {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}
