/* FOI public pages — VCWD purple theme (aligned with login landing) */
.foi-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Figtree', sans-serif;
    color: #1e1b4b;
    background:
        radial-gradient(circle at top right, rgba(167, 139, 250, 0.22), transparent 42%),
        linear-gradient(165deg, #f8fafc 0%, #eef2ff 50%, #f5f3ff 100%);
    display: flex;
    flex-direction: column;
    padding-bottom: 4.75rem;
}

.foi-shell {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 4.75rem);
    flex: 1 1 auto;
}

.foi-sidebar {
    width: 260px;
    flex: 0 0 260px;
    background: linear-gradient(180deg, #1e1b4b 0%, #312e81 45%, #4c1d95 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 8px 0 24px rgba(49, 46, 129, 0.18);
    z-index: 30;
}

.foi-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 0.95rem;
    border-bottom: 1px solid rgba(233, 213, 255, 0.18);
}
.foi-sidebar__brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.14);
    padding: 0.2rem;
    flex-shrink: 0;
}
.foi-sidebar__brand strong {
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}
.foi-sidebar__brand span {
    display: block;
    font-size: 0.72rem;
    color: #e9d5ff;
    font-weight: 600;
    margin-top: 0.1rem;
}

.foi-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 0.7rem;
    flex: 1 1 auto;
    overflow-y: auto;
}
.foi-sidebar__label {
    margin: 0.65rem 0.45rem 0.35rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(233, 213, 255, 0.7);
}
.foi-sidebar__nav a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.86rem;
    font-weight: 650;
    padding: 0.65rem 0.7rem;
    border-radius: 0.55rem;
    border: 1px solid transparent;
}
.foi-sidebar__nav a i {
    width: 1.1rem;
    text-align: center;
    opacity: 0.9;
}
.foi-sidebar__nav a:hover,
.foi-sidebar__nav a.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(233, 213, 255, 0.28);
}
.foi-sidebar__login {
    margin-top: 0.35rem;
    background: rgba(124, 58, 237, 0.35) !important;
    border-color: rgba(233, 213, 255, 0.35) !important;
}

.foi-sidebar__foi {
    padding: 0.85rem;
    border-top: 1px solid rgba(233, 213, 255, 0.18);
    display: flex;
    justify-content: center;
}
.foi-sidebar__foi a {
    width: 78px;
    height: 78px;
    border-radius: 9999px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    display: block;
    overflow: hidden;
}
.foi-sidebar__foi img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.foi-sidebar-backdrop {
    display: none;
}

.foi-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.foi-topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: linear-gradient(90deg, #312e81, #5b21b6 55%, #7c3aed);
    color: #fff;
    box-shadow: 0 6px 18px rgba(49, 46, 129, 0.2);
}
.foi-topbar__menu {
    display: none;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}
.foi-topbar__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    flex: 1 1 auto;
}
.foi-topbar__brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.14);
    padding: 0.15rem;
    flex-shrink: 0;
}
.foi-topbar__brand strong {
    display: block;
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.foi-topbar__brand span {
    display: block;
    font-size: 0.74rem;
    color: #e9d5ff;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.foi-topbar__foi {
    width: 52px;
    height: 52px;
    border-radius: 9999px;
    background: #fff;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.foi-topbar__foi img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.foi-hero {
    background: linear-gradient(120deg, rgba(49, 46, 129, 0.96), rgba(91, 33, 182, 0.92) 55%, rgba(124, 58, 237, 0.9));
    color: #fff;
    padding: 1.35rem 1rem 1.6rem;
}
.foi-hero__inner {
    max-width: 1120px;
    margin: 0 auto;
}
.foi-hero__brand {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    margin-bottom: 1.15rem;
    flex-wrap: wrap;
}
.foi-hero__logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.14);
    padding: 0.45rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
.foi-hero__org {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #ede9fe;
}
.foi-hero__place {
    margin: 0.15rem 0 0.45rem;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.8);
}
.foi-hero h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    font-weight: 800;
}
.foi-hero__tag {
    margin: 0;
    color: #f5d0fe;
    font-size: 0.95rem;
}
.foi-hero__tag span { color: #fff; font-weight: 700; }
.foi-hero__search {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 720px;
}
.foi-hero__search input {
    flex: 1;
    min-width: 220px;
    border: none;
    border-radius: 0.55rem;
    padding: 0.85rem 1rem;
    font: inherit;
}
.foi-hero__search button {
    border: none;
    border-radius: 0.55rem;
    background: #f5f3ff;
    color: #4c1d95;
    font-weight: 800;
    padding: 0.85rem 1.1rem;
    cursor: pointer;
}
.foi-hero__search button:hover { background: #fff; }

.foi-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2.5rem;
}

.foi-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.25rem;
    align-items: start;
}

.foi-panel {
    background: #fff;
    border: 1px solid #e9d5ff;
    border-radius: 0.85rem;
    box-shadow: 0 12px 28px rgba(49, 46, 129, 0.06);
}

.foi-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    padding: 0.85rem 1rem 0;
    border-bottom: 1px solid #ede9fe;
}
.foi-tabs a {
    text-decoration: none;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.55rem 0.1rem 0.75rem;
    border-bottom: 3px solid transparent;
}
.foi-tabs a.is-active {
    color: #5b21b6;
    border-bottom-color: #7c3aed;
}

.foi-list { padding: 0.75rem; }
.foi-item {
    border: 1px solid #ede9fe;
    border-radius: 0.65rem;
    padding: 0.95rem 1rem;
    margin-bottom: 0.65rem;
    background: linear-gradient(180deg, #faf5ff, #fff);
}
.foi-item:last-child { margin-bottom: 0; }
.foi-item__title {
    margin: 0 0 0.45rem;
    font-size: 1.02rem;
    font-weight: 800;
    color: #1e1b4b;
}
.foi-item__meta {
    margin: 0;
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.45;
}
.foi-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.7rem;
    border-radius: 9999px;
    padding: 0.22rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}
.foi-badge--pending,
.foi-badge--processing { background: #ede9fe; color: #5b21b6; }
.foi-badge--successful { background: #dcfce7; color: #166534; }
.foi-badge--unsuccessful { background: #fee2e2; color: #991b1b; }

.foi-empty {
    text-align: center;
    color: #6b7280;
    padding: 2rem 1rem;
    font-size: 0.92rem;
}
.foi-empty a { color: #5b21b6; font-weight: 700; }

.foi-transparency-intro {
    padding: 1rem 1rem 0.35rem;
}
.foi-transparency-intro h2 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
    color: #312e81;
}
.foi-transparency-intro p {
    margin: 0 0 0.75rem;
    color: #4b5563;
    font-size: 0.88rem;
    line-height: 1.5;
}
.foi-transparency-intro a { color: #5b21b6; font-weight: 700; }
.foi-breadcrumb {
    font-size: 0.78rem !important;
    color: #6b7280 !important;
}
.foi-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    padding: 0.75rem 1rem 1.1rem;
}
.foi-category-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(180deg, #faf5ff, #fff);
    border: 1px solid #ddd6fe;
    border-radius: 0.75rem;
    padding: 0.9rem 0.85rem;
    box-shadow: 0 6px 16px rgba(91, 33, 182, 0.06);
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.foi-category-card:hover {
    transform: translateY(-2px);
    border-color: #a78bfa;
}
.foi-category-card__icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ede9fe;
    color: #5b21b6;
    margin-bottom: 0.2rem;
}
.foi-category-card strong {
    font-size: 0.9rem;
    color: #312e81;
    line-height: 1.3;
}
.foi-category-card span {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.35;
}
.foi-category-card em {
    margin-top: 0.25rem;
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 700;
    color: #7c3aed;
}
.foi-item__link {
    display: inline-flex;
    margin-top: 0.65rem;
    color: #5b21b6;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}
.foi-item__link:hover { text-decoration: underline; }
.foi-about__cats {
    display: grid;
    gap: 0.35rem;
    margin: 0.75rem 0 0.35rem;
    text-align: left;
}
.foi-about__cats a {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #4c1d95;
    text-decoration: none;
    padding: 0.35rem 0.45rem;
    border-radius: 0.4rem;
    background: #f5f3ff;
}
.foi-about__cats a:hover { background: #ede9fe; }

.foi-about {
    padding: 1.1rem 1rem 1.2rem;
    text-align: center;
}
.foi-about__logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin: 0 auto 0.75rem;
    display: block;
    border-radius: 1rem;
    background: #f5f3ff;
    padding: 0.4rem;
    box-shadow: 0 8px 20px rgba(91, 33, 182, 0.12);
}
.foi-about h2 {
    margin: 0 0 0.55rem;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: #312e81;
}
.foi-about p {
    margin: 0 0 1rem;
    font-size: 0.84rem;
    color: #4b5563;
    line-height: 1.45;
    text-align: left;
}
.foi-about__btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    border-radius: 0.55rem;
    padding: 0.8rem 0.75rem;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 0.55rem;
}
.foi-about__btn--yellow {
    background: #7c3aed;
    color: #fff;
}
.foi-about__btn--yellow:hover { background: #6d28d9; }
.foi-about__btn--blue {
    background: #ede9fe;
    color: #4c1d95;
    border: 1px solid #ddd6fe;
}
.foi-about__btn--blue:hover { background: #ddd6fe; }
.foi-about__btn small {
    display: block;
    font-weight: 600;
    font-size: 0.72rem;
    opacity: 0.9;
    margin-top: 0.15rem;
}
.foi-about__home {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.55rem;
    color: #5b21b6;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.4;
}
.foi-about__home:hover { text-decoration: underline; }

.foi-form-card {
    background: #fff;
    border: 1px solid #e9d5ff;
    border-radius: 0.85rem;
    padding: 1.25rem;
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(49, 46, 129, 0.06);
}
.foi-form-card h1 {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
    color: #312e81;
}
.foi-form-card .lead {
    margin: 0 0 1rem;
    color: #6b7280;
    font-size: 0.92rem;
}
.foi-form-card label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    margin: 0.85rem 0 0.35rem;
    color: #312e81;
}
.foi-form-card input,
.foi-form-card select,
.foi-form-card textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #c4b5fd;
    border-radius: 0.55rem;
    padding: 0.65rem 0.75rem;
    font: inherit;
}
.foi-form-card textarea { min-height: 120px; resize: vertical; }
.foi-form-card .check-row {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    margin: 1rem 0;
    font-size: 0.88rem;
}
.foi-form-card .check-row input { width: auto; margin-top: 0.2rem; }
.foi-form-card form {
    max-width: 100%;
}
.flash-ok {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.55rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-weight: 600;
}
.flash-err {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.55rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.btn-foi-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: none;
    border-radius: 0.55rem;
    background: #7c3aed;
    color: #fff;
    font-weight: 800;
    padding: 0.75rem 1rem;
    cursor: pointer;
    text-decoration: none;
}
.btn-foi-muted {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 0.55rem;
    background: #ede9fe;
    color: #4c1d95;
    font-weight: 700;
    padding: 0.75rem 1rem;
    text-decoration: none;
}
.foi-otp-row {
    display: flex;
    gap: 0.55rem;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.foi-otp-row input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
}
.btn-foi-otp {
    flex: 0 0 auto;
    border: 1px solid #7c3aed;
    border-radius: 0.55rem;
    background: #ede9fe;
    color: #4c1d95;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 0.65rem 0.85rem;
    cursor: pointer;
    white-space: nowrap;
}
.btn-foi-otp:hover:not(:disabled) { background: #ddd6fe; }
.btn-foi-otp:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.btn-foi-otp--verify {
    background: #7c3aed;
    color: #fff;
    border-color: #6d28d9;
}
.btn-foi-otp--verify:hover:not(:disabled) { background: #6d28d9; }
.foi-otp-hint,
.foi-submit-hint {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}
.foi-otp-panel {
    margin-top: 0.35rem;
    padding: 0.85rem;
    border: 1px solid #ddd6fe;
    border-radius: 0.65rem;
    background: #f5f3ff;
}
.foi-otp-status {
    margin: 0.45rem 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
}
.foi-otp-status.is-ok { color: #065f46; }
.foi-otp-status.is-err { color: #991b1b; }
.foi-otp-status.is-warn { color: #92400e; }
.btn-foi-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.foi-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; }

.foi-site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    text-align: center;
    padding: 0.7rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    line-height: 1.45;
    background: linear-gradient(90deg, #1e1b4b, #312e81 50%, #4c1d95);
    border-top: 1px solid rgba(233, 213, 255, 0.25);
}
.foi-site-footer a { color: #e9d5ff; }
.foi-site-footer strong {
    color: #fde68a;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.foi-pager { padding: 0.75rem 1rem 1rem; }

@media (max-width: 980px) {
    .foi-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 4.75rem;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
    }
    .foi-body.foi-sidebar-open .foi-sidebar {
        transform: translateX(0);
    }
    .foi-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0 0 4.75rem 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 25;
    }
    .foi-sidebar-backdrop[hidden] { display: none !important; }
    .foi-topbar__menu { display: inline-flex; align-items: center; justify-content: center; }
    .foi-topbar__foi { width: 44px; height: 44px; }
    .foi-topbar__brand strong { font-size: 0.82rem; }
    .foi-topbar__brand span { font-size: 0.68rem; }
}

@media (max-width: 900px) {
    .foi-layout { grid-template-columns: 1fr; }
    .foi-about { order: -1; }
    .foi-hero__logo {
        width: 96px;
        height: 96px;
    }
}
