/* ================================================================
   TARIF PENGIRIMAN — Page CSS
   Prefix: tp-*
   Layout: Bootstrap 5 (row/col/container/d-*)
   ================================================================ */

/* ================================================================
   HERO — Ticket / Boarding Pass Style
   ================================================================ */
.tp-hero {
    background: linear-gradient(170deg, var(--teal-500) 0%, var(--teal-600) 40%, var(--teal-700) 100%);
    padding: 36px 0 52px;
    position: relative; overflow: hidden;
}
.tp-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(255,255,255,0.02) 49px, rgba(255,255,255,0.02) 50px),
        repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(255,255,255,0.02) 49px, rgba(255,255,255,0.02) 50px);
    pointer-events: none;
}
.tp-hero .container { position: relative; z-index: 2; }

.tp-hero-top { text-align: center; margin-bottom: 28px; }
.tp-hero-eyebrow {
    font-size: 11px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: rgba(255,255,255,0.4);
    margin-bottom: 10px;
}
.tp-hero-title {
    font-size: 30px; font-weight: 900; color: #fff; line-height: 1.2;
}

/* ===== Ticket Card ===== */
.tp-ticket {
    max-width: 820px; margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}
/* Side notches */
.tp-ticket::before, .tp-ticket::after {
    content: '';
    position: absolute;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--teal-600);
    top: 50%; transform: translateY(-50%);
    z-index: 5;
}
.tp-ticket::before { left: -14px; }
.tp-ticket::after { right: -14px; }

/* Route section */
.tp-ticket-route {
    display: flex; align-items: center;
    padding: 28px 36px;
}
.tp-route-point { flex: 1; }
.tp-route-code {
    font-size: 32px; font-weight: 900; color: var(--gray-900); line-height: 1;
}
.tp-route-name {
    font-size: 12px; color: var(--gray-400); font-weight: 600; margin-top: 2px;
}
.tp-route-point-right { text-align: right; }
.tp-route-mid {
    flex: 1.5;
    display: flex; flex-direction: column;
    align-items: center; gap: 4px;
    padding: 0 20px;
}
.tp-route-line {
    width: 100%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--teal-300), var(--teal-300) 6px, transparent 6px, transparent 12px);
    position: relative;
}
.tp-route-line::before {
    content: '\f1d8';
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    color: var(--teal-500); font-size: 16px;
    background: #fff; padding: 0 8px;
}
.tp-route-label {
    font-size: 10px; font-weight: 700; color: var(--gray-400); margin-top:10px;
    text-transform: uppercase; letter-spacing: 1px;
}

/* Divider */
.tp-ticket-divider {
    border: none;
    border-top: 2px dashed var(--gray-200);
    margin: 0 36px;
}

/* Bottom: select + info + CTA */
.tp-ticket-bottom {
    padding: 24px 36px 28px;
    display: flex; align-items: center; gap: 20px;
}
.tp-ticket-select-group { flex: 1; }
.tp-ticket-select-label {
    font-size: 10px; font-weight: 700; color: var(--gray-400);
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}
.tp-ticket-select {
    width: 100%; padding: 12px 16px;
    border: 2px solid var(--gray-200); border-radius: 12px;
    font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 600;
    color: var(--gray-900); background: var(--gray-50);
    appearance: none; -webkit-appearance: none;
    cursor: pointer; transition: all 0.3s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
.tp-ticket-select:focus {
    border-color: var(--teal-400); outline: none;
    box-shadow: 0 0 0 4px rgba(44,197,189,0.1);
}

/* Select2 overrides inside ticket card */
.tp-ticket-select-group .select2-container--default .select2-selection--single {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 11px 16px;
    font-weight: 600;
    min-height: 48px;
    display: flex;
    align-items: center;
}
.tp-ticket-select-group .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-weight: 600;
    font-size: 14px;
}
.tp-ticket-select-group .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--teal-400);
    box-shadow: 0 0 0 4px rgba(44,197,189,0.1);
}

.tp-ticket-info {
    display: flex; gap: 20px; flex-shrink: 0;
}
.tp-ticket-info-item { text-align: center; }
.tp-ticket-info-label {
    font-size: 9px; font-weight: 700; color: var(--gray-400);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.tp-ticket-info-val {
    font-size: 16px; font-weight: 800; color: var(--teal-700);
}

.tp-ticket-btn {
    padding: 14px 32px; border: none; border-radius: 14px;
    background: var(--teal-500); color: #fff;
    font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; gap: 8px;
    white-space: nowrap; flex-shrink: 0;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(44,197,189,0.3);
}
.tp-ticket-btn:hover {
    background: var(--teal-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(44,197,189,0.35);
}

/* Barcode decoration */
.tp-ticket-barcode {
    display: flex; gap: 2px; justify-content: center;
    padding: 12px 36px 20px;
}
.tp-ticket-barcode span {
    display: block;
    width: 2px; height: 24px;
    background: var(--gray-900);
    border-radius: 1px;
    opacity: 0.12;
}
.tp-ticket-barcode span:nth-child(odd) { height: 18px; width: 3px; }
.tp-ticket-barcode span:nth-child(3n) { width: 4px; }
.tp-ticket-barcode span:nth-child(5n) { height: 22px; }

/* Trust badges */
.tp-trust {
    display: flex; gap: 28px; justify-content: center;
    margin-top: 24px; flex-wrap: wrap;
}
.tp-trust-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600;
    color: rgba(255,255,255,0.5);
}
.tp-trust-item i { color: rgba(255,255,255,0.3); }


/* ===== Animations ===== */
@keyframes tpFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tp-anim {
    animation: tpFadeUp 0.5s ease forwards;
    opacity: 0;
}


/* ================================================================
   SECTION HEADERS
   ================================================================ */
.tp-sec-header {
    text-align: center; margin: 15px 0;
}
.tp-sec-title {
    font-size: 20px; font-weight: 800; color: var(--gray-900); margin: 0 0 4px;
}
.tp-sec-desc {
    font-size: 12px; color: var(--gray-400); font-weight: 500;
}


/* ================================================================
   COUNTRY LISTING CARDS
   ================================================================ */
.tp-country-card {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 18px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(.22,1,.36,1);
    text-decoration: none;
    color: var(--gray-900);
}
.tp-country-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(44,197,189,0.1);
    border-color: var(--teal-300);
    color: var(--gray-900);
}
.tp-country-card-flag {
    font-size: 28px; line-height: 1;
}
.tp-country-card-name {
    flex: 1; font-size: 14px; font-weight: 600;
}
.tp-country-card-arrow {
    color: var(--gray-300); font-size: 12px;
    transition: all 0.3s;
}
.tp-country-card:hover .tp-country-card-arrow {
    color: var(--teal-500);
    transform: translateX(3px);
}


/* ================================================================
   INFO CARDS (landing page)
   ================================================================ */
.tp-info-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    text-align: center;
    transition: var(--ease);
    height: 100%;
}
.tp-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(44,197,189,0.1);
    border-color: var(--teal-200);
}
.tp-info-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--teal-100); color: var(--teal-700);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin: 0 auto 16px;
    transition: var(--ease);
}
.tp-info-card:hover .tp-info-icon {
    background: var(--teal-500); color: #fff;
    box-shadow: 0 4px 12px rgba(44,197,189,0.3);
}
.tp-info-card h4 {
    font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px;
}
.tp-info-card p {
    font-size: 13px; color: var(--gray-500); line-height: 1.6; margin: 0;
}


/* ================================================================
   COUNTRY HEADER (result page)
   ================================================================ */
.tp-country-header {
    display: flex; align-items: center; gap: 16px;
    margin: 10px 0;
    padding: 20px 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
}
.tp-country-flag {
    font-size: 42px; line-height: 1;
}
.tp-country-name {
    font-size: 20px; font-weight: 800; color: var(--gray-900); margin: 0 0 4px;
}
.tp-country-sub {
    font-size: 13px; color: var(--gray-500); margin: 0;
}


/* ================================================================
   CATEGORY TABS
   ================================================================ */
.tp-cat-tabs {
    display: flex; gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.tp-cat-tabs::-webkit-scrollbar { display: none; }
.tp-cat-tab {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 20px;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    background: var(--white);
    font-size: 13px; font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}
.tp-cat-tab:hover {
    border-color: var(--teal-300);
    color: var(--teal-700);
}
.tp-cat-tab.active {
    background: var(--teal-500);
    color: #fff;
    border-color: var(--teal-500);
    box-shadow: 0 4px 12px rgba(44,197,189,0.25);
}
.tp-cat-tab i { font-size: 14px; }

/* Category description */
.tp-cat-desc {
    display: none;
    padding: 10px 16px;
    font-size: 12px; color: var(--gray-500);
    background: var(--teal-50);
    border-radius: 10px;
    margin-bottom: 16px;
    line-height: 1.5;
}
.tp-cat-desc.active { display: flex; align-items: center; gap: 10px; }
.tp-cat-desc i {
    color: var(--teal-600); font-size: 14px; flex-shrink: 0;
}


/* ================================================================
   RATE CARDS
   ================================================================ */
.tp-rate-group {
    display: none;
}
.tp-rate-group.active {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tp-rate-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: all 0.3s ease;
}
.tp-rate-card:hover {
    border-color: var(--teal-300);
    box-shadow: 0 4px 16px rgba(44,197,189,0.08);
    transform: translateY(-1px);
}

/* Best rate highlight */
.tp-rate-best {
    border-color: var(--teal-400);
    background: linear-gradient(135deg, var(--teal-50) 0%, rgba(255,255,255,1) 100%);
    position: relative;
}
.tp-rate-best:hover {
    border-color: var(--teal-500);
    box-shadow: 0 8px 24px rgba(44,197,189,0.15);
}
.tp-rate-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
    color: #fff; font-size: 11px; font-weight: 700;
    border-radius: 0 0 10px 10px;
    margin-left: 20px;
    letter-spacing: 0.3px;
}
.tp-rate-badge i { font-size: 10px; }

.tp-rate-body {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    gap: 16px;
}

.tp-rate-left {
    display: flex; align-items: center; gap: 14px;
    flex: 1; min-width: 0;
}
.tp-rate-weight-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--gray-100);
    color: var(--gray-500);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.tp-rate-best .tp-rate-weight-icon {
    background: var(--teal-100);
    color: var(--teal-600);
}
.tp-rate-label {
    font-size: 14px; font-weight: 700; color: var(--gray-900);
    margin-bottom: 2px;
}
.tp-rate-weight {
    font-size: 12px; color: var(--gray-500);
}

.tp-rate-right {
    text-align: right; flex-shrink: 0;
}
.tp-rate-price {
    font-size: 18px; font-weight: 800; color: var(--gray-900);
    line-height: 1.2;
}
.tp-rate-best .tp-rate-price {
    color: var(--teal-700);
}
.tp-rate-unit {
    font-size: 11px; color: var(--gray-500); font-weight: 500;
}


/* ================================================================
   DISCLAIMER
   ================================================================ */
.tp-disclaimer {
    display: flex; gap: 12px;
    padding: 16px 20px;
    background: var(--teal-50);
    border: 1px solid var(--teal-200);
    border-radius: var(--r-md);
    font-size: 12px; line-height: 1.6;
    color: var(--gray-500);
    margin-top: 16px;
}
.tp-disclaimer i {
    color: var(--teal-600); font-size: 14px;
    margin-top: 2px; flex-shrink: 0;
}
.tp-disclaimer strong {
    color: var(--gray-700);
}


/* ================================================================
   SIDEBAR
   ================================================================ */
.tp-sidebar {
    display: flex; flex-direction: column; gap: 14px;
    position: sticky; top: 88px;
}

/* Sidebar link cards */
.tp-sidebar-card {
    display: flex; gap: 14px;
    padding: 18px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-md);
    text-decoration: none;
    color: var(--gray-900);
    transition: all 0.3s ease;
}
.tp-sidebar-card:hover {
    border-color: var(--teal-300);
    box-shadow: 0 4px 16px rgba(44,197,189,0.08);
    transform: translateY(-2px);
    color: var(--gray-900);
}
.tp-sidebar-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--teal-100); color: var(--teal-700);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
    transition: var(--ease);
}
.tp-sidebar-card:hover .tp-sidebar-icon {
    background: var(--teal-500); color: #fff;
}
.tp-sidebar-content { flex: 1; min-width: 0; }
.tp-sidebar-content h4 {
    font-size: 14px; font-weight: 700; margin: 0 0 4px;
}
.tp-sidebar-content p {
    font-size: 12px; color: var(--gray-500); line-height: 1.5; margin: 0 0 8px;
}
.tp-sidebar-cta {
    font-size: 12px; font-weight: 700; color: var(--teal-600);
    display: inline-flex; align-items: center; gap: 4px;
}
.tp-sidebar-cta i { font-size: 10px; transition: transform 0.2s; }
.tp-sidebar-card:hover .tp-sidebar-cta i { transform: translateX(3px); }

/* WhatsApp CTA */
.tp-sidebar-wa {
    background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
    border-radius: var(--r-md);
    padding: 20px;
    color: #fff;
}
.tp-sidebar-wa-inner {
    display: flex; gap: 12px; margin-bottom: 14px;
}
.tp-sidebar-wa-inner > i {
    font-size: 24px; opacity: 0.3; flex-shrink: 0; margin-top: 2px;
}
.tp-sidebar-wa h4 {
    font-size: 14px; font-weight: 700; margin: 0 0 4px;
}
.tp-sidebar-wa p {
    font-size: 12px; opacity: 0.7; line-height: 1.5; margin: 0;
}
.tp-wa-btn {
    width: 100%; padding: 11px;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    color: #fff; font-size: 13px; font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.tp-wa-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

/* Share */
.tp-share-card {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-md);
}
.tp-share-label {
    font-size: 12px; color: var(--gray-500); font-weight: 600;
}
.tp-share-icons {
    display: flex; gap: 10px;
}
.tp-share-icons a {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--white); border: 1px solid var(--gray-200);
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-500); font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
}
.tp-share-icons a:hover {
    background: var(--teal-500); color: #fff;
    border-color: var(--teal-500);
    transform: translateY(-2px);
}


/* ================================================================
   ARTICLE SECTION
   ================================================================ */
.tp-article {
    margin-top: 32px;
    margin-bottom: 16px;
}
.tp-article-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: 28px;
    overflow: hidden;
}
.tp-article-header {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 16px;
}
.tp-article-header i {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--teal-100); color: var(--teal-700);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.tp-article-header h3 {
    font-size: 18px; font-weight: 800; color: var(--gray-900);
    margin: 0;
}
.tp-article-excerpt {
    font-size: 14px; color: var(--gray-500); line-height: 1.7;
    margin-bottom: 20px;
}
.tp-article-points {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.tp-article-point {
    display: flex; gap: 12px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--r-md);
}
.tp-article-point-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--teal-100); color: var(--teal-700);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
}
.tp-article-point h5 {
    font-size: 13px; font-weight: 700; color: var(--gray-900); margin: 0 0 4px;
}
.tp-article-point p {
    font-size: 12px; color: var(--gray-500); line-height: 1.5; margin: 0;
}


/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991.98px) {
    .tp-sidebar { position: static; }
    .tp-article-points { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    .tp-hero { padding: 28px 0 40px; }
    .tp-hero-title { font-size: 22px; }

    /* Ticket responsive */
    .tp-ticket-route {
        flex-direction: column; gap: 12px;
        padding: 24px 24px; text-align: center;
    }
    .tp-route-point, .tp-route-point-right { text-align: center; }
    .tp-route-code { font-size: 24px; }
    .tp-route-mid { width: 100%; padding: 8px 0; }
    .tp-ticket-divider { margin: 0 24px; }
    .tp-ticket-bottom {
        flex-direction: column; padding: 20px 24px; gap: 14px;
    }
    .tp-ticket-select-group { width: 100%; }
    .tp-ticket-info { flex-direction: row; gap: 20px; width: 100%; justify-content: center; }
    .tp-ticket-btn { width: 100%; justify-content: center; }
    .tp-ticket::before, .tp-ticket::after { display: none; }
    .tp-ticket-barcode { padding: 12px 24px 18px; }
    .tp-trust { gap: 16px; }
    .tp-trust-item { font-size: 11px; }

    .tp-country-header { flex-direction: column; text-align: center; gap: 12px; padding: 18px; }
    .tp-country-name { font-size: 18px; }
    .tp-country-flag { font-size: 36px; }

    .tp-cat-tab { padding: 10px 14px; font-size: 12px; }
    .tp-cat-tab i { font-size: 12px; }

    .tp-rate-body { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 18px; }
    .tp-rate-right { text-align: left; width: 100%; display: flex; align-items: baseline; gap: 6px; padding-top: 10px; border-top: 1px solid var(--gray-100); }
    .tp-rate-price { font-size: 20px; color: var(--teal-700); }

    .tp-sec-title { font-size: 18px; }

    .tp-article-card { padding: 20px; }
    .tp-article-header h3 { font-size: 16px; }
    .tp-article-excerpt { font-size: 13px; }
    .tp-article-points { gap: 10px; }
    .tp-article-point { padding: 14px; }
}

@media (max-width: 575.98px) {
    .tp-hero-title { font-size: 20px; }
    .tp-hero-eyebrow { font-size: 10px; letter-spacing: 1.5px; }
    .tp-route-code { font-size: 22px; }
    .tp-route-name { font-size: 11px; }
    .tp-ticket-select { font-size: 13px; padding: 10px 14px; }
    .tp-ticket-info-val { font-size: 14px; }

    .tp-country-card { padding: 14px 14px; gap: 10px; }
    .tp-country-card-flag { font-size: 24px; }
    .tp-country-card-name { font-size: 13px; }

    .tp-rate-weight-icon { width: 36px; height: 36px; font-size: 14px; }
    .tp-rate-label { font-size: 13px; }
    .tp-rate-weight { font-size: 11px; }
    .tp-rate-badge { font-size: 10px; padding: 4px 10px; margin-left: 14px; }

    .tp-sidebar-card { padding: 14px 16px; gap: 12px; }
    .tp-sidebar-icon { width: 36px; height: 36px; font-size: 14px; }
    .tp-sidebar-content h4 { font-size: 13px; }

    .tp-share-card { flex-direction: column; gap: 10px; align-items: flex-start; }
}
/* ================================================================
   MODE PENGIRIMAN — Dari Gudang | Dijemput dari Rumah
   ================================================================ */
/* Kontrol ringkas di tengah, bukan bilah selebar kartu.
   Tab aktif diisi teal — versi putih di atas kartu yang juga putih
   membuat yang aktif justru paling tidak terlihat. */
.tp-mode {
  display:inline-flex; gap:4px; padding:4px; margin:2px auto 18px;
  background:#F2FCFB; border:1.5px solid #e0f2f1; border-radius:40px;
}
/* .tp-ticket sendiri TIDAK punya padding — jaraknya datang dari tiap
   anaknya (.tp-ticket-route, .tp-ticket-bottom, dst). Panel baru harus
   membawa paddingnya sendiri, kalau tidak ia menempel ke tepi kartu.
   Angkanya menyamai .tp-ticket-bottom: 36px desktop, 24px layar sempit. */
.tp-mode-wrap { display:flex; justify-content:center; padding:0 36px; }
.tp-mode-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  padding:9px 20px; border:none; border-radius:30px; background:transparent;
  color:#6B7F7F; font-size:12.5px; font-weight:700; font-family:inherit;
  white-space:nowrap; cursor:pointer;
  transition:background .2s, color .2s, box-shadow .2s;
}
.tp-mode-btn i { font-size:12px; }
.tp-mode-btn:hover { color:#1FA59E; }
.tp-mode-btn.is-active {
  background:linear-gradient(135deg,#2CC5BD,#1FA59E); color:#fff;
  box-shadow:0 3px 10px rgba(44,197,189,.32);
}

@media (max-width:480px) {
  .tp-mode { display:flex; width:100%; border-radius:14px; }
  /* Label DIBOLEHKAN turun ke baris kedua. Sebelumnya white-space:nowrap
     memaksa satu baris, jadi teks yang tidak muat meluber keluar pil —
     terlihat jelas di Bahasa Inggris ("From Jakarta Warehouse").
     Memperkecil huruf terus-menerus bukan jalan keluar: bahasa lain bisa
     lebih panjang lagi, dan dua baris selalu muat. */
  .tp-mode-btn {
    flex:1; min-width:0; padding:9px 8px; font-size:11.5px;
    border-radius:11px; white-space:normal; text-align:center; line-height:1.3;
  }
  .tp-mode-btn i { display:none; }
}

/* Dibatasi lebarnya dan ditengahkan. Kolom selebar kartu tiket membuat
   kotak berat sepanjang 1.200px hanya untuk menampung satu angka —
   terbaca melar dan sulit ditelusuri dari kiri ke kanan. */
.tp-pu { max-width:560px; margin:0 auto; padding:0 36px 28px; display:flex; flex-direction:column; gap:13px; text-align:left; }

/* Takik tiket duduk di top:50% — mengikuti tengah kartu. Begitu panel
   kalkulator memanjang, ia mendarat di tengah formulir, bukan di garis
   perforasi. Di keadaan ini takiknya disembunyikan saja. */
.tp-ticket.is-pu::before, .tp-ticket.is-pu::after { display:none; }
.tp-pu-step label {
  display:flex; align-items:center; gap:8px; margin-bottom:7px;
  font-size:12px; font-weight:700; color:#0F2B29;
}
.tp-pu-no {
  width:19px; height:19px; border-radius:50%; background:#2CC5BD; color:#fff;
  font-size:10.5px; line-height:19px; text-align:center; flex-shrink:0;
}

.tp-pu-pick { position:relative; display:flex; align-items:center; }
.tp-pu-pick > i { position:absolute; left:13px; color:#2CC5BD; font-size:13px; pointer-events:none; }
.tp-pu-pick input {
  width:100%; padding:11px 13px 11px 36px; border:1.5px solid #e2e8f0; border-radius:11px;
  font-size:13.5px; font-family:inherit; color:#0F2B29; background:#fff; outline:none;
  transition:border-color .18s, box-shadow .18s;
}
.tp-pu-pick input:focus { border-color:#2CC5BD; box-shadow:0 0 0 3px rgba(44,197,189,.15); }
.tp-pu-pick-sm { flex:1; }
.tp-pu-pick-sm input { padding-right:44px; }
.tp-pu-unit { position:absolute; right:14px; font-size:12.5px; font-weight:700; color:#8A9A9A; pointer-events:none; }
/* Panah naik-turun bawaan peramban menabrak satuan "kg" dan tidak berguna
   untuk berat berdesimal — diketik langsung lebih cepat. */
.tp-pu-pick input[type=number]::-webkit-outer-spin-button,
.tp-pu-pick input[type=number]::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.tp-pu-pick input[type=number] { -moz-appearance:textfield; appearance:textfield; }
.tp-pu-dim input[type=number]::-webkit-outer-spin-button,
.tp-pu-dim input[type=number]::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.tp-pu-dim input[type=number] { -moz-appearance:textfield; appearance:textfield; }

/* Saran wilayah melayang: daftar yang mendorong tata letak membuat
   langkah-langkah di bawahnya melompat saat mengetik. */
.tp-pu-sugg {
  position:absolute; top:calc(100% + 5px); left:0; right:0; z-index:40;
  max-height:220px; overflow-y:auto; background:#fff;
  border:1.5px solid #e6eded; border-radius:11px; box-shadow:0 12px 28px rgba(15,43,41,.14);
}
.tp-pu-sugg-item {
  display:block; width:100%; text-align:left; padding:9px 13px; border:none; background:none;
  font-size:12.5px; font-family:inherit; color:#0F2B29; cursor:pointer; line-height:1.45;
}
.tp-pu-sugg-item:hover { background:#F2FCFB; color:#1FA59E; }
.tp-pu-sugg-hint { padding:10px 13px; font-size:12px; color:#8A9A9A; }

.tp-pu-to {
  display:flex; align-items:center; gap:8px; margin-top:8px; padding:10px 13px;
  border-radius:11px; background:#F2FCFB; border:1.5px dashed #b3ece9;
  font-size:12px; color:#0F2B29;
}
.tp-pu-to i { color:#1FA59E; }

.tp-pu-row { display:flex; align-items:center; gap:9px; }
.tp-pu-dimtoggle {
  flex-shrink:0; padding:11px 14px; border:1.5px solid #e2e8f0; border-radius:11px;
  background:#fff; color:#5A6C6C; font-size:12px; font-weight:700; font-family:inherit;
  cursor:pointer; white-space:nowrap; transition:all .18s;
}
.tp-pu-dimtoggle:hover, .tp-pu-dimtoggle.is-on { border-color:#2CC5BD; color:#1FA59E; background:#F2FCFB; }
.tp-pu-dim { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:9px; }
.tp-pu-dim input {
  width:100%; padding:10px 12px; border:1.5px solid #e2e8f0; border-radius:10px;
  font-size:13px; font-family:inherit; color:#0F2B29; outline:none;
}

.tp-pu-couriers { display:flex; flex-direction:column; gap:8px; max-height:260px; overflow-y:auto; }
.tp-pu-courier {
  display:flex; align-items:center; gap:11px; padding:11px 13px;
  border:2px solid #e9ecef; border-radius:12px; background:#fff; cursor:pointer;
  transition:border-color .18s, background .18s;
}
.tp-pu-courier:hover { border-color:#b3ece9; background:#f0fffe; }
.tp-pu-courier input { accent-color:#2CC5BD; flex-shrink:0; }
.tp-pu-courier:has(input:checked) { border-color:#2CC5BD; background:linear-gradient(135deg,#e6faf9 0%,#fff 100%); }
.tp-pu-courier-b { flex:1; min-width:0; }
.tp-pu-courier-b b { display:block; font-size:13px; color:#0F2B29; }
.tp-pu-courier-b small { font-size:11px; color:#8A9A9A; }
.tp-pu-courier-c { font-size:13.5px; font-weight:800; color:#1FA59E; white-space:nowrap; }

.tp-pu-cats { display:flex; flex-wrap:wrap; gap:7px; margin-top:9px; }
.tp-pu-cat {
  padding:7px 13px; border:1.5px solid #e2e8f0; border-radius:30px; background:#fff;
  color:#5A6C6C; font-size:12px; font-weight:700; font-family:inherit; cursor:pointer;
  transition:all .18s;
}
.tp-pu-cat:hover { border-color:#b3ece9; color:#1FA59E; }
.tp-pu-cat.is-on { border-color:#2CC5BD; background:#2CC5BD; color:#fff; }

.tp-pu-hint {
  padding:13px 14px; text-align:center; font-size:12.5px; color:#8A9A9A;
  border:1.5px dashed #e2e8f0; border-radius:12px; background:#fafbfb;
}
.tp-pu-err { color:#b45309; }
.tp-pu-go { width:100%; }

.tp-pu-result {
  margin-top:4px; padding:14px 16px; border-radius:13px;
  background:linear-gradient(135deg,#e6faf9 0%,#fff 100%); border:1.5px solid #2CC5BD;
}
/* Teguran validasi. Dipakai di kotak hasil yang sama supaya matanya
   tidak perlu mencari ke tempat lain — yang berubah cuma isinya. */
.tp-pu-warn {
  display:flex; align-items:flex-start; gap:9px;
  font-size:13px; line-height:1.5; color:#9A5B00;
}
.tp-pu-warn i { margin-top:2px; color:#E08600; flex-shrink:0; }
.tp-pu-result:has(.tp-pu-warn) {
  background:#FFF8EE; border-color:#F0C98A;
}

.tp-pu-line { display:flex; justify-content:space-between; align-items:center; font-size:13px; color:#4A5E5E; padding:4px 0; }
.tp-pu-line b { color:#0F2B29; font-weight:700; }
.tp-pu-total { margin-top:7px; padding-top:10px; border-top:1px dashed #a8ddd9; font-size:15px; color:#0F2B29; }
.tp-pu-total b { font-size:17px; font-weight:800; color:#1FA59E; }
.tp-pu-note { margin-top:9px; font-size:11px; line-height:1.5; color:#8A9A9A; }

@media (max-width:576px) {
  .tp-mode-wrap { padding:0 24px; }
  .tp-pu { padding:0 24px 22px; gap:12px; }
  .tp-pu-row { flex-direction:column; align-items:stretch; }
  .tp-pu-dimtoggle { width:100%; }
  /* Tiga kolom dimensi berdampingan di 375px menyisakan ~90px per kolom —
     angkanya terpotong. Dua baris lebih terbaca. */
  .tp-pu-dim { grid-template-columns:repeat(2,1fr); }
  .tp-pu-dim input:last-child { grid-column:1 / -1; }
  /* Daftar kurir dibatasi lebih pendek: di layar ponsel daftar 260px
     menutupi langkah 4 sepenuhnya. */
  .tp-pu-couriers { max-height:210px; }
  .tp-pu-courier { padding:10px 11px; gap:9px; }
  .tp-pu-courier-c { font-size:12.5px; }
  .tp-pu-result { padding:12px 13px; }
  .tp-pu-total b { font-size:16px; }
}