/* ================================================================
   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; }
}