:root {
    --brand-blue: #0b2f9f;
    --brand-blue-dark: #061c67;
    --brand-purple: #7b2cbf;
    --brand-purple-dark: #571c91;
    --brand-light: #f7f5ff;
    --text: #16213e;
    --muted: #667085;
    --border: #e6e8f0;
    --white: #ffffff;
    --danger: #b42318;
    --success: #027a48;
    --shadow: 0 18px 45px rgba(13, 32, 92, .12);
    --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #ffffff;
    line-height: 1.6;
}
a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.navbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--brand-blue-dark);
    text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand span { display: block; font-size: 18px; line-height: 1.15; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 700;
}
.nav-links a { color: var(--text); }

.hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 72px;
    background:
        radial-gradient(circle at 88% 20%, rgba(123,44,191,.18), transparent 34%),
        radial-gradient(circle at 18% 18%, rgba(11,47,159,.15), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f9f8ff 100%);
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px -80px;
    height: 240px;
    background: linear-gradient(90deg, rgba(11,47,159,.10), rgba(123,44,191,.13));
    transform: rotate(-3deg);
    border-radius: 50% 50% 0 0;
}
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 99px;
    background: rgba(123,44,191,.10);
    color: var(--brand-purple-dark);
    font-weight: 800;
    font-size: 14px;
}
.hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: -2px;
    color: var(--brand-blue-dark);
}
.hero h1 strong {
    color: var(--brand-purple);
}
.hero p {
    font-size: 19px;
    color: #334155;
    max-width: 680px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}
.hero-logo-card {
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(123,44,191,.16);
    box-shadow: var(--shadow);
    border-radius: 34px;
    padding: 24px;
    text-align: center;
}
.hero-logo-card img {
    width: min(420px, 100%);
    display: block;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 13px 20px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
    box-shadow: 0 12px 28px rgba(11,47,159,.24);
}
.btn-outline {
    color: var(--brand-blue-dark);
    background: #fff;
    border: 1px solid rgba(11,47,159,.22);
}
.btn-small { padding: 9px 13px; font-size: 13px; }
.btn-danger { background: var(--danger); color: white; }
.btn-muted { background: #eef2ff; color: var(--brand-blue-dark); }

.section { padding: 72px 0; }
.section.alt { background: linear-gradient(180deg, #ffffff, var(--brand-light)); }
.section-title {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 36px;
}
.section-title h2 {
    margin: 0 0 12px;
    color: var(--brand-blue-dark);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
}
.section-title p { margin: 0; color: var(--muted); font-size: 17px; }

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.info-card,
.package-card,
.form-card,
.admin-card,
.detail-card {
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(15,23,42,.06);
    border-radius: var(--radius);
}
.info-card { padding: 26px; }
.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
    margin-bottom: 16px;
}
.info-card h3 { margin: 0 0 10px; color: var(--brand-blue-dark); }
.info-card p { margin: 0; color: var(--muted); }

.package-group { margin-top: 28px; }
.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    color: var(--brand-purple-dark);
}
.category-title::before {
    content: "";
    width: 42px;
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-purple));
}
.package-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.package-card {
    padding: 26px;
    position: relative;
    overflow: hidden;
}
.package-card::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(123,44,191,.08);
}
.package-card h3 {
    position: relative;
    margin: 0 0 10px;
    color: var(--brand-blue-dark);
    font-size: 25px;
}
.package-meta {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 13px;
}
.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(11,47,159,.08);
    color: var(--brand-blue-dark);
}
.badge.purple { background: rgba(123,44,191,.10); color: var(--brand-purple-dark); }
.package-card p { position: relative; color: var(--muted); }
.package-actions { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.form-section-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 28px;
    align-items: start;
}
.contact-panel {
    padding: 30px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-purple-dark));
    color: white;
    box-shadow: var(--shadow);
}
.contact-panel h2 { margin-top: 0; font-size: 34px; line-height: 1.1; }
.contact-panel p { color: rgba(255,255,255,.82); }
.contact-list { margin-top: 22px; display: grid; gap: 12px; }
.contact-list div { background: rgba(255,255,255,.10); border-radius: 16px; padding: 14px; }
.form-card { padding: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-group.full { grid-column: 1 / -1; }
label { display: block; font-weight: 800; margin-bottom: 7px; color: var(--brand-blue-dark); }
input,
select,
textarea {
    width: 100%;
    border: 1px solid #d7dbe8;
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    background: white;
    outline: none;
}
input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 4px rgba(123,44,191,.10);
}
textarea { min-height: 120px; resize: vertical; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 14px; }
.checkbox-row input { width: auto; margin-top: 5px; }
.small-muted { font-size: 13px; color: var(--muted); }

.footer {
    padding: 34px 0;
    background: #071650;
    color: rgba(255,255,255,.78);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; color: white; font-weight: 900; }
.footer-brand img { width: 44px; height: 44px; object-fit: contain; }
.footer a { color: white; }

.notice {
    padding: 14px 16px;
    border-radius: 14px;
    margin: 14px 0;
    border: 1px solid transparent;
}
.notice.success { background: #ecfdf3; color: var(--success); border-color: #abefc6; }
.notice.danger { background: #fef3f2; color: var(--danger); border-color: #fecdca; }
.notice.warning { background: #fffaeb; color: #93370d; border-color: #fedf89; }

.page-header {
    padding: 54px 0;
    background: linear-gradient(135deg, rgba(11,47,159,.09), rgba(123,44,191,.12));
    border-bottom: 1px solid var(--border);
}
.page-header h1 { margin: 0 0 8px; color: var(--brand-blue-dark); font-size: clamp(32px, 4vw, 48px); }
.page-header p { margin: 0; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.detail-card { padding: 26px; }
.detail-card h2, .detail-card h3 { color: var(--brand-blue-dark); margin-top: 0; }
.detail-card ul { padding-left: 20px; }

/* Admin */
.admin-body { background: #f6f7fb; }
.admin-layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar {
    background: #071650;
    color: white;
    padding: 24px 18px;
}
.sidebar-logo { text-align: center; margin-bottom: 24px; }
.sidebar-logo img { width: 116px; }
.sidebar-logo strong { display: block; line-height: 1.15; }
.sidebar nav { display: grid; gap: 8px; }
.sidebar nav a {
    color: rgba(255,255,255,.86);
    padding: 11px 13px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
}
.sidebar nav a:hover,
.sidebar nav a.active { background: rgba(255,255,255,.12); color: #fff; }
.admin-main { padding: 28px; }
.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.admin-topbar h1 { margin: 0; color: var(--brand-blue-dark); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(15,23,42,.05);
}
.stat-card span { color: var(--muted); font-weight: 800; }
.stat-card strong { display: block; font-size: 32px; color: var(--brand-purple-dark); }
.admin-card { padding: 22px; }
.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.admin-card-header h2 { margin: 0; color: var(--brand-blue-dark); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--brand-blue-dark); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
tr:hover td { background: #fafbff; }
.status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    background: #eef2ff;
    color: var(--brand-blue-dark);
}
.status.New { background: #fef3c7; color: #92400e; }
.status.Contacted { background: #dbeafe; color: #1e40af; }
.status.Quoted { background: #ede9fe; color: #5b21b6; }
.status.Closed { background: #dcfce7; color: #166534; }
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #eef2ff, #faf5ff);
}
.login-card,
.install-card {
    width: min(460px, 100%);
    background: white;
    border-radius: 26px;
    box-shadow: var(--shadow);
    padding: 34px;
    border: 1px solid var(--border);
}
.login-logo,
.install-logo { display: block; width: 130px; margin: 0 auto 12px; }
.login-card h1,
.install-card h1 { text-align: center; margin: 0 0 8px; color: var(--brand-blue-dark); }
.install-body { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #eef2ff, #faf5ff); padding: 24px; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.admin-form-grid .full { grid-column: 1 / -1; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 900px) {
    .hero-grid,
    .form-section-grid,
    .detail-grid,
    .admin-layout { grid-template-columns: 1fr; }
    .info-grid,
    .package-grid,
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .sidebar { position: static; }
    .admin-main { padding: 20px; }
}
@media (max-width: 640px) {
    .navbar,
    .nav-links,
    .footer-content,
    .admin-topbar { flex-direction: column; align-items: flex-start; }
    .nav-links { gap: 10px; }
    .hero { padding: 52px 0; }
    .info-grid,
    .package-grid,
    .form-grid,
    .admin-form-grid,
    .stats-grid { grid-template-columns: 1fr; }
    .section { padding: 52px 0; }
    .hero-actions .btn { width: 100%; }
    .login-card, .install-card { padding: 24px; }
}


.benefit-card {
    position: relative;
    overflow: hidden;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: cover;
    min-height: 250px;
}
.benefit-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.86) 52%, rgba(255,255,255,.96));
    pointer-events: none;
}
.benefit-card > * {
    position: relative;
    z-index: 1;
}
.benefit-medical { background-image: url('../img/benefit-medical.svg'); }
.benefit-family { background-image: url('../img/benefit-family.svg'); }
.benefit-guidance { background-image: url('../img/benefit-guidance.svg'); }


.plan-thumb {
    margin: -2px -2px 18px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #f8faff;
}
.plan-thumb img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}
.plan-detail-image {
    margin-bottom: 18px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #f8faff;
}
.plan-detail-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}
.table-thumb {
    width: 72px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    border: 1px solid var(--border);
}
.admin-plan-preview img {
    width: 220px;
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid var(--border);
    display: block;
}


.hero-title {
    font-size: clamp(30px, 4.2vw, 52px);
    line-height: 1.08;
}
.hero-line {
    display: block;
    white-space: nowrap;
}
.hero-line-purple {
    color: var(--brand-purple);
}
.hero-line-blue {
    color: var(--brand-blue-dark);
}
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(24px, 7.2vw, 34px);
        letter-spacing: -1px;
    }
}


/* Hero title hotfix */
.hero .hero-title-fixed {
    font-size: clamp(30px, 4vw, 50px) !important;
    line-height: 1.08 !important;
    letter-spacing: -1px !important;
    color: #061c67 !important;
}
.hero .hero-title-fixed span:first-child {
    color: #7b2cbf !important;
}
.hero .hero-title-fixed span:last-child {
    color: #061c67 !important;
}
@media (max-width: 520px) {
    .hero .hero-title-fixed {
        font-size: clamp(23px, 7vw, 32px) !important;
    }
}


/* Mobile responsive menu */
.mobile-menu-checkbox,
.mobile-menu-button {
    display: none;
}
.mobile-menu-button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(11,47,159,.22);
    border-radius: 999px;
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15,23,42,.06);
}
.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--brand-blue-dark);
    transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 760px) {
    .site-header .navbar {
        min-height: 70px;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap;
        gap: 10px;
        position: relative;
    }

    .site-header .brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .site-header .brand img {
        width: 48px;
        height: 48px;
    }

    .site-header .brand span {
        font-size: 15px;
        max-width: 190px;
    }

    .mobile-menu-button {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .site-header .nav-links {
        display: none;
        width: 100%;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px;
        padding: 10px 0 14px;
        border-top: 1px solid var(--border);
        background: rgba(255,255,255,.98);
    }

    .site-header .nav-links a {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 11px 14px;
        border-radius: 14px;
        background: #f8faff;
        border: 1px solid rgba(11,47,159,.08);
    }

    .site-header .nav-links .btn {
        width: 100%;
    }

    .mobile-menu-checkbox:checked ~ .nav-links {
        display: flex;
    }

    .mobile-menu-checkbox:checked + .mobile-menu-button span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-checkbox:checked + .mobile-menu-button span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-checkbox:checked + .mobile-menu-button span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}
