/* ── Base ─────────────────────────────────────── */
body {
    font-family: 'Manrope', sans-serif;
    background-color: #f7f9fb;
    color: #191c1e;
}

/* ── Glassmorphism utilities ──────────────────── */
.glass-nav {
    background: rgba(247, 249, 251, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(196, 198, 212, 0.30);
}

.glass-card {
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 4px 24px -4px rgba(25, 28, 30, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.glass-card:hover {
    box-shadow: 0 10px 36px -8px rgba(0, 40, 112, 0.12);
    transform: translateY(-2px);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(196, 198, 212, 0.25);
}

.glass-bottom-bar {
    background: rgba(247, 249, 251, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(196, 198, 212, 0.30);
}

/* ── Mesh background ─────────────────────────── */
.mesh-bg {
    background-color: #f7f9fb;
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 40, 112, 0.07) 0px, transparent 55%),
        radial-gradient(at 100% 0%, rgba(21, 62, 148, 0.05) 0px, transparent 55%),
        radial-gradient(at 100% 100%, rgba(0, 40, 112, 0.06) 0px, transparent 55%),
        radial-gradient(at 0% 100%, rgba(82, 93, 128, 0.04) 0px, transparent 55%);
}

/* ── Service card selection state ────────────── */
.service-card {
    border: 2px solid transparent;
    transition: all 0.25s ease;
    cursor: pointer;
}

.service-card.is-selected {
    border-color: #002870;
    background: rgba(0, 40, 112, 0.04) !important;
    box-shadow: 0 0 0 3px rgba(0, 40, 112, 0.12), 0 8px 24px -8px rgba(0, 40, 112, 0.18);
}

.service-card.is-selected .select-indicator {
    background-color: #002870;
    border-color: #002870;
}

.service-card.is-selected .select-check {
    display: block;
}

.service-card.is-selected .select-plus {
    display: none;
}

.service-card:not(.is-selected) .select-indicator {
    background-color: white;
    border: 2px solid #c4c6d4;
}

.service-card:not(.is-selected) .select-check {
    display: none;
}

.service-card:not(.is-selected) .select-plus {
    display: block;
}

.add-btn.is-selected {
    background-color: #002870;
    color: white;
}

.add-btn.is-selected .btn-add-text {
    display: none;
}

.add-btn.is-selected .btn-remove-text {
    display: inline;
}

.add-btn:not(.is-selected) {
    background-color: white;
    color: #002870;
    border: 2px solid #002870;
}

.add-btn:not(.is-selected) .btn-add-text {
    display: inline;
}

.add-btn:not(.is-selected) .btn-remove-text {
    display: none;
}

/* ── Video thumbnail overlay ─────────────────── */
.video-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
}

.video-thumb .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 40, 112, 0.18);
    transition: background 0.2s ease;
}

.video-thumb:hover .play-overlay {
    background: rgba(0, 40, 112, 0.30);
}

.play-btn-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 40, 112, 0.25);
    transition: transform 0.2s ease;
}

.video-thumb:hover .play-btn-circle {
    transform: scale(1.08);
}

.img-placeholder {
    background: linear-gradient(135deg, #d7e3f7 0%, #b3c5ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #002870;
}

/* When a YouTube thumbnail is loaded, cover the gradient */
.video-thumb.has-thumb {
    background-size: cover;
    background-position: center;
}

/* Hide the icon span inside a thumb that has a real image */
.video-thumb.has-thumb>span {
    display: none;
}

/* ── Accordion (details/summary) ─────────────── */
details>summary {
    list-style: none;
    cursor: pointer;
}

details>summary::-webkit-details-marker {
    display: none;
}

details[open]>summary .chevron {
    transform: rotate(180deg);
}

.chevron {
    transition: transform 0.25s ease;
}

/* ── Testimonial carousel ────────────────────── */
.testimonial-track {
    display: flex;
    transition: transform 0.35s ease;
}

.testimonial-slide {
    min-width: 100%;
}

.read-more-content {
    display: none;
}

.read-more-content.expanded {
    display: block;
}

/* ── Section number badge ────────────────────── */
.section-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0, 40, 112, 0.08);
    line-height: 1;
}

/* ── Gradient CTA button ─────────────────────── */
.btn-primary {
    background: linear-gradient(135deg, #002870 0%, #153e94 100%);
    color: white;
    font-weight: 700;
    border-radius: 0.75rem;
    padding: 0.875rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 40, 112, 0.25);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    text-decoration: none;
}

.btn-primary:hover {
    box-shadow: 0 12px 32px rgba(0, 40, 112, 0.35);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ── Video lightbox ──────────────────────────── */
#video-lightbox {
    display: none;
}

#video-lightbox.active {
    display: flex;
}

/* ── Sticky bottom bar ───────────────────────── */
#bottom-bar {
    transform: translateY(110%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#bottom-bar.visible {
    transform: translateY(0);
}

#selected-chips {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#selected-chips::-webkit-scrollbar {
    display: none;
}

.selected-chip {
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.selected-chip .chip-text {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-chip:hover {
    background-color: #002870 !important;
    color: white !important;
    transform: translateY(-2px);
    z-index: 10;
}

/* ── Simple Tooltip ──────────────────────────── */
.selected-chip::after {
    content: attr(data-fullname);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #191c1e;
    color: white;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 200;
}

.selected-chip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@keyframes pulse-highlight {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 40, 112, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(0, 40, 112, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 40, 112, 0);
    }
}

.pulse-highlight {
    animation: pulse-highlight 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Multi-option sub-select buttons ──────────────── */
.add-sub-btn {
    background: transparent;
    color: #002870;
    border-color: rgba(0, 40, 112, 0.3);
}

.add-sub-btn:hover {
    background: rgba(0, 40, 112, 0.05);
    border-color: rgba(0, 40, 112, 0.5);
}

.add-sub-btn.is-selected {
    background: #002870;
    color: #fff;
    border-color: #002870;
}

.add-sub-btn .sub-remove-icon,
.add-sub-btn .sub-remove-text {
    display: none;
}

.add-sub-btn.is-selected .sub-add-icon,
.add-sub-btn.is-selected .sub-add-text {
    display: none;
}

.add-sub-btn.is-selected .sub-remove-icon,
.add-sub-btn.is-selected .sub-remove-text {
    display: inline;
}

.option-row.is-selected {
    background: rgba(0, 40, 112, 0.04);
    border-color: rgba(0, 40, 112, 0.25);
}

@media (max-width: 768px) {
    #selected-chips {
        display: grid !important;
        grid-auto-flow: column !important;
        grid-template-rows: repeat(2, auto) !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        gap: 4px !important;
        padding: 2px 0 4px;
        scrollbar-width: none;
    }

    #selected-chips::-webkit-scrollbar {
        display: none;
    }

    .selected-chip {
        width: 88px !important;
        max-width: 88px !important;
        flex-shrink: 0 !important;
        font-size: 9px !important;
        padding: 3px 6px !important;
        border-radius: 6px !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
    }

    .selected-chip span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }
}

/* Bottom bar: stack vertically on small screens */
@media (max-width: 640px) {
    #bottom-bar {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    #_financial_badge {
        min-width: 0 !important;
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(0, 40, 112, 0.10) !important;
        padding: 8px 16px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px;
    }

    .btn-proceed-full {
        display: none !important;
    }

    .btn-proceed-short {
        display: inline !important;
    }

    .btn-primary {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
}

@media (min-width: 641px) {
    .btn-proceed-short {
        display: none !important;
    }

    .btn-proceed-full {
        display: inline !important;
    }
}


/* ── Scrollbar ───────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f2f4f6;
}

::-webkit-scrollbar-thumb {
    background: #b3c5ff;
    border-radius: 10px;
}

/* ── Material Symbols size ───────────────────── */
.material-symbols-outlined {
    font-size: 20px;
    vertical-align: middle;
}

.icon-lg .material-symbols-outlined {
    font-size: 28px;
}
