* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(145deg, #f6f9fc 0%, #edf2f7 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.portal-card {
    max-width: 1100px;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 48px;
    padding: 0 3.2rem 3.2rem;
    box-shadow: 0 30px 60px -20px rgba(0, 20, 40, 0.25), 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: hidden;
}

/* ---------- DARK HEADER BAR ---------- */
.header-bar {
    background: linear-gradient(135deg, #0b2b4a, #1a3a5c);
    padding: 0.6rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 -3.2rem 1.8rem -3.2rem;
    border-radius: 48px 48px 0 0;
    position: relative;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.header-bar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    transition: all 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}

.header-bar .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.header-bar .nav-link i {
    margin-right: 0.4rem;
    font-size: 0.7rem;
    opacity: 0.6;
}

.header-bar .header-center {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.header-bar .header-logo-small {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #f0e6d3;
    background: transparent;
}

.header-bar .header-logo-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.header-bar .header-tagline {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 400;
    padding-left: 0.6rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- BRAND HEADER (CENTERED) ---------- */
.brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 0.8rem;
    gap: 0.2rem;
}

.brand-logo {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: #f0e6d3;
    margin-bottom: 0.2rem;
    background: transparent;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.brand-text h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #0b2b4a, #1b4a7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.brand-text .tagline {
    font-size: 0.9rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 0.1rem;
    -webkit-text-fill-color: #ffffff;
	background-color: #2c4a6e;
	padding: 2px 5px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(27, 74, 122, 0.06);
    border: 1px solid rgba(27, 74, 122, 0.1);
    padding: 0.3rem 1.4rem;
    border-radius: 60px;
    color: #1b4a7a;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 0.3rem;
}

.brand-badge i {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ---------- JOURNEY CARDS ---------- */
.journey-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.8rem;
}

.journey-card {
    background: white;
    border-radius: 16px;
    padding: 1rem 0.8rem;
    text-align: center;
    border: 1px solid #e2ecf6;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    position: relative;
}

.journey-card:hover {
    transform: translateY(-2px);
    border-color: #b6cde0;
    box-shadow: 0 8px 20px rgba(27, 74, 122, 0.06);
}

.journey-card .card-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(27, 74, 122, 0.06);
    border: 1px solid rgba(27, 74, 122, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.4rem;
    font-size: 1rem;
    color: #1b4a7a;
    transition: all 0.2s;
}

.journey-card:hover .card-icon {
    background: #1b4a7a;
    color: white;
    border-color: #1b4a7a;
}

.journey-card .card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0b2b4a;
    letter-spacing: 0.02em;
}

.journey-card .card-desc {
    font-size: 0.68rem;
    color: #5f7d9c;
    margin-top: 0.2rem;
    font-weight: 400;
    line-height: 1.3;
}

/* ---------- HOW IT WORKS BUTTON WITH BLINKING BORDER ---------- */
@keyframes blinkBorder {
    0% {
        border-color: rgba(27, 74, 122, 0.15);
        box-shadow: 0 0 0 0 rgba(27, 74, 122, 0);
    }
    25% {
        border-color: #d4af37;
        box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
    }
    50% {
        border-color: #1b4a7a;
        box-shadow: 0 0 20px rgba(27, 74, 122, 0.2);
    }
    75% {
        border-color: #d4af37;
        box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
    }
    100% {
        border-color: rgba(27, 74, 122, 0.15);
        box-shadow: 0 0 0 0 rgba(27, 74, 122, 0);
    }
}

.how-it-works-link,
.how-it-works-badge {
    animation: blinkBorder 2.5s ease-in-out infinite;
}

.how-it-works-link:hover,
.how-it-works-badge:hover {
    animation: none;
    transform: scale(1.03);
    border-color: #1b4a7a;
    box-shadow: 0 0 25px rgba(27, 74, 122, 0.25);
}

/* ---------- HOW IT WORKS LINK STYLES ---------- */
.how-it-works-link {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.7rem;
    color: #1b4a7a;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    background: rgba(27, 74, 122, 0.08);
    padding: 0.25rem 1rem;
    border-radius: 30px;
    border: 2px solid rgba(27, 74, 122, 0.15);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.03em;
}

.how-it-works-link i {
    font-size: 0.55rem;
    margin-left: 0.3rem;
}

.how-it-works-link .star {
    color: #d4af37;
    margin-right: 0.3rem;
    font-size: 0.6rem;
}

.how-it-works-link:hover {
    animation: none;
    transform: scale(1.03);
    border-color: #1b4a7a;
    box-shadow: 0 0 25px rgba(27, 74, 122, 0.25);
}

/* ---------- HOW IT WORKS BADGE STYLES ---------- */
.search-label .how-it-works-badge {
    font-size: 0.7rem;
    color: #1b4a7a;
    font-weight: 700;
    cursor: pointer;
    background: rgba(27, 74, 122, 0.06);
    padding: 0.2rem 1rem;
    border-radius: 30px;
    border: 2px solid rgba(27, 74, 122, 0.15);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.03em;
    background: none;
}

.search-label .how-it-works-badge .star {
    color: #d4af37;
    margin-right: 0.2rem;
}

.search-label .how-it-works-badge:hover {
    animation: none;
    transform: scale(1.03);
    border-color: #1b4a7a;
    box-shadow: 0 0 25px rgba(27, 74, 122, 0.25);
}

/* ---------- SEARCH ---------- */
.search-section {
    margin-bottom: 1.5rem;
}

.search-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: #0b2b4a;
    font-size: 1rem;
    margin-bottom: 0.7rem;
    flex-wrap: wrap;
}

.search-label i {
    color: #1b4a7a;
}

.search-label .stat-badge {
    font-size: 0.65rem;
    background: rgba(27, 74, 122, 0.06);
    padding: 0.15rem 0.9rem;
    border-radius: 40px;
    color: #1b4a7a;
    border: 1px solid rgba(27, 74, 122, 0.08);
}

.search-wrapper {
    position: relative;
}

#legalSearch {
    width: 100%;
    padding: 1.2rem 4.5rem 1.2rem 1.8rem;
    font-size: 1.05rem;
    border: 1px solid #d9e2ed;
    border-radius: 60px;
    background: white;
    color: #0b2b4a;
    outline: none;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

#legalSearch::placeholder {
    color: #8aa0ba;
    font-weight: 400;
    opacity: 0.8;
}

#legalSearch:focus {
    border-color: #1b4a7a;
    box-shadow: 0 8px 24px rgba(27, 74, 122, 0.08);
}

.search-icon {
    position: absolute;
    right: 54px;
    top: 50%;
    transform: translateY(-50%);
    color: #1b4a7a;
    opacity: 0.4;
    font-size: 1.1rem;
    pointer-events: none;
}

.search-clear {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #8aa0ba;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.2s;
    display: none;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.search-clear:hover {
    color: #1b4a7a;
    background: rgba(27, 74, 122, 0.06);
}

.search-clear.visible {
    display: block;
}

/* ---------- DROPDOWN ---------- */
.dropdown-container {
    position: relative;
    margin-top: 0.25rem;
}

#practiceDropdown {
    position: absolute;
    top: 0.5rem;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 24px;
    box-shadow: 0 18px 40px -8px rgba(0, 20, 40, 0.15);
    border: 1px solid rgba(27, 74, 122, 0.08);
    padding: 0.4rem 0;
    max-height: 380px;
    overflow-y: auto;
    z-index: 40;
    display: none;
    scroll-behavior: smooth;
}

#practiceDropdown.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.65rem 1.8rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f0f5fa;
    color: #0b2b4a;
    font-weight: 500;
    font-size: 0.9rem;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: #eef5fc;
}

.dropdown-item i {
    width: 1.6rem;
    color: #1b4a7a;
    font-size: 0.85rem;
    opacity: 0.6;
}

.dropdown-item .practice-tag {
    margin-left: auto;
    font-size: 0.6rem;
    background: #dce6f2;
    padding: 0.1rem 0.8rem;
    border-radius: 40px;
    color: #1a3a5c;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.dropdown-empty {
    padding: 1.8rem 2rem;
    color: #5f7d9c;
    font-size: 0.9rem;
    text-align: center;
}

/* ---------- DEMAND AREAS ---------- */
.demand-areas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1.8rem;
    margin: 0.8rem 0 0.3rem;
}

.demand-area {
    font-size: 0.78rem;
    color: #2c4a6e;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: default;
    transition: color 0.2s;
}

.demand-area:hover {
    color: #1b4a7a;
}

.demand-area .dot {
    color: #1b4a7a;
    opacity: 0.4;
    margin-right: 0.2rem;
}

/* ---------- FOOTER ---------- */
.portal-footer {
    margin-top: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid #dce6f2;
    padding-top: 1.6rem;
    font-size: 0.78rem;
    color: #5f7d9c;
}

.portal-footer i {
    color: #1b4a7a;
    opacity: 0.4;
    margin-right: 0.3rem;
}

.portal-footer .footer-chip {
    background: rgba(27, 74, 122, 0.04);
    border: 1px solid rgba(27, 74, 122, 0.06);
    padding: 0.2rem 1.2rem;
    border-radius: 60px;
    font-size: 0.65rem;
    font-weight: 500;
    color: #2c4a6e;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ---------- MODALS ---------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 32px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.5rem 2.8rem;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: sticky;
    top: 0;
    float: right;
    background: rgba(27, 74, 122, 0.06);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #2c4a6e;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.modal-close:hover {
    background: rgba(27, 74, 122, 0.12);
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0b2b4a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.modal-content h2 i {
    color: #1b4a7a;
    margin-right: 0.5rem;
}

.modal-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0b2b4a;
    margin: 1.2rem 0 0.4rem;
}

.modal-content p {
    font-size: 0.9rem;
    color: #2c4a6e;
    line-height: 1.6;
    margin-bottom: 0.6rem;
}

.modal-content ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0.8rem;
}

.modal-content ul li {
    font-size: 0.85rem;
    color: #2c4a6e;
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.modal-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #1b4a7a;
    font-weight: 700;
}

.modal-content .highlight-box {
    background: rgba(27, 74, 122, 0.04);
    border-left: 3px solid #1b4a7a;
    padding: 0.8rem 1.2rem;
    border-radius: 0 12px 12px 0;
    margin: 0.8rem 0;
}

.modal-content .highlight-box p {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.modal-content .founder-box {
    background: linear-gradient(135deg, rgba(27, 74, 122, 0.04), rgba(212, 175, 55, 0.04));
    border: 1px solid rgba(27, 74, 122, 0.08);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    margin: 0.8rem 0;
}

.modal-content .founder-box p {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.modal-content .founder-box .highlight {
    color: #1b4a7a;
    font-weight: 600;
}

.modal-content .consult-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 0.8rem 0;
}

.modal-content .consult-links a {
    background: rgba(27, 74, 122, 0.06);
    border: 1px solid rgba(27, 74, 122, 0.1);
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    color: #1b4a7a;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.modal-content .consult-links a:hover {
    background: rgba(27, 74, 122, 0.12);
    border-color: rgba(27, 74, 122, 0.2);
    transform: translateY(-1px);
}

.modal-content .consult-links a i {
    margin-right: 0.3rem;
}

.modal-bottom-close {
    display: block;
    margin: 1.2rem 0 0 auto;
    background: rgba(27, 74, 122, 0.06);
    border: 1px solid rgba(27, 74, 122, 0.1);
    padding: 0.4rem 1.6rem;
    border-radius: 30px;
    color: #2c4a6e;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.modal-bottom-close:hover {
    background: rgba(27, 74, 122, 0.12);
    border-color: rgba(27, 74, 122, 0.2);
}

.contact-detail {
    margin-bottom: 0.4rem;
}

.contact-detail strong {
    color: #0b2b4a;
}

.contact-detail a {
    color: #1b4a7a;
    text-decoration: none;
}

.contact-detail a:hover {
    text-decoration: underline;
}

/* ---------- SCROLLBAR ---------- */
#practiceDropdown::-webkit-scrollbar {
    width: 4px;
}
#practiceDropdown::-webkit-scrollbar-track {
    background: transparent;
}
#practiceDropdown::-webkit-scrollbar-thumb {
    background: #b6cde0;
    border-radius: 20px;
}

.modal-content::-webkit-scrollbar {
    width: 4px;
}
.modal-content::-webkit-scrollbar-track {
    background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #b6cde0;
    border-radius: 20px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 800px) {
    .header-bar {
        padding: 0.4rem 1rem;
        margin: 0 -1.5rem 1.5rem -1.5rem;
        border-radius: 28px 28px 0 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    .header-bar .header-tagline {
        display: none;
    }
    .header-bar .nav-link {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    .portal-card {
        padding: 0 1.5rem 1.8rem;
        border-radius: 28px;
    }
    .journey-cards {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    .journey-card {
        padding: 0.8rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }
    .journey-card .card-icon {
        margin: 0;
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    .journey-card .card-desc {
        font-size: 0.65rem;
    }
    .brand-text h1 {
        font-size: 2.2rem;
        letter-spacing: 0.03em;
    }
    #legalSearch {
        font-size: 0.95rem;
        padding: 1rem 4rem 1rem 1.4rem;
    }
    .demand-areas {
        gap: 0.4rem 1rem;
    }
    .demand-area {
        font-size: 0.7rem;
    }
    .search-clear {
        right: 16px;
        font-size: 0.9rem;
    }
    .search-icon {
        right: 46px;
        font-size: 0.9rem;
    }
    .modal-content {
        padding: 1.8rem 1.5rem;
        margin: 0.5rem;
    }
    .how-it-works-link,
    .how-it-works-badge {
        border-width: 1.5px;
    }
}

@media (max-width: 480px) {
    .brand-text h1 {
        font-size: 2.0rem;
        letter-spacing: 0.03em;
    }
    .brand-text .tagline {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }
    .brand-logo {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    .header-bar .header-logo-small {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }
    .journey-card .card-title {
        font-size: 0.8rem;
    }
    .journey-card .card-desc {
        font-size: 0.6rem;
    }
    .modal-content h2 {
        font-size: 1.3rem;
    }
    .modal-content p {
        font-size: 0.85rem;
    }
    .how-it-works-link {
        font-size: 0.6rem;
        padding: 0.15rem 0.7rem;
        border-width: 1.5px;
    }
    .search-label .how-it-works-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.7rem;
        border-width: 1.5px;
    }
}