:root {
    --primary: #0b63ce;
    --primary-dark: #084c9f;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
    --surface: #ffffff;
    --text-main: #172033;
    --text-muted: #667085;
    --border-soft: #e6ebf2;
    --page-bg: #f3f7fc;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.app-shell {
    min-height: 100vh;
    margin: 0;
    background: var(--page-bg);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

a {
    text-decoration: none;
}

.bi {
    line-height: 1;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
}

.app-topbar-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand-link {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.brand-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: #eaf3ff;
    border: 1px solid #d6e8ff;
}

.brand-logo img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.brand-copy {
    min-width: 0;
    display: grid;
    line-height: 1.15;
}

.brand-title {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-subtitle {
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 700;
}

.desktop-nav {
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 8px;
}

.desktop-nav a {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 8px;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--primary);
    background: #eaf3ff;
}

.notification-btn {
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    background: var(--surface);
    color: var(--primary);
}

.notification-btn .bi,
.bottom-nav-item .bi {
    width: 21px;
    height: 21px;
    display: inline-grid;
    place-items: center;
    font-size: 1.2rem;
}

.notification-dot {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--danger);
    border: 2px solid var(--surface);
}

.app-main {
    padding: 16px 0 96px;
}

.app-container {
    max-width: 1180px;
}

.page-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.page-title-row h1,
.section-heading h2 {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(1.45rem, 4vw, 2.2rem);
    font-weight: 850;
    line-height: 1.14;
}

.eyebrow {
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.text-muted {
    color: var(--text-muted) !important;
}

.app-card,
.hero-card,
.menu-card {
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.app-card {
    padding: 18px;
}

.compact-card,
.help-card {
    min-height: 100%;
}

.hero-card {
    overflow: hidden;
}

.home-carousel {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #dbe5f0;
}

.home-carousel .carousel-inner,
.home-carousel .carousel-item {
    height: 100%;
}

.home-carousel-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide {
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 28px 20px 42px;
    color: #ffffff;
}

.hero-slide h1 {
    max-width: 620px;
    margin: 8px 0 10px;
    font-size: clamp(1.7rem, 8vw, 3.2rem);
    font-weight: 900;
    line-height: 1.03;
}

.hero-slide p {
    max-width: 560px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-slide-primary {
    background: linear-gradient(135deg, #0b63ce, #123f8c);
}

.hero-slide-success {
    background: linear-gradient(135deg, #108d48, #08653c);
}

.hero-slide-warning {
    background: linear-gradient(135deg, #f59e0b, #b45309);
}

.hero-visual {
    display: none;
}

.hero-visual span {
    width: 136px;
    height: 136px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.32);
    font-size: 2rem;
    font-weight: 900;
}

.hero-visual .bi {
    font-size: 3.5rem;
}

.carousel-indicators {
    margin-bottom: 14px;
}

.carousel-indicators [data-bs-target] {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.section-block {
    margin-top: 22px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.menu-card {
    min-height: 148px;
    height: 100%;
    display: grid;
    align-content: start;
    gap: 9px;
    padding: 16px;
    color: var(--text-main);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.menu-card:hover {
    color: var(--text-main);
    border-color: #b9d8ff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.menu-card strong {
    display: block;
    font-size: 0.98rem;
    line-height: 1.25;
}

.menu-card small {
    color: var(--text-muted);
    line-height: 1.35;
}

.menu-icon,
.empty-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 900;
}

.menu-icon .bi,
.empty-icon .bi {
    font-size: 1.45rem;
}

.menu-icon.primary,
.empty-icon {
    color: var(--primary);
    background: #eaf3ff;
}

.menu-icon.success {
    color: var(--success);
    background: #dcfce7;
}

.menu-icon.warning {
    color: #b45309;
    background: #ffedd5;
}

.menu-icon.danger {
    color: var(--danger);
    background: #fee2e2;
}

.schedule-list {
    display: grid;
    gap: 10px;
}

.schedule-list div,
.contact-list div,
.detail-grid div,
.vehicle-summary div,
.confirm-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
}

.schedule-list div:last-child,
.contact-list div:last-child,
.detail-grid div:last-child,
.vehicle-summary div:last-child,
.confirm-list div:last-child {
    border-bottom: 0;
}

.schedule-list span,
.contact-list span,
.detail-grid span,
.vehicle-summary span,
.confirm-list span {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.schedule-list strong,
.contact-list strong,
.detail-grid strong,
.vehicle-summary strong,
.confirm-list strong {
    color: var(--text-main);
    font-size: 0.94rem;
    text-align: right;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 850;
    white-space: nowrap;
}

.status-badge.success {
    color: #0f6b34;
    background: #dcfce7;
}

.status-badge.warning {
    color: #9a4a06;
    background: #ffedd5;
}

.status-badge.danger {
    color: #a4161a;
    background: #fee2e2;
}

.announcement-card h3,
.history-card h3 {
    margin: 12px 0 8px;
    font-size: 1.05rem;
    font-weight: 850;
}

.announcement-card p {
    margin: 0;
    color: var(--text-muted);
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 74px;
    padding: 8px max(10px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--border-soft);
    box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px);
}

.bottom-nav-item {
    min-width: 0;
    min-height: 58px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    color: #8a95a6;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
}

.bottom-nav-item.active {
    color: var(--primary);
    background: #eaf3ff;
}

.form-label {
    color: var(--text-main);
    font-weight: 750;
}

.form-control,
.form-select {
    border-color: #d8e0ec;
    border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.22rem rgba(11, 99, 206, 0.14);
}

.step-indicator {
    display: grid;
    grid-template-columns: repeat(6, minmax(72px, 1fr));
    gap: 8px;
    margin-bottom: 22px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.step-item {
    min-width: 72px;
    display: grid;
    justify-items: center;
    gap: 6px;
    color: var(--text-muted);
}

.step-item span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid #d8e0ec;
    background: #f8fafc;
    font-weight: 850;
}

.step-item small {
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.step-item.active,
.step-item.done {
    color: var(--primary);
}

.step-item.active span,
.step-item.done span {
    color: #ffffff;
    border-color: var(--primary);
    background: var(--primary);
}

.form-section-title {
    margin-bottom: 16px;
}

.form-section-title h2 {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-weight: 850;
}

.form-section-title p {
    margin: 0;
    color: var(--text-muted);
}

.app-soft-panel {
    padding: 14px;
    border-radius: 8px;
    background: #f8fbff;
    border: 1px solid var(--border-soft);
}

.vehicle-summary {
    display: grid;
    gap: 0;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.form-actions .btn {
    min-height: 48px;
}

.schedule-date-list {
    gap: 8px;
}

.schedule-date-button {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--border-soft) !important;
    border-radius: 8px !important;
    color: var(--text-main);
    font-weight: 800;
}

.schedule-date-button span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
}

.schedule-date-button strong {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-size: 0.86rem;
}

.schedule-date-button:hover,
.schedule-date-button:focus {
    color: var(--text-main);
    background: #eaf3ff;
    border-color: #b9d8ff !important;
}

.confirm-list {
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    padding: 6px 14px;
    background: #fbfdff;
}

.proof-card {
    max-width: 620px;
    margin: 0 auto;
    padding: 12px 0;
}

.proof-card h2 {
    font-weight: 900;
}

.proof-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 12px 18px;
    border-radius: 8px;
    background: #eaf3ff;
    color: var(--primary-dark);
    font-size: clamp(1.15rem, 5vw, 1.7rem);
    font-weight: 950;
    letter-spacing: 0;
}

.empty-state {
    min-height: 260px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    text-align: center;
}

.empty-state h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 850;
}

.empty-state p {
    max-width: 420px;
    margin: 0;
    color: var(--text-muted);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.detail-grid.compact div {
    padding: 8px 0;
}

.requirement-list,
.timeline-list,
.feature-list {
    display: grid;
    gap: 12px;
}

.requirement-list div,
.timeline-list div,
.feature-list div {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.requirement-list span,
.timeline-list span {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eaf3ff;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 900;
}

.feature-list span {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--primary);
}

.requirement-list p,
.timeline-list p,
.feature-list p {
    margin: 0;
    color: var(--text-main);
}

.service-faq .accordion-item {
    border-color: var(--border-soft);
}

.service-faq .accordion-button {
    font-weight: 800;
}

.service-faq .accordion-button:focus {
    box-shadow: none;
}

.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
}

.btn-outline-primary {
    --bs-btn-color: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
}

.btn-success {
    --bs-btn-bg: var(--success);
    --bs-btn-border-color: var(--success);
}

@media (max-width: 430px) {
    .app-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .brand-title {
        max-width: 220px;
    }

    .app-card {
        padding: 16px;
    }

    .hero-slide {
        min-height: 320px;
    }

    .menu-card {
        min-height: 152px;
        padding: 14px;
    }

    .schedule-list div,
    .contact-list div,
    .detail-grid div,
    .vehicle-summary div,
    .confirm-list div {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .schedule-list strong,
    .contact-list strong,
    .detail-grid strong,
    .vehicle-summary strong,
    .confirm-list strong {
        text-align: left;
    }
}

@media (min-width: 768px) {
    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
    }

    .detail-grid div:nth-last-child(2) {
        border-bottom: 0;
    }
}

@media (min-width: 992px) {
    .app-topbar-inner {
        min-height: 76px;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .brand-logo img {
        width: 38px;
        height: 38px;
    }

    .brand-title {
        font-size: 1.05rem;
    }

    .app-main {
        padding: 28px 0 56px;
    }

    .app-card {
        padding: 22px;
    }

    .hero-slide {
        min-height: 390px;
        padding: 46px 40px 56px;
    }

    .hero-visual {
        display: block;
    }

    .section-block {
        margin-top: 30px;
    }

    .menu-card {
        min-height: 168px;
        padding: 20px;
    }

    .bottom-nav {
        display: none;
    }
}
