/* ============================================================
   pkg-checkout.css — CSS chung cho phần "Gói luận giải"
   Dùng cho tu-vi.html, bat-tu.html
   ============================================================ */

:root {
  --title-red:     #6E0E0A;
  --frame-gold:    #C9A24A;
  --frame-gold-soft: #E6CB85;
  --line:          #d8c79b;
  --line-soft:     #ece1bf;
  --ink:           #1c1410;
  --ink-soft:      #5b4636;
  --ink-faint:     #8a7256;
  --accent-cyan:   #155e75;
  --hk-pos:        #15803D;
}


        /* ============================================================
           GÓI LUẬN GIẢI — Thiết kế thân thiện người lớn tuổi
           Nguyên tắc: chữ to (≥16px), nút lớn (≥48px), 1 chạm là chọn
           ============================================================ */
        .uk-pkg-wrap {
            max-width: 1080px;
            margin: 36px auto 120px;
            padding: 0 16px;
            font-family: "Be Vietnam Pro", system-ui, sans-serif;
            color: var(--ink);
        }
        .uk-pkg-hero {
            background: linear-gradient(135deg, #fffaf0 0%, #fff3e0 100%);
            border: 2px solid var(--frame-gold);
            border-radius: 18px;
            padding: 26px 24px;
            text-align: center;
            box-shadow: 0 4px 18px rgba(110,14,10,.08);
        }
        .uk-pkg-hero h2 {
            font-family: "Noto Serif",serif;
            color: var(--title-red);
            font-size: 30px;
            font-weight: 700;
            margin: 0 0 8px;
            letter-spacing: .5px;
        }
        .uk-pkg-hero p {
            font-size: 16.5px;
            color: var(--ink-soft);
            margin: 0 auto;
            max-width: 720px;
            line-height: 1.6;
        }
        .uk-pkg-hero .uk-pkg-hero-quote {
            margin-top: 14px;
            font-style: italic;
            font-size: 15.5px;
            color: var(--title-red);
        }

        .uk-trust {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 12px;
            margin: 22px 0;
        }
        .uk-trust-item {
            background: #fff;
            border: 1px solid var(--line);
            border-radius: 12px;
            padding: 14px 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 14.5px;
            color: var(--ink-soft);
            line-height: 1.4;
        }
        .uk-trust-item i {
            font-size: 22px;
            color: var(--frame-gold);
            min-width: 26px;
            text-align: center;
        }
        .uk-trust-item b { color: var(--title-red); font-weight: 600; }

        .uk-card {
            background: #fff;
            border: 1px solid var(--line);
            border-radius: 16px;
            padding: 22px 22px 24px;
            margin-top: 18px;
            box-shadow: 0 2px 10px rgba(0,0,0,.04);
        }
        .uk-card-h {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 18px;
            padding-bottom: 14px;
            border-bottom: 1px dashed var(--line);
        }
        .uk-step-num {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 42px; height: 42px;
            border-radius: 50%;
            background: var(--title-red);
            color: #fff;
            font-family: "Noto Serif", serif;
            font-size: 22px;
            font-weight: 700;
            flex-shrink: 0;
        }
        .uk-card-h h3 {
            font-family: "Noto Serif",serif;
            font-size: 24px;
            font-weight: 700;
            color: var(--title-red);
            margin: 0;
            line-height: 1.2;
        }
        .uk-card-h .uk-card-sub {
            font-size: 14.5px;
            color: var(--ink-soft);
            margin: 2px 0 0;
            font-family: "Be Vietnam Pro", sans-serif;
            font-weight: 400;
        }

        .uk-cat-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 16px;
        }
        .uk-cat {
            padding: 10px 16px;
            border: 1.5px solid var(--line);
            background: #fff;
            border-radius: 999px;
            cursor: pointer;
            font-size: 14.5px;
            font-weight: 500;
            color: var(--ink-soft);
            transition: all .2s;
            font-family: "Be Vietnam Pro", sans-serif;
        }
        .uk-cat:hover { border-color: var(--frame-gold); color: var(--title-red); }
        .uk-cat.active {
            background: var(--title-red);
            color: #fff;
            border-color: var(--title-red);
        }

        .uk-pkg-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            align-items: stretch;
            gap: 14px;
        }
        .uk-pkg-card {
            position: relative;
            background: #fffdf7;
            border: 2px solid var(--line);
            border-radius: 14px;
            padding: 18px 16px 84px;
            display: flex;
            flex-direction: column;
            transition: all .25s;
        }
        .uk-pkg-card.popular {
            border-color: var(--frame-gold);
            background: linear-gradient(180deg,#fffaf0 0%,#fffdf7 100%);
        }
        .uk-pkg-card.selected {
            border-color: var(--title-red);
            background: #fff8f5;
            box-shadow: 0 6px 20px rgba(110,14,10,.18);
            transform: translateY(-2px);
        }
        .uk-pkg-badge {
            position: absolute;
            top: -10px; left: 14px;
            background: var(--frame-gold);
            color: #fff;
            font-size: 12px;
            font-weight: 700;
            padding: 3px 10px;
            border-radius: 999px;
            letter-spacing: .5px;
            text-transform: uppercase;
        }
        .uk-pkg-card.popular .uk-pkg-badge { background: var(--title-red); }
        .uk-pkg-title {
            font-family: "Noto Serif",serif;
            font-size: 20px;
            font-weight: 700;
            color: var(--title-red);
            margin: 4px 0 6px;
            line-height: 1.25;
        }
        .uk-pkg-desc {
            font-size: 14.5px;
            color: var(--ink-soft);
            line-height: 1.5;
            margin-bottom: 10px;
            flex-grow: 1;
        }
        .uk-pkg-bullet {
            display: flex;
            align-items: flex-start;
            gap: 7px;
            font-size: 13.5px;
            color: var(--ink-soft);
            margin: 4px 0;
            line-height: 1.4;
        }
        .uk-pkg-bullet i {
            color: var(--hk-pos);
            font-size: 12px;
            margin-top: 4px;
            flex-shrink: 0;
        }
        .uk-pkg-foot {
            position: absolute;
            left: 16px; right: 16px; bottom: 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }
        .uk-pkg-price {
            font-family: "Noto Serif", serif;
            font-size: 19px;
            font-weight: 700;
            color: var(--title-red);
            white-space: nowrap;
        }
        .uk-pkg-price small {
            font-size: 12px;
            color: var(--ink-faint);
            font-weight: 400;
            display: block;
            margin-top: -2px;
        }
        .uk-pkg-btn {
            border: 2px solid var(--title-red);
            background: var(--title-red);
            color: #fff;
            font-size: 14.5px;
            font-weight: 700;
            padding: 10px 16px;
            border-radius: 10px;
            cursor: pointer;
            min-height: 44px;
            font-family: "Be Vietnam Pro", sans-serif;
            transition: all .2s;
            white-space: nowrap;
        }
        .uk-pkg-btn:hover { background: #4a0808; border-color: #4a0808; }
        .uk-pkg-card.selected .uk-pkg-btn {
            background: #fff;
            color: var(--title-red);
            border-color: var(--title-red);
        }
        .uk-pkg-sample {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            color: var(--accent-cyan);
            cursor: pointer;
            text-decoration: underline dotted;
            background: none;
            border: none;
            padding: 0;
            margin: 4px 0 8px;
            font-family: "Be Vietnam Pro", sans-serif;
        }
        .uk-pkg-sample:hover { color: var(--title-red); }
        .uk-pkg-links {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 6px 18px;
            margin: 6px 0 8px;
        }
        .uk-pkg-links .uk-pkg-sample { margin: 0; }
        .uk-pkg-detail {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            font-weight: 600;
            color: var(--title-red);
            text-decoration: underline dotted;
            font-family: "Be Vietnam Pro", sans-serif;
        }
        .uk-pkg-detail:hover { color: var(--frame-gold); }

        .uk-method-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 12px;
        }
        .uk-method {
            display: flex;
            align-items: center;
            gap: 14px;
            border: 2px solid var(--line);
            border-radius: 12px;
            padding: 16px 16px;
            cursor: pointer;
            background: #fff;
            transition: all .2s;
            min-height: 76px;
        }
        .uk-method:hover { border-color: var(--frame-gold); }
        .uk-method.active {
            border-color: var(--title-red);
            background: #fff8f5;
            box-shadow: 0 4px 12px rgba(110,14,10,.12);
        }
        .uk-method.disabled {
            opacity: .45;
            cursor: not-allowed;
            background: #f8f8f8;
        }
        .uk-method-icon {
            width: 46px; height: 46px;
            border-radius: 50%;
            background: #fffaf0;
            border: 1.5px solid var(--frame-gold-soft);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--title-red);
            font-size: 20px;
            flex-shrink: 0;
        }
        .uk-method.active .uk-method-icon {
            background: var(--title-red);
            color: #fff;
            border-color: var(--title-red);
        }
        .uk-method-text { line-height: 1.35; }
        .uk-method-name {
            font-size: 16px;
            font-weight: 700;
            color: var(--ink);
            margin-bottom: 2px;
        }
        .uk-method-sub {
            font-size: 13.5px;
            color: var(--ink-soft);
        }

        .uk-cal-wrap { display: none; }
        .uk-cal-wrap.show { display: block; }
        .uk-cal-note {
            background: #fffaf0;
            border-left: 4px solid var(--frame-gold);
            padding: 10px 14px;
            border-radius: 6px;
            font-size: 14px;
            color: var(--ink-soft);
            margin-bottom: 14px;
            line-height: 1.65;
        }
        .uk-cal-note.uk-cal-warn {
            background: #fff5f5;
            border-left-color: #dc2626;
            color: #1c1410;
        }
        .uk-cal-note.uk-cal-warn b { color: #1c1410; }
        .uk-weekend-pill {
            display: inline-block;
            background: #dc2626;
            color: #fff;
            padding: 2px 8px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 700;
            margin-left: 6px;
        }
        .uk-surcharge-row {
            font-size: 13.5px;
            color: #dc2626;
            margin-top: 4px;
            display: block;
        }
        /* === LỊCH THÁNG === */
        .uk-cal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            padding: 6px 4px;
        }
        .uk-cal-nav {
            background: #fff;
            border: 1.5px solid var(--line);
            color: var(--title-red);
            width: 38px;
            height: 38px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-family: "Be Vietnam Pro", sans-serif;
            transition: all .2s;
        }
        .uk-cal-nav:hover:not(:disabled) {
            background: var(--frame-gold);
            color: #fff;
            border-color: var(--frame-gold);
        }
        .uk-cal-nav:disabled {
            opacity: .35;
            cursor: not-allowed;
        }
        .uk-cal-month-label {
            font-family: "Noto Serif", serif;
            font-size: 22px;
            font-weight: 700;
            color: var(--title-red);
            text-align: center;
            flex: 1;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .uk-cal-today-btn {
            background: var(--frame-gold);
            color: #fff;
            border: none;
            padding: 6px 14px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12.5px;
            font-weight: 600;
            font-family: "Be Vietnam Pro", sans-serif;
            margin-left: 8px;
        }
        .uk-cal-today-btn:hover { background: var(--title-red); }

        .uk-cal-dow-row {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 6px;
            margin-bottom: 8px;
        }
        .uk-cal-dow {
            text-align: center;
            font-size: 12px;
            font-weight: 700;
            color: var(--ink-faint);
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 6px 0;
        }
        .uk-cal-dow.weekend { color: var(--title-red); }

        .uk-day-row {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 6px;
            margin-bottom: 16px;
        }
        .uk-day-empty {
            visibility: hidden;
        }
        .uk-day {
            text-align: center;
            border: 1.5px solid var(--line);
            border-radius: 10px;
            padding: 10px 4px;
            cursor: pointer;
            background: #fff;
            transition: all .2s;
            min-height: 64px;
        }
        .uk-day:hover { border-color: var(--frame-gold); }
        .uk-day.active {
            background: var(--title-red);
            color: #fff;
            border-color: var(--title-red);
        }
        .uk-day-dow {
            font-size: 12px;
            color: var(--ink-faint);
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .uk-day.active .uk-day-dow { color: #ffd7a8; }
        .uk-day-dd {
            font-family: "Noto Serif", serif;
            font-size: 22px;
            font-weight: 700;
            color: var(--ink);
            margin: 4px 0 0;
        }
        .uk-day.active .uk-day-dd { color: #fff; }
        .uk-day.full {
            background: #f3f3f3;
            color: var(--ink-faint);
            cursor: not-allowed;
            border-color: #e5e5e5;
        }
        .uk-day.full .uk-day-dd { color: var(--ink-faint); text-decoration: line-through; }
        .uk-day.past {
            background: #f8f8f8;
            color: #c0c0c0;
            cursor: not-allowed;
            border-color: #e8e8e8;
        }
        .uk-day.past .uk-day-dd { color: #c8c8c8; }
        .uk-day.today:not(.active) {
            border-color: var(--frame-gold);
            border-width: 2px;
            background: #fffaf0;
        }
        .uk-day.today:not(.active) .uk-day-dd {
            color: var(--title-red);
            font-weight: 700;
        }
        /* Khi today + active cùng lúc: ưu tiên active (đỏ + text trắng) + giữ viền vàng */
        .uk-day.today.active {
            border-color: var(--frame-gold);
            border-width: 2px;
        }

        .uk-slot-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
            gap: 10px;
        }
        .uk-slot {
            padding: 12px 8px;
            text-align: center;
            border: 1.5px solid var(--line);
            border-radius: 10px;
            cursor: pointer;
            font-size: 15px;
            font-weight: 600;
            font-family: "Noto Serif", serif;
            background: #fff;
            color: var(--ink);
            transition: all .2s;
            min-height: 48px;
        }
        .uk-slot:hover { border-color: var(--frame-gold); }
        .uk-slot.active {
            background: var(--title-red);
            color: #fff;
            border-color: var(--title-red);
        }
        .uk-slot.full {
            background: #f3f3f3;
            color: var(--ink-faint);
            cursor: not-allowed;
            text-decoration: line-through;
        }

        .uk-form-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 14px;
        }
        .uk-field label {
            display: block;
            font-size: 14.5px;
            font-weight: 600;
            color: var(--ink);
            margin-bottom: 6px;
        }
        .uk-field input,
        .uk-field textarea {
            width: 100%;
            padding: 13px 14px;
            border: 1.5px solid var(--line);
            border-radius: 10px;
            font-size: 16px;
            font-family: "Be Vietnam Pro", sans-serif;
            background: #fff;
            color: var(--ink);
            transition: border-color .2s, box-shadow .2s;
            box-sizing: border-box;
        }
        .uk-field input:focus,
        .uk-field textarea:focus {
            outline: none;
            border-color: var(--frame-gold);
            box-shadow: 0 0 0 3px rgba(201,162,74,.15);
        }
        .uk-field textarea { resize: vertical; min-height: 80px; }
        .uk-field-note {
            font-size: 12.5px;
            color: var(--ink-faint);
            margin-top: 4px;
        }

        .uk-checkout-bar {
            position: fixed;
            left: 0; right: 0; bottom: 0;
            background: #fff;
            border-top: 2px solid var(--frame-gold);
            box-shadow: 0 -6px 24px rgba(0,0,0,.10);
            padding: 14px 16px;
            z-index: 50;
            transform: translateY(110%);
            transition: transform .3s ease;
        }
        .uk-checkout-bar.show { transform: translateY(0); }
        .uk-checkout-inner {
            max-width: 1080px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: wrap;
        }
        .uk-total {
            display: flex;
            align-items: baseline;
            gap: 8px;
            font-family: "Be Vietnam Pro", sans-serif;
        }
        .uk-total-lbl {
            font-size: 14px;
            color: var(--ink-soft);
            font-weight: 500;
        }
        .uk-total-amt {
            font-family: "Noto Serif", serif;
            font-size: 26px;
            font-weight: 700;
            color: var(--title-red);
        }
        .uk-total-cnt {
            font-size: 13px;
            color: var(--ink-faint);
            margin-left: 2px;
        }
        .uk-pay-btn {
            background: var(--title-red);
            color: #fff;
            border: 2px solid var(--title-red);
            border-radius: 12px;
            padding: 14px 28px;
            font-size: 17px;
            font-weight: 700;
            cursor: pointer;
            min-height: 54px;
            font-family: "Be Vietnam Pro", sans-serif;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            transition: all .2s;
        }
        .uk-pay-btn:hover { background: #4a0808; border-color: #4a0808; }
        .uk-pay-btn:disabled {
            background: #d0c8c0; border-color: #d0c8c0; cursor: not-allowed;
        }

        .uk-cart-mini {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            max-width: 100%;
        }
        .uk-cart-chip {
            background: #fffaf0;
            border: 1px solid var(--frame-gold-soft);
            border-radius: 999px;
            padding: 5px 10px 5px 12px;
            font-size: 13px;
            color: var(--title-red);
            display: inline-flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
            font-family: "Be Vietnam Pro", sans-serif;
        }
        .uk-cart-chip .uk-x {
            background: none;
            border: none;
            color: var(--title-red);
            cursor: pointer;
            font-size: 16px;
            line-height: 1;
            padding: 0;
            margin-left: 2px;
        }
        .uk-cart-chip .uk-x:hover { color: #4a0808; }

        .uk-modal {
            position: fixed; inset: 0;
            background: rgba(28,20,16,.55);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 100;
            padding: 16px;
        }
        .uk-modal.show { display: flex; }
        .uk-modal-box {
            background: #fff;
            border-radius: 18px;
            max-width: 520px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            padding: 24px;
            box-shadow: 0 12px 40px rgba(0,0,0,.3);
        }
        .uk-modal-h {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 12px;
        }
        .uk-modal-h h3 {
            font-family: "Noto Serif",serif;
            font-size: 24px;
            color: var(--title-red);
            margin: 0;
        }
        .uk-modal-close {
            background: none; border: none;
            font-size: 28px; line-height: 1;
            color: var(--ink-faint);
            cursor: pointer;
            padding: 0 6px;
        }
        .uk-modal-close:hover { color: var(--title-red); }
        .uk-modal-sum {
            background: #fffaf0;
            border: 1px solid var(--frame-gold-soft);
            border-radius: 10px;
            padding: 12px 14px;
            margin-bottom: 16px;
            font-size: 14.5px;
            color: var(--ink-soft);
            line-height: 1.5;
        }
        .uk-modal-sum b { color: var(--title-red); }
        .uk-gw-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }
        @media (max-width:420px){ .uk-gw-grid{grid-template-columns:1fr;} }
        .uk-gw {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 14px;
            border: 2px solid var(--line);
            border-radius: 12px;
            background: #fff;
            cursor: pointer;
            font-size: 15px;
            font-weight: 600;
            color: var(--ink);
            min-height: 64px;
            font-family: "Be Vietnam Pro", sans-serif;
            transition: all .2s;
            text-align: left;
        }
        .uk-gw:hover { border-color: var(--title-red); transform: translateY(-1px); }
        .uk-gw-logo {
            width: 38px; height: 38px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            color: #fff;
            flex-shrink: 0;
            font-weight: 700;
        }
        .uk-gw-vnpay { background: #005ba1; }
        .uk-gw-momo { background: #a50064; }
        .uk-gw-zalo { background: #0068ff; }
        .uk-gw-casso { background: #16a34a; }
        .uk-gw-stripe { background: #635bff; }
        .uk-gw-sub {
            font-size: 12.5px;
            color: var(--ink-faint);
            font-weight: 400;
            display: block;
        }

        .uk-faq {
            margin-top: 22px;
            background: #fff;
            border: 1px solid var(--line);
            border-radius: 14px;
            overflow: hidden;
        }
        .uk-faq-item { border-bottom: 1px solid var(--line-soft); }
        .uk-faq-item:last-child { border-bottom: none; }
        .uk-faq-q {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            padding: 16px 18px;
            cursor: pointer;
            font-weight: 600;
            font-size: 15.5px;
            color: var(--ink);
            background: #fff;
            border: none;
            width: 100%;
            text-align: left;
            font-family: "Be Vietnam Pro", sans-serif;
        }
        .uk-faq-q:hover { background: #fffaf0; }
        .uk-faq-q .uk-faq-icon { color: var(--title-red); transition: transform .2s; font-size: 18px; }
        .uk-faq-item.open .uk-faq-q .uk-faq-icon { transform: rotate(45deg); }
        .uk-faq-a {
            display: none;
            padding: 0 18px 16px;
            font-size: 14.5px;
            color: var(--ink-soft);
            line-height: 1.6;
        }
        .uk-faq-item.open .uk-faq-a { display: block; }

        .uk-testi-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 14px;
            margin-top: 14px;
        }
        .uk-testi {
            background: #fffdf7;
            border: 1px solid var(--line);
            border-left: 4px solid var(--frame-gold);
            border-radius: 10px;
            padding: 16px 16px;
        }
        .uk-testi-text {
            font-size: 14.5px;
            color: var(--ink-soft);
            line-height: 1.55;
            font-style: italic;
            margin-bottom: 10px;
        }
        .uk-testi-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--title-red);
        }
        .uk-testi-meta {
            font-size: 12.5px;
            color: var(--ink-faint);
        }

        @media (max-width: 560px) {
            .uk-pkg-hero h2 { font-size: 24px; }
            .uk-pkg-hero p { font-size: 15px; }
            .uk-card { padding: 18px 16px; }
            .uk-card-h h3 { font-size: 20px; }
            .uk-step-num { width: 36px; height: 36px; font-size: 19px; }
            .uk-total-amt { font-size: 22px; }
            .uk-pay-btn { width: 100%; justify-content: center; font-size: 16px; }
            .uk-checkout-inner { flex-direction: column; align-items: stretch; }
            .uk-pkg-grid { grid-template-columns: 1fr; }
        }
