/* ============================================================
   PHILIPPINES E-VISA — SHARED DESIGN LAYER
   Loaded after style.min.css to modernize layout & structure.
   Brand palette derived from existing :root variables.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
    --phv-primary: #0275d8;
    --phv-secondary: #00394f;
    --phv-accent: #fcd116;
    --phv-dark: #091422;
    --phv-red: #df0f0a;
    --phv-surface: #f8faff;
    --phv-outline: #e0e6ee;
    --phv-text: #17324b;
    --phv-text-muted: #5a6b7d;
    --phv-radius: 8px;
    --phv-radius-lg: 14px;
    --phv-shadow-sm: 0 2px 8px rgba(9, 20, 34, 0.06);
    --phv-shadow-md: 0 4px 16px rgba(9, 20, 34, 0.08);
    --phv-shadow-lg: 0 8px 32px rgba(9, 20, 34, 0.10);
    --phv-spacing-xs: 8px;
    --phv-spacing-sm: 12px;
    --phv-spacing-md: 20px;
    --phv-spacing-lg: 32px;
    --phv-spacing-xl: 48px;
    --phv-transition: 0.25s ease;
}

/* ---------- Typography ---------- */







/* ---------- Page Header / Breadcrumb ---------- */
.breadcrumb {
    background: var(--phv-surface);
    border-radius: var(--phv-radius);
    padding: var(--phv-spacing-sm) var(--phv-spacing-md);
}

.breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
/* 
.breadcrumb .breadcrumb-item {
    font-size: inherit;
    color: var(--phv-text-muted);
} */

.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    margin: 0 6px;
    color: var(--phv-outline);
}

.breadcrumb .breadcrumb-item.active {
    color: var(--phv-secondary);
    font-weight: 600;
}

/* ---------- Page Head Banner ---------- */
.bg-page-head {
    background: linear-gradient(135deg, var(--phv-secondary) 0%, var(--phv-dark) 100%);
    border-radius: var(--phv-radius-lg);
    padding: var(--phv-spacing-lg) var(--phv-spacing-xl);
    margin-bottom: var(--phv-spacing-lg);
}

.bg-page-head h1,
.bg-page-head h2 {
    color: #fff;
    margin-bottom: var(--phv-spacing-xs);
}

.bg-page-head p {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0;
}

/* ---------- Cards ---------- */
.phv-card {
    background: #fff;
    border-radius: var(--phv-radius-lg);
    box-shadow: var(--phv-shadow-sm);
    padding: var(--phv-spacing-md);
    margin-bottom: var(--phv-spacing-md);
    transition: box-shadow var(--phv-transition), transform var(--phv-transition);
}

.phv-card:hover {
    box-shadow: var(--phv-shadow-md);
}

.phv-card--accent {
    border-left: 4px solid var(--phv-accent);
}

.phv-card--primary {
    border-left: 4px solid var(--phv-primary);
}

.phv-card__header {
    display: flex;
    align-items: center;
    gap: var(--phv-spacing-sm);
    margin-bottom: var(--phv-spacing-sm);
}

.phv-card__icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--phv-surface);
    color: var(--phv-primary);
    font-size: 20px;
}

.phv-card__title {
    margin: 0;
    font-weight: 700;
    color: var(--phv-secondary);
}

.phv-card__body {
    font-size: inherit;
    color: var(--phv-text-muted);
}

/* ---------- Buttons ---------- */
.btn {
    font-size: inherit;
    font-weight: 600;
    border-radius: var(--phv-radius);
    padding: 10px 24px;
    transition: all var(--phv-transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--phv-primary);
    color: #fff;
    border: 2px solid var(--phv-primary);
}

.btn-primary:hover {
    background: var(--phv-secondary);
    border-color: var(--phv-secondary);
    color: #fff;
}

.btn-outline-primary {
    background: transparent;
    color: var(--phv-primary);
    border: 2px solid var(--phv-primary);
}

.btn-outline-primary:hover {
    background: var(--phv-primary);
    color: #fff;
}

.btn-accent {
    background: var(--phv-accent);
    color: var(--phv-dark);
    border: 2px solid var(--phv-accent);
}

.btn-accent:hover {
    background: #e6bc00;
    border-color: #e6bc00;
    color: var(--phv-dark);
}

/* ---------- Forms ---------- */
.form-control {
    font-size: inherit;
    border-radius: var(--phv-radius);
    border: 1.5px solid var(--phv-outline);
    padding: 10px 14px;
    transition: border-color var(--phv-transition), box-shadow var(--phv-transition);
}

.form-control:focus {
    border-color: var(--phv-primary);
    box-shadow: 0 0 0 3px rgba(2, 117, 216, 0.12);
}

.form-label {
    font-size: inherit;
    font-weight: 600;
    color: var(--phv-secondary);
    margin-bottom: 6px;
}

.form-group {
    margin-bottom: var(--phv-spacing-md);
}

.form-row {
    margin-bottom: var(--phv-spacing-md);
}

/* ---------- Tables ---------- */
.table {
    font-size: inherit;
    border-radius: var(--phv-radius);
    overflow: hidden;
    box-shadow: var(--phv-shadow-sm);
    margin-bottom: var(--phv-spacing-lg);
}

.table thead {
    background: var(--phv-secondary);
    color: #fff;
}

.table thead th {
    font-weight: 700;
    padding: 14px 16px;
    border: none;
}

.table tbody tr {
    transition: background var(--phv-transition);
}

.table tbody tr:nth-child(even) {
    background: var(--phv-surface);
}

.table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    border-color: var(--phv-outline);
}

/* ---------- Content Sections ---------- */
.phv-section {
    padding: var(--phv-spacing-xl) 0;
}

.phv-section--surface {
    background: var(--phv-surface);
    border-radius: var(--phv-radius-lg);
    padding: var(--phv-spacing-lg);
}

.phv-section__title {
    font-size: inherit;
    font-weight: 700;
    color: var(--phv-secondary);
    margin-bottom: var(--phv-spacing-md);
    position: relative;
    padding-bottom: 12px;
}

.phv-section__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--phv-accent);
    border-radius: 2px;
}

/* ---------- Grid Layouts ---------- */
.phv-grid {
    display: grid;
    gap: var(--phv-spacing-md);
    margin-bottom: var(--phv-spacing-lg);
}

.phv-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.phv-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.phv-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------- Step / Process Layout ---------- */
.phv-steps {
    display: flex;
    flex-direction: column;
    gap: var(--phv-spacing-md);
    counter-reset: phv-step;
}

.phv-step {
    display: flex;
    align-items: flex-start;
    gap: var(--phv-spacing-sm);
    padding: var(--phv-spacing-md);
    background: #fff;
    border-radius: var(--phv-radius-lg);
    box-shadow: var(--phv-shadow-sm);
    counter-increment: phv-step;
}

.phv-step::before {
    content: counter(phv-step);
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--phv-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.phv-step__content {
    flex: 1;
}

.phv-step__title {
    font-weight: 700;
    color: var(--phv-secondary);
    margin-bottom: 4px;
}

/* ---------- Alert / Notice ---------- */
.phv-alert {
    padding: var(--phv-spacing-sm) var(--phv-spacing-md);
    border-radius: var(--phv-radius);
    margin-bottom: var(--phv-spacing-md);
    font-size: inherit;
}

.phv-alert--info {
    background: rgba(2, 117, 216, 0.06);
    border-left: 4px solid var(--phv-primary);
}

.phv-alert--warning {
    background: rgba(252, 209, 22, 0.10);
    border-left: 4px solid var(--phv-accent);
}

.phv-alert--success {
    background: rgba(25, 146, 37, 0.06);
    border-left: 4px solid #199225;
}

/* ---------- Footer Enhancement ---------- */
footer {
    background: linear-gradient(180deg, var(--phv-dark) 0%, #0d1f33 100%);
    color: rgba(255, 255, 255, 0.78);
    font-size: inherit;
}

footer a {
    color: rgba(255, 255, 255, 0.78);
    transition: color var(--phv-transition);
}

footer a:hover {
    color: var(--phv-accent);
}

footer h5,
footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: var(--phv-spacing-sm);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .phv-grid--3,
    .phv-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bg-page-head {
        padding: var(--phv-spacing-lg) var(--phv-spacing-md);
    }
}

@media (max-width: 575.98px) {
    .phv-grid--2,
    .phv-grid--3,
    .phv-grid--4 {
        grid-template-columns: 1fr;
    }

    .bg-page-head {
        padding: var(--phv-spacing-md);
        border-radius: var(--phv-radius);
    }

    .phv-section {
        padding: var(--phv-spacing-lg) 0;
    }

    .phv-section--surface {
        padding: var(--phv-spacing-md);
    }

    .phv-step {
        padding: var(--phv-spacing-sm);
    }

    .table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .phv-card,
    .btn,
    a,
    .table tbody tr {
        transition: none !important;
    }
}

/* ---------- Utility ---------- */
.phv-text-center {
    text-align: center;
}

.phv-mt-0 { margin-top: 0; }
.phv-mb-0 { margin-bottom: 0; }
.phv-mt-sm { margin-top: var(--phv-spacing-sm); }
.phv-mt-md { margin-top: var(--phv-spacing-md); }
.phv-mt-lg { margin-top: var(--phv-spacing-lg); }
.phv-mb-sm { margin-bottom: var(--phv-spacing-sm); }
.phv-mb-md { margin-bottom: var(--phv-spacing-md); }
.phv-mb-lg { margin-bottom: var(--phv-spacing-lg); }

.phv-hidden {
    display: none !important;
}

/* ---------- Shared Page Title Banner Redesign ---------- */
.bg-page-head {
    position: relative;
    display: block !important;
    min-height: 0;
    padding: 18px 10px 18px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
}

.bg-page-head::before {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 150px;
    height: 4px;
    border-radius: 20px;
    background: var(--phv-accent);
    content: "";
    transform: translateX(-50%);
}

.bg-page-head > * {
    position: relative;
    z-index: 1;
    width: 100%;
}

.bg-page-head h1,
.bg-page-head h2 {
    max-width: 100%;
    margin: 0 !important;
    color: var(--phv-secondary) !important;
    font-size: clamp(1.5rem, 2.5vw, 2.25rem) !important;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.bg-page-head p {
    margin: 12px 0 0 !important;
    color: var(--phv-text-muted) !important;
    line-height: 1.6;
}

@media (max-width: 575.98px) {
    .bg-page-head {
        padding: 18px 16px 14px !important;
    }

}

/* ---------- Shared FAQ Accordion ---------- */
.phv-faq-item {
    margin-bottom: 12px;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #f2f9fd;
}

.phv-faq-item .accordion_t {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0 !important;
    padding: 14px 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #e4f3fb !important;
    box-shadow: none !important;
    color: #285a78 !important;
    font-size: 16px !important;
    line-height: 1.5;
    text-align: left !important;
    cursor: pointer;
    transition: background-color var(--phv-transition);
}

.phv-faq-item .accordion_t b,
.phv-faq-item .accordion_t strong {
    color: inherit;
    font-size: inherit !important;
    font-weight: 700;
}

.phv-faq-item .accordion_t::after {
    display: inline-flex;
    flex: 0 0 30px;
    /* align-items: center; */
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50%;
    background: #fff4cc;
    color: #547c91 !important;
    content: "+" !important;
    float: none !important;
    font-size: 22px !important;
    line-height: 1;
}

.phv-faq-item .accordion_t:hover,
.phv-faq-item .accordion_t.active_t {
    background: #d7edf8 !important;
}

.phv-faq-item .accordion_t:focus {
    outline: none;
}

.phv-faq-item .accordion_t.active_t::after {
    background: #ffedb3;
    color: #547c91 !important;
    content: "−" !important;
}

.phv-faq-item .panel_t {
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 16px !important;
    max-height: 0 !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0;
    background: #f2f9fd;
    color: #385d72;
    font-size: 16px;
    line-height: 1.7;
    transition: padding 0.25s ease;
}

.phv-faq-item .accordion_t.active_t + .panel_t {
    max-height: none !important;
    padding: 12px 16px 16px !important;
}

.phv-faq-item .panel_t p:last-child {
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    .phv-faq-item .accordion_t {
        gap: 8px;
        padding: 13px 12px !important;
    }

    .phv-faq-item .panel_t {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    .phv-faq-item .accordion_t.active_t + .panel_t {
        max-height: none !important;
        padding: 10px 12px 14px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .phv-faq-item .accordion_t,
    .phv-faq-item .panel_t {
        transition: none !important;
    }
}
