﻿/* ══════════════════════════════════════════════════════════════
   public-service.css  —  New Cold Storage Construction Apply
   Standalone page (Layout = null)
   ══════════════════════════════════════════════════════════════ */

/* ── BASE ───────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

.ncp-body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe4c4 100%);
    color: #5e3a1c;
    min-height: 100vh;
    margin: 0;
}

/* ── MINI TOPBAR ────────────────────────────────────────────── */
.ncp-topbar {
    background: #fff;
    border-bottom: 2px solid #f4a261;
    padding: 0.6rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.ncp-topbar-logo {
    height: 40px;
    width: auto;
    margin-right: 0.75rem;
    filter: drop-shadow(1px 2px 4px rgba(0,0,0,0.1));
}

.ncp-topbar-title {
    font-weight: 800;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #d35400, #e67e22);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.ncp-topbar-sub {
    font-size: 0.72rem;
    color: #b6490c;
    font-weight: 500;
}

.ncp-topbar-home {
    font-size: 0.78rem;
    font-weight: 600;
    color: #d35400;
    border: 1.5px solid #f4a261;
    border-radius: 20px;
    padding: 0.3rem 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

    .ncp-topbar-home:hover {
        background: #fff3e0;
        border-color: #d35400;
        color: #b84800;
        text-decoration: none;
    }

/* ── HERO ───────────────────────────────────────────────────── */
.ncp-hero {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff;
    padding: 1rem 0;
}

.ncp-hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.ncp-breadcrumb .breadcrumb-item,
.ncp-breadcrumb .breadcrumb-item a {
    color: rgba(255,255,255,0.75);
    font-size: 0.78rem;
}

    .ncp-breadcrumb .breadcrumb-item.active {
        color: rgba(255,255,255,0.95);
    }

    .ncp-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        color: rgba(255,255,255,0.4);
    }

.ncp-hero-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0.2rem 0 0.15rem;
    color: #fff;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

.ncp-hero-sub {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.82);
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   HOW-TO-APPLY — SINGLE BAR
   ══════════════════════════════════════════════════════════════ */
.ncp-howto-wrap {
    background: #fff;
    border-bottom: 1px solid #f0d5b0;
    padding: 0.6rem 0 0.75rem;
    box-shadow: 0 2px 6px rgba(211,84,0,0.07);
}

/* small eyebrow label */
.ncp-howto-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #d35400;
    margin-bottom: 0.45rem;
}

/* the single pill bar */
.ncp-howto-bar {
    display: flex;
    align-items: center;
    background: #fff8f0;
    border: 1.5px solid #f4d4a0;
    border-radius: 50px; /* full pill */
    padding: 0.45rem 1rem;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none; /* hide scrollbar on Firefox */
}

    .ncp-howto-bar::-webkit-scrollbar {
        display: none;
    }

/* each step inside the bar */
.ncp-hs {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

/* icon bubble */
.ncp-hs-bubble {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffe0b5;
    border: 1.5px solid #f4a261;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .ncp-hs-bubble i {
        font-size: 0.7rem;
        color: #d35400;
    }

/* active steps (1 & 2 — what user does NOW) */
.ncp-hs-done .ncp-hs-bubble {
    background: linear-gradient(135deg, #e67e22, #d35400);
    border-color: #d35400;
}

    .ncp-hs-done .ncp-hs-bubble i {
        color: #fff;
    }

/* final step — highlighted */
.ncp-hs-final .ncp-hs-bubble {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    border-color: #1e8449;
}

    .ncp-hs-final .ncp-hs-bubble i {
        color: #fff;
    }

/* step text */
.ncp-hs-text {
    font-size: 0.78rem;
    color: #5e3a1c;
    white-space: nowrap;
}

.ncp-hs-done .ncp-hs-text {
    color: #d35400;
    font-weight: 600;
}

.ncp-hs-final .ncp-hs-text {
    color: #1e8449;
    font-weight: 600;
}

/* connecting line between steps */
.ncp-hs-line {
    flex: 1;
    min-width: 20px;
    max-width: 48px;
    height: 1.5px;
    background: linear-gradient(to right, #f4a261, #f0d5b0);
    margin: 0 0.3rem;
    flex-shrink: 0;
}

/* ── MAIN LAYOUT ────────────────────────────────────────────── */
.ncp-main-wrap {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}

.ncp-row-equal {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* ── SHARED PANEL ───────────────────────────────────────────── */
.ncp-panel {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0d5b0;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.ncp-panel-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.3rem;
    background: #fffaf3;
    border-bottom: 1.5px solid #f4a261;
    color: #6b3e1a;
    flex-shrink: 0;
}

.ncp-action-header {
    background: linear-gradient(135deg, #e67e22, #d35400);
    border-bottom: none;
    color: #fff;
}

    .ncp-action-header small {
        color: rgba(255,255,255,0.82);
    }

.ncp-panel-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.ncp-panel-header h5 {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.3;
}

.ncp-panel-header small {
    font-size: 0.75rem;
    color: #a0632a;
}

.ncp-panel-body {
    padding: 1.3rem;
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ── DOCS PANEL ─────────────────────────────────────────────── */
.ncp-section-label {
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #d35400;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.ncp-rules-block {
    flex-shrink: 0;
}

.ncp-rules-list {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

    .ncp-rules-list li {
        display: flex;
        align-items: flex-start;
        gap: 0.55rem;
        font-size: 0.84rem;
        color: #4a2e10;
        margin-bottom: 0.5rem;
        line-height: 1.55;
    }

        .ncp-rules-list li::before {
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #f4a261;
            flex-shrink: 0;
            margin-top: 6px;
        }

.ncp-divider {
    border: none;
    border-top: 1px dashed #f0d5b0;
    margin: 0.9rem 0;
    flex-shrink: 0;
}

/* ── SCROLLABLE TABLE (5 rows) ──────────────────────────────── */
.ncp-doc-scroll-box {
    max-height: 206px; /* thead ~36px + 5 × 34px */
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #f0d5b0;
    flex-shrink: 0;
}

.ncp-doc-table {
    font-size: 0.82rem;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .ncp-doc-table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #fff3e0;
        color: #7a4010;
        font-weight: 700;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        padding: 8px 10px;
        border-bottom: 2px solid #f4a261;
        white-space: nowrap;
    }

    .ncp-doc-table tbody td {
        padding: 7px 10px;
        border-bottom: 1px solid #f5e6d0;
        color: #4a2e10;
        vertical-align: middle;
    }

    .ncp-doc-table tbody tr:last-child td {
        border-bottom: none;
    }

    .ncp-doc-table tbody tr:hover td {
        background: #fff9f3;
    }

.ncp-row-mandatory td {
    background: #fffaf8;
}

/* ── LOADING / ERROR ────────────────────────────────────────── */
.ncp-loading-state,
.ncp-error-state {
    font-size: 0.85rem;
    padding: 1.2rem;
    border-radius: 10px;
    text-align: center;
    flex-shrink: 0;
}

.ncp-loading-state {
    background: #fff8ec;
    color: #a0632a;
}

.ncp-error-state {
    background: #fff0f0;
    color: #c0392b;
}

/* ── ACTION PANEL — steps ───────────────────────────────────── */
.ncp-step-card {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    background: #fff8f0;
    border: 1px solid #ffe0b5;
    border-radius: 12px;
    padding: 1rem;
}

.ncp-step-number {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #d35400;
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.ncp-step-body {
    flex: 1;
}

.ncp-step-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: #5e3a1c;
    margin-bottom: 0.25rem;
}

.ncp-step-desc {
    font-size: 0.78rem;
    color: #8a6040;
    margin-bottom: 0.65rem;
    line-height: 1.5;
}

.btn-ncp-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: #d35400;
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: 8px;
    padding: 0.48rem 1rem;
    transition: background 0.2s, transform 0.15s;
    width: 100%;
    text-align: center;
}

    .btn-ncp-primary:hover {
        background: #b84800;
        transform: translateY(-1px);
        color: #fff;
    }

.btn-ncp-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: #fff;
    border: 1.5px solid #d35400;
    color: #d35400;
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: 8px;
    padding: 0.45rem 1rem;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
}

    .btn-ncp-secondary:hover {
        background: #fff3e0;
        color: #b84800;
        border-color: #b84800;
        transform: translateY(-1px);
    }

/* THEN connector */
.ncp-step-connector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
}

.ncp-connector-line {
    flex: 1;
    height: 1px;
    background: #f0c48b;
}

.ncp-connector-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #c07030;
    white-space: nowrap;
    padding: 0 0.4rem;
}

/* info note */
.ncp-info-note {
    background: #fff8ec;
    border: 1px solid #f4d4a0;
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    font-size: 0.78rem;
    color: #7a4820;
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

    .ncp-info-note i {
        color: #e67e22;
        flex-shrink: 0;
    }

/* ── MINI FOOTER ────────────────────────────────────────────── */
.ncp-mini-footer {
    text-align: center;
    font-size: 0.72rem;
    color: #a0632a;
    padding: 0.9rem 1rem;
    border-top: 1px solid #f0d5b0;
    background: #fff;
}

.ncp-mini-footer-sep {
    margin: 0 0.5rem;
    color: #f4a261;
}

/* ── MODAL (Public Services modal if needed) ────────────────── */
.ps-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0,0,0,0.18);
}

.ps-modal-header {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff;
    padding: 1.25rem 1.5rem;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ps-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.ps-modal-icon {
    font-size: 1.8rem;
    opacity: 0.9;
}

.ps-modal-header .modal-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.2;
}

.ps-modal-subtitle {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
}

.ps-close-btn {
    color: #fff !important;
    opacity: 0.85;
    font-size: 1.4rem;
    line-height: 1;
}

    .ps-close-btn:hover {
        opacity: 1;
    }

.ps-modal-body {
    background: #fff8f0;
    padding: 1.8rem 1.5rem 1rem;
}

.ps-modal-footer {
    background: #fff3e3;
    border-top: 1px dashed #f0c48b;
    padding: 0.75rem 1.5rem;
}

.ps-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 16px;
    padding: 1.4rem 1rem;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none !important;
    border: 2px solid transparent;
}

.ps-card-active {
    background: #fff;
    border-color: #f4a261;
    box-shadow: 0 6px 18px rgba(244,162,97,0.2);
    color: #5e3a1c;
    cursor: pointer;
}

    .ps-card-active:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 28px rgba(244,162,97,0.35);
        border-color: #e76f51;
        color: #5e3a1c;
    }

.ps-card-disabled {
    background: #f9f9f9;
    border-color: #e5e5e5;
    color: #aaa;
    cursor: not-allowed;
    opacity: 0.7;
}

.ps-card-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg,#ffe0b5,#f4a261);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.ps-card-disabled .ps-card-icon-wrap {
    background: #ebebeb;
}

.ps-card-icon {
    font-size: 1.4rem;
    color: #c95a1a;
}

.ps-card-disabled .ps-card-icon {
    color: #bbb;
}

.ps-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.ps-card-desc {
    font-size: 0.78rem;
    color: #888;
    flex-grow: 1;
    margin-bottom: 0.75rem;
}

.ps-card-badge {
    background: linear-gradient(135deg,#e67e22,#d35400);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: .3rem .85rem;
    border-radius: 20px;
}

.ps-card-badge-muted {
    background: #e5e5e5;
    color: #999;
    font-size: .75rem;
    font-weight: 500;
    padding: .3rem .85rem;
    border-radius: 20px;
}

/* Nav button (used in _Layout) */
.nav-link.ps-nav-btn {
    background: rgba(255,255,245,0.15);
    border: 1.5px solid rgba(255,255,245,0.35);
    border-radius: 30px !important;
    color: #fff9ef !important;
    font-weight: 700 !important;
    transition: background 0.2s, border-color 0.2s, transform 0.2s !important;
}

    .nav-link.ps-nav-btn:hover {
        background: rgba(255,255,245,0.3) !important;
        border-color: rgba(255,255,255,0.6) !important;
        transform: translateY(-2px) !important;
    }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 991px) {
    .ncp-panel {
        height: auto;
    }

    .ncp-panel-body {
        overflow: visible;
    }

    .ncp-doc-scroll-box {
        max-height: 206px;
        flex-grow: unset;
    }
}

@media (max-width: 767px) {
    .ncp-hero-title {
        font-size: 1.1rem;
    }

    .ncp-panel-body {
        padding: 1rem;
    }

    .ncp-howto-bar {
        padding: 0.4rem 0.75rem;
    }

    .ncp-hs-text {
        font-size: 0.72rem;
    }

    .ncp-hs-line {
        min-width: 12px;
    }
}

/* ── remove step number, keep card tidy ── */
.ncp-step-number {
    display: none;
}

/* inline link inside info note */
.ncp-inline-link {
    color: #d35400;
    font-weight: 700;
    text-decoration: underline;
}

    .ncp-inline-link:hover {
        color: #b84800;
    }

/* ══════════════════════════════════════════════════════════════
   PUBLIC APPLICANT LAYOUT — shared across apply + profile pages
   ══════════════════════════════════════════════════════════════ */

/* Back button in topbar */
.ncp-topbar-back {
    font-size: 0.78rem;
    font-weight: 600;
    color: #a04010;
    border: 1.5px solid #f4a261;
    border-radius: 20px;
    padding: 0.3rem 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    margin-right: 0.4rem;
    background: #fff8f0;
}

    .ncp-topbar-back:hover {
        background: #ffe0b5;
        border-color: #d35400;
        color: #7a2e00;
        text-decoration: none;
    }

/* ── PAGE INDICATOR BAR (shows which step user is on) ───────── */
.ncp-page-indicator {
    background: #fff8f0;
    border-bottom: 1px solid #f0d5b0;
    padding: 0.5rem 0;
}

.ncp-pi-inner {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.15rem 0;
}

    .ncp-pi-inner::-webkit-scrollbar {
        display: none;
    }

.ncp-pi-step {
    display: flex;
    align-items: center;
    font-size: 0.74rem;
    font-weight: 500;
    color: #b0865a;
    white-space: nowrap;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    background: transparent;
    flex-shrink: 0;
    transition: all 0.2s;
}

/* currently active step */
.ncp-pi-active {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(211,84,0,0.25);
}

/* future steps — greyed */
.ncp-pi-muted {
    color: #c8a88a;
    opacity: 0.6;
}

.ncp-pi-arrow {
    font-size: 0.6rem;
    color: #f4a261;
    flex-shrink: 0;
}

/* public page main content area */
.ncp-public-main {
    padding-bottom: 2rem;
}
