/* Dropdown dan pemilih tanggal buatan sendiri (menggantikan bawaan browser). Dipakai form kuotasi dan admin.
   Warna mengikuti variabel tema CMS; angka di belakang var() adalah cadangan bila variabel tidak ada (mis. di admin). */
:is(#quote-app, body) .ui-sel,
:is(#quote-app, body) .ui-date { position: relative; display: block; }
:is(#quote-app, body) .ui-sel select.ui-native { display: none !important; }
:is(#quote-app, body) .ui-sel-btn,
:is(#quote-app, body) .ui-date-in {
  display: block; width: 100%; min-height: 46px; box-sizing: border-box; margin: 0;
  padding: 10px 38px 10px 12px; border: 1px solid var(--ui-bd, var(--line, #c9d3de)); border-radius: 8px;
  background: var(--bg, #fff); color: var(--ink, #111); font: inherit; line-height: 1.35; text-align: left; cursor: pointer;
}
:is(#quote-app, body) .ui-date-in { cursor: text; }
:is(#quote-app, body) .ui-sel-btn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
:is(#quote-app, body) .ui-sel-btn::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border: solid var(--mute, #666); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s;
}
:is(#quote-app, body) .ui-sel.open .ui-sel-btn::after { transform: rotate(-135deg); margin-top: -2px; }
:is(#quote-app, body) .ui-sel-btn:focus-visible,
:is(#quote-app, body) .ui-date-in:focus-visible { outline: 2px solid var(--blue, #0071c1); outline-offset: 1px; }
:is(#quote-app, body) .ui-sel-btn:disabled { opacity: .55; cursor: not-allowed; }
:is(#quote-app, body) .ui-sel-btn .ph { color: var(--mute, #666); }
:is(#quote-app, body) .ui-list,
:is(#quote-app, body) .ui-cal {
  position: absolute; z-index: 60; left: 0; min-width: 100%; box-sizing: border-box;
  background: var(--bg, #fff); color: var(--ink, #111); border: 1px solid var(--ui-bd, var(--line, #c9d3de)); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18); top: calc(100% + 4px);
}
:is(#quote-app, body) .ui-list.up,
:is(#quote-app, body) .ui-cal.up { top: auto; bottom: calc(100% + 4px); }
:is(#quote-app, body) .ui-list { max-height: 264px; overflow-y: auto; padding: 4px; }
:is(#quote-app, body) .ui-opt { padding: 9px 12px; border-radius: 7px; cursor: pointer; line-height: 1.3; }
:is(#quote-app, body) .ui-opt:hover,
:is(#quote-app, body) .ui-opt.hl { background: var(--soft, #eef5fb); }
:is(#quote-app, body) .ui-opt.sel { font-weight: 700; color: var(--blue, #0071c1); }
:is(#quote-app, body) .ui-opt.dis { opacity: .45; cursor: not-allowed; }
:is(#quote-app, body) .ui-sf { position: sticky; top: -4px; z-index: 1; display: block; width: calc(100% + 8px); box-sizing: border-box; margin: -4px -4px 4px; padding: 11px 12px; border: 0; border-bottom: 1px solid var(--qgrey-bd, #d5dde6); border-radius: 0; background: var(--bg, #fff); color: inherit; font: inherit; outline: none; }
:is(#quote-app, body) .ui-sf::placeholder { color: var(--mute, #666); opacity: .7; }
:is(#quote-app, body) .ui-none { padding: 9px 12px; color: var(--mute, #666); font-size: .9em; }
:is(#quote-app, body) .ui-grp { margin-top: 6px; padding: 7px 12px; background: #dcebf8; border-left: 4px solid var(--blue, #0071c1); border-radius: 6px; color: #0b4f86; font-size: .78em; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* tanggal */
:is(#quote-app, body) .ui-date-btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 8px;
  background: transparent; color: var(--mute, #666); cursor: pointer; display: grid; place-items: center; padding: 0;
}
:is(#quote-app, body) .ui-date-btn:hover { background: var(--soft, #eef5fb); color: var(--blue, #0071c1); }
:is(#quote-app, body) .ui-date-btn svg { width: 20px; height: 20px; }
:is(#quote-app, body) .ui-date-in[aria-invalid="true"] { border-color: #c80000; }
:is(#quote-app, body) .ui-date-err { margin-top: 4px; font-size: .82em; color: #c80000; }
:is(#quote-app, body) .ui-cal { width: 292px; min-width: 292px; padding: 10px; }
:is(#quote-app, body) .ui-cal.right { left: auto; right: 0; }
:is(#quote-app, body) .ui-cal-h { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
:is(#quote-app, body) .ui-cal-h .t { flex: 1; display: flex; gap: 4px; justify-content: center; }
:is(#quote-app, body) .ui-cal button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; border-radius: 7px; }
:is(#quote-app, body) .ui-cal-h .ui-nav { width: 34px; height: 34px; font-size: 20px; line-height: 1; }
:is(#quote-app, body) .ui-cal-h .ui-nav:hover:not(:disabled),
:is(#quote-app, body) .ui-cal-h .ttl:hover { background: var(--soft, #eef5fb); }
:is(#quote-app, body) .ui-cal-h .ui-nav:disabled { opacity: .3; cursor: default; }
:is(#quote-app, body) .ui-cal-h .ttl { padding: 6px 9px; font-weight: 700; }
:is(#quote-app, body) .ui-cal-h .ttl::after { content: " \25BE"; font-size: .8em; color: var(--mute, #666); }
:is(#quote-app, body) .ui-cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
:is(#quote-app, body) .ui-cal-g .dow { text-align: center; font-size: .75em; font-weight: 700; color: var(--mute, #666); padding: 4px 0; }
:is(#quote-app, body) .ui-cal-g button { height: 36px; }
:is(#quote-app, body) .ui-cal-g button:hover:not(:disabled) { background: var(--soft, #eef5fb); }
:is(#quote-app, body) .ui-cal-g button.out { color: var(--mute, #666); opacity: .55; }
:is(#quote-app, body) .ui-cal-g button.today { box-shadow: inset 0 0 0 1px var(--blue, #0071c1); }
:is(#quote-app, body) .ui-cal-g button.sel,
:is(#quote-app, body) .ui-cal-g button.sel:hover { background: var(--blue, #0071c1); color: #fff; font-weight: 700; }
:is(#quote-app, body) .ui-cal-g button:disabled { opacity: .25; cursor: not-allowed; }
:is(#quote-app, body) .ui-cal-g.mon,
:is(#quote-app, body) .ui-cal-g.yr { grid-template-columns: repeat(3, 1fr); gap: 6px; }
:is(#quote-app, body) .ui-cal-g.mon button,
:is(#quote-app, body) .ui-cal-g.yr button { height: 42px; }
/* Update 124: daftar tahun yang bisa digeser */
:is(#quote-app, body) .ui-cal-g.yr { position: relative; max-height: 232px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-right: 2px; }
:is(#quote-app, body) .ui-cal-g.yr button.cy { box-shadow: inset 0 0 0 1px var(--blue, #0071c1); }
:is(#quote-app, body) .ui-cal-f { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--ui-bd, var(--line, #c9d3de)); }
:is(#quote-app, body) .ui-cal-f button { padding: 6px 10px; font-weight: 600; color: var(--blue, #0071c1); }
:is(#quote-app, body) .ui-cal-f button:hover { background: var(--soft, #eef5fb); }
@media print {
:is(#quote-app, body) .ui-list,
:is(#quote-app, body) .ui-cal { display: none !important; } }

:is(#quote-app, body) .ui-sel, :is(#quote-app, body) .ui-date { margin-top: .25rem; }
#quote-app .ui-sel { display: block !important; min-width: 0 !important; }   /* di form kuotasi dropdown selalu selebar kolomnya */
:is(.f, .cardgrid, .pgf) .ui-sel, .adm .ui-sel, .adm .ui-date { margin-top: 0; }

/* ===== Rincian premi: "Rp" rata kiri, nominal rata kanan, lurus dari atas ke bawah (juga antar blok, karena lebar kolom sama) ===== */
#quote-app .qm-box { overflow: hidden; }
#quote-app .qm { width: 100%; table-layout: fixed; border-collapse: collapse; }
#quote-app .qm .qm-cc { width: 2rem; }
#quote-app .qm .qm-nn { width: 8rem; }
#quote-app .qm p { margin: 0; }
#quote-app .qm td { padding: .7rem 0; vertical-align: middle; }
#quote-app .qm td:first-child { padding-left: 1rem; padding-right: .5rem; }
#quote-app .qm td:last-child { padding-right: 1rem; }
#quote-app .qm tr + tr td { border-top: 1px solid var(--line, #dbe6f0); }
#quote-app .qm .qm-c { text-align: left; white-space: nowrap; }
#quote-app .qm .qm-n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
#quote-app .qm tr.qm-tot td { font-weight: 600; }
#quote-app .qm tr.qm-hl td { background: var(--soft, #eef5fb); font-weight: 600; }

/* ===== Pratinjau di admin (Teks kuotasi): halaman yang sama dengan pengunjung, teksnya jadi kolom isian ===== */
.qpv { font: 400 16px/1.65 var(--af, system-ui, sans-serif); color: var(--ink, #111827); background: var(--bg, #fff); border: 1px dashed #9db4cc; border-radius: 14px; padding: 4px 0 24px; margin: 0 0 18px; }
.qpv .wrap { width: min(var(--w-content, 1160px), 100% - 32px); margin-inline: auto; }
.qpv .qf { border: 3px solid var(--blue, #0071c1); border-radius: 20px; padding: 12px clamp(14px, 6vw, 78px) 22px; margin: 18px 0 0; background: var(--card, #fff); }
.qpv .qt { background: var(--blue, #0071c1); color: #fff; text-align: center; border-radius: 12px; padding: 10px 16px 9px; margin: 0 0 14px; }
.qpv .qt h1 { display: inline-block; position: relative; margin: 0; padding-bottom: 8px; color: #fff; font: 700 clamp(1.25rem, 3vw, 1.75rem)/1 'Archivo Narrow', 'Archivo', system-ui, sans-serif; text-transform: none; letter-spacing: .01em; }
.qpv .qt h1::before, .qpv .qt h1::after { content: ""; position: absolute; bottom: 0; height: 3px; }
.qpv .qt h1::before { left: -6px; width: 24px; background: radial-gradient(circle at 1.5px 50%, #fff 1.5px, transparent 2.1px) 0 0/8px 3px repeat-x; }
.qpv .qt h1::after { left: 20px; right: -6px; background: #fff; border-radius: 3px; }
.qpv .qv-cap { margin: 22px 0 6px; padding-top: 10px; border-top: 1px dashed #9db4cc; font-size: 13px; font-weight: 700; color: #51606f; text-transform: none; letter-spacing: 0; }
/* kontrol asli di pratinjau tidak bisa dipakai; hanya kolom teks (data-qx) yang aktif */
.qpv input:disabled, .qpv select:disabled { pointer-events: none; opacity: 1; }
.qpv .qm-box, .qpv .qm { pointer-events: auto; }
#quote-app .qx { display: inline-block; box-sizing: border-box; max-width: 100%; min-width: 3ch; margin: 0; padding: 1px 6px; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; text-align: inherit; line-height: inherit; vertical-align: baseline; background: rgba(255, 244, 120, .38); border: 1px dashed #b59f00; border-radius: 5px; }
#quote-app .qx:hover { background: rgba(255, 244, 120, .75); }
#quote-app .qx:focus { outline: 2px solid #5db3ff; outline-offset: 0; background: #fff; color: #111; text-transform: none; }
#quote-app textarea.qx { display: block; width: 100%; resize: none; overflow: hidden; white-space: pre-wrap; }
#quote-app .qt .qx, #quote-app [class*="bg-teal-700"] .qx, #quote-app [class*="bg-teal-700"].qx, #quote-app [class*="bg-[var(--wa)]"] .qx { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .75); color: #fff; }
#quote-app .qt .qx:focus, #quote-app [class*="bg-teal-700"] .qx:focus, #quote-app [class*="bg-[var(--wa)]"] .qx:focus { background: #fff; color: #111; }
#quote-app .qt .qx { text-align: center; }
#quote-app .qx-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 46px; margin-top: .25rem; padding: 6px 10px; border: 1px solid var(--ui-bd, var(--line, #c9d3de)); border-radius: 8px; background: var(--bg, #fff); }

/* ===== Form MiUHC & permintaan quotation: tombol, pilihan terpilih, isian tertanggung ===== */
#quote-app { --qsoft: #e1effb; --qsoft-bd: #8fc3ec; --qorange: #e06a00; --qorange-d: #bf5a00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #quote-app { --qsoft: #17324a; --qsoft-bd: #2f6a9c; } }
:root[data-theme="dark"] #quote-app { --qsoft: #17324a; --qsoft-bd: #2f6a9c; }
#quote-app .qbtn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; box-sizing: border-box; border: 0; border-radius: .75rem; padding: .9rem 1rem; font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; color: #fff; text-decoration: none; text-align: center; cursor: pointer; }
#quote-app .qbtn-sm { width: auto; border-radius: .5rem; padding: .5rem .85rem; font-size: .875rem; }
#quote-app .qbtn-blue { background: var(--blue, #0071c1); }
#quote-app .qbtn-blue:hover { background: var(--blue-d, #005a99); }
#quote-app .qbtn-wa { background: var(--wa, #1a9d4f); }
#quote-app .qbtn-orange { background: var(--qorange); }
#quote-app .qbtn-orange:hover { background: var(--qorange-d); }
#quote-app .qbtn:disabled { background: #cbd5e1; color: #64748b; cursor: not-allowed; opacity: .6; }
#quote-app .qbtn-ic { width: 1.35rem; height: 1.35rem; flex: none; }
#quote-app .qact { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
#quote-app .qact.one { grid-template-columns: 1fr; }
#quote-app .qact form { display: contents; }
/* tombol hapus tertanggung: ✕ merah */
#quote-app .qdel { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: #d40000; cursor: pointer; }
#quote-app .qdel svg { width: 18px; height: 18px; }
/* plan dan deductible terpilih: kuning stabilo */
#quote-app .qsel input:checked + div { background: var(--hl, #f2ff00); border-color: var(--hl-edge, #d4e000); box-shadow: 0 0 0 2px var(--hl-edge, #d4e000); color: var(--hl-ink, #111); }
#quote-app .qsel input:checked + div .text-slate-500 { color: var(--hl-ink, #111); }
#quote-app .qsel input:focus-visible + div { outline: 2px solid var(--blue, #0071c1); outline-offset: 2px; }
#quote-app .qsel-row:has(input:checked) { background: var(--hl, #f2ff00); border-color: var(--hl-edge, #d4e000); box-shadow: 0 0 0 2px var(--hl-edge, #d4e000); color: var(--hl-ink, #111); }
/* jenis kelamin dan tanggal lahir: biru lembut */
#quote-app .qrow .ui-sel-btn, #quote-app .qrow .ui-date-in { background: var(--qsoft); border-color: var(--qsoft-bd); }

/* ===== Revisi: rincian premi di mobile, kotak header biru, isian abu-abu, nomor HP dengan kode negara ===== */
#quote-app { --qgrey: #f6f7f9; --qgrey-bd: #e3e6ea; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #quote-app { --qgrey: #1a222c; --qgrey-bd: #2b3644; } }
:root[data-theme="dark"] #quote-app { --qgrey: #1a222c; --qgrey-bd: #2b3644; }
/* tabel CMS punya min-width 560px: di layar kecil nominal terpotong. Di sini tabel rincian harus muat di kotaknya. */
#quote-app .qm { min-width: 0 !important; }
#quote-app .qm td { border-right: 0 !important; cursor: default; }
#quote-app .qm tr.qm-disc td { color: #c80000; font-weight: 600; }
#quote-app .qm tr.qm-hl td { background: var(--blue, #0071c1); color: #fff; font-weight: 600; }
/* kotak header isian: judul di kotak biru, isian menempel di bawahnya */
#quote-app .qfld { display: block; margin: 0; }
#quote-app .qfld-h { display: block; padding: .4rem .8rem; border-radius: 10px 10px 0 0; background: var(--blue, #0071c1); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; line-height: 1.3; }
#quote-app .qfld .ui-sel, #quote-app .qfld .ui-date { margin-top: 0; }
#quote-app .qfld > input[type="text"], #quote-app .qfld .ui-sel-btn, #quote-app .qfld .ui-date-in {
  display: block; width: 100%; box-sizing: border-box; min-height: 46px; margin: 0; padding: 10px 38px 10px 12px;
  border: 1px solid var(--blue, #0071c1); border-top: 0; border-radius: 0 0 10px 10px; background: var(--qgrey); color: var(--ink, #111); font: inherit;
}
#quote-app .qfld > input[type="text"] { padding-right: 12px; }
#quote-app .qfld > input[type="text"]:focus-visible { outline: 2px solid var(--blue, #0071c1); outline-offset: 1px; }
#quote-app .qfld-name { margin-bottom: 1.25rem; }
#quote-app .qgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
#quote-app .qgrid2.mt-3 { margin-top: .75rem; }
#quote-app .qrow { padding: 1rem; }
@media (max-width: 420px) { #quote-app .qgrid2 { gap: .6rem; } #quote-app .qfld-h { font-size: .7rem; padding: .4rem .6rem; } }
#quote-app .qrow .ui-sel-btn, #quote-app .qrow .ui-date-in { background: var(--qgrey); border-color: var(--blue, #0071c1); }
#quote-app .qfld .qx { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .75); color: #fff; }
/* nomor HP: kotak kode negara + nomor mulai dari 8xxx */
#quote-app .qphone { display: flex; gap: .5rem; margin-top: .25rem; }
#quote-app .qphone input { margin: 0; min-height: 46px; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--ui-bd, var(--line, #c9d3de)); border-radius: 8px; background: var(--bg, #fff); color: var(--ink, #111); font: inherit; }
#quote-app .qphone .qcc { flex: 0 0 4.6rem; width: 4.6rem; text-align: center; background: var(--qgrey); font-weight: 600; }
#quote-app .qphone .qpn { flex: 1 1 auto; min-width: 0; }

/* ===== Revisi 3 ===== */
/* Rincian: "Rp" + 2 spasi + nominal (dianggap 9 digit XXX.XXX.XXX, rata kanan), dalam satu sel */
#quote-app .qm { table-layout: auto; }
#quote-app .qm td.qm-a { width: 1%; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; padding-left: .5rem; }
#quote-app .qm .qm-rp { margin-right: .6em; }
#quote-app .qm .qm-num { display: inline-block; min-width: 10.6ch; text-align: right; }
/* header kotak biru: huruf awal kapital saja, tidak boleh turun baris */
#quote-app .qfld-h { text-transform: none; letter-spacing: 0; font-size: .875rem; white-space: nowrap; }
@media (max-width: 420px) { #quote-app .qfld-h { font-size: .8rem; } }
/* dua kolom: bila header tidak muat satu baris, kolom di sebelahnya yang turun */
#quote-app .qgrid2 { display: flex; flex-wrap: wrap; gap: 1rem; }
#quote-app .qgrid2 > .qfld { flex: 1 1 45%; min-width: min-content; }
@media (max-width: 420px) { #quote-app .qgrid2 { gap: .75rem; } }
/* isian terpilih: tanpa garis tambahan, cukup latar biru lembut */
#quote-app .qfld > input[type="text"]:focus, #quote-app .qfld > input[type="text"]:focus-visible,
#quote-app .qfld .ui-sel-btn:focus, #quote-app .qfld .ui-sel-btn:focus-visible, #quote-app .qfld .ui-sel.open .ui-sel-btn,
#quote-app .qfld .ui-date-in:focus, #quote-app .qfld .ui-date-in:focus-visible,
#quote-app .qrow .ui-sel-btn:focus, #quote-app .qrow .ui-date-in:focus { outline: none; box-shadow: none; background: var(--qsoft); }
#quote-app .qm-box :focus-visible { outline: none; }
/* nomor HP: kode negara satu kotak dengan nomor, dipisah garis tegak */
#quote-app .qphone { display: flex; align-items: stretch; gap: 0; margin-top: .25rem; border: 1px solid var(--ui-bd, var(--line, #c9d3de)); border-radius: 8px; background: var(--bg, #fff); overflow: hidden; }
#quote-app .qphone input { border: 0; border-radius: 0; background: transparent; min-height: 44px; box-shadow: none; outline: none; margin: 0; padding: 10px 10px; }
#quote-app .qphone .qcc { flex: 0 0 3.5rem; width: 3.5rem; padding-left: 4px; padding-right: 4px; text-align: center; font-weight: 600; border-right: 1px solid var(--ui-bd, var(--line, #c9d3de)); }
#quote-app .qphone .qpn { flex: 1 1 auto; min-width: 0; }
#quote-app .qphone:focus-within { background: var(--qsoft); }
#quote-app input[name="lead_name"]:focus, #quote-app input[name="lead_email"]:focus { outline: none; background: var(--qsoft); }
/* deductible: radio sejajar judul; keterangan di baris bawah (satu baris di layar lebar) */
#quote-app .qsel-row { align-items: flex-start; }
#quote-app .qsel-row input[type="radio"] { margin-top: .2rem; flex: none; }
#quote-app .qsel-row input[type="checkbox"] { flex: none; }
#quote-app .qd-n, #quote-app .qd-d { display: block; }
#quote-app .qd-n { font-weight: 500; }
/* Keterangan deductible (Deductible Rp ...) selalu di bawah nama SMART / SMART Lite, seperti keterangan di kartu plan */
#quote-app .qd-d:empty { display: none; }

/* ===== Revisi 4 ===== */
/* header judul dua baris: nama produk (garis bawah selebar nama, minimal selebar "Instant Quote") + Instant Quote di bawahnya */
.qt .qt-w { display: inline-grid; justify-items: stretch; }
.qt .qt-w h1 { display: block; }
.qt .qt-w p { margin: 4px 0 0; }
/* pilihan mode pembayaran terpilih: kuning stabilo */
#quote-app .qm tr.qm-hl td { background: var(--hl, #f2ff00); color: var(--hl-ink, #111); font-weight: 600; }
/* kartu plan seperti deductible: radio sejajar nama plan, area dan limit di baris sendiri */
#quote-app .qsel-row:has(input:checked) .text-slate-500 { color: var(--hl-ink, #111); }
#quote-app .qpl-r { flex: none; margin: .125rem 0 0; }
/* isian pemohon: header biru seperti kolom lain */
#quote-app .qfld > input[type="email"] {
  display: block; width: 100%; box-sizing: border-box; min-height: 46px; margin: 0; padding: 10px 12px;
  border: 1px solid var(--blue, #0071c1); border-top: 0; border-radius: 0 0 10px 10px; background: var(--qgrey); color: var(--ink, #111); font: inherit;
}
#quote-app .qfld > input[type="email"]:focus, #quote-app .qfld > input[type="text"]:focus { outline: none; box-shadow: none; background: var(--qsoft); }
#quote-app .qfld .qphone { margin-top: 0; border: 1px solid var(--blue, #0071c1); border-top: 0; border-radius: 0 0 10px 10px; background: var(--qgrey); }

/* tombol Hitung premi belum aktif: pudar dan tidak bisa diklik */
#quote-app #qsubmit:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }

/* rentang tahun di kalender hanya keterangan (ganti rentang lewat panah), jadi tanpa panah kecil dan tanpa efek tombol */
:is(#quote-app, body) .ui-cal-h .ttl.nb::after { content: none; }
:is(#quote-app, body) .ui-cal-h .ttl.nb:hover { background: transparent; }
:is(#quote-app, body) .ui-cal-h .ui-nav { width: 40px; height: 40px; }

/* tombol berupa tautan (halaman bernomor) */
#quote-app a.qbtn { text-decoration: none; color: #fff; }
#quote-app .qbtn-blue { color: #fff; }

/* verifikasi email (kode 6 digit) dan tombol sekunder */
#quote-app .qbtn-ghost { background: #fff; color: var(--blue, #0071c1); border: 1px solid var(--blue, #0071c1); font-weight: 600; }
#quote-app .qbtn-ghost:hover { background: var(--qsoft, #eef6fc); }
#quote-app .qbtn-ghost:disabled { background: #f1f5f9; color: #94a3b8; border-color: #cbd5e1; cursor: not-allowed; }
#quote-app .qfld > input.qotp { display: block; width: 100%; box-sizing: border-box; padding: .8rem; text-align: center; letter-spacing: .5em; font-size: 1.5rem; font-weight: 700; border: 1px solid var(--blue, #0071c1); border-top: 0; border-radius: 0 0 10px 10px; background: var(--qgrey, #f4f6f8); }
#quote-app .qfld > input.qotp:focus { outline: none; box-shadow: none; background: var(--qsoft, #eef6fc); }

/* judul "No. Quotation: XXXX" dikecilkan mengikuti lebar layar agar muat satu baris */
#quote-app .qref { white-space: nowrap; font-size: clamp(.7rem, 3.4vw, 1rem); }

/* tombol Ubah Plan / Hitung Ulang: satu baris, ikon dekat dengan tulisan, mengecil di layar sempit */
#quote-app .qact .qbtn { gap: .4rem; white-space: nowrap; padding-left: .5rem; padding-right: .5rem; }
#quote-app .qact .qbtn span { white-space: nowrap; }
@media (max-width: 520px) {
  #quote-app .qact { gap: .5rem; }
  #quote-app .qact .qbtn { gap: .3rem; padding: .75rem .4rem; font-size: clamp(.78rem, 3.6vw, .95rem); }
  #quote-app .qact .qbtn .qbtn-ic { width: 1.05rem; height: 1.05rem; }
}

/* update 173: tombol Ubah Data dan Reset Data (satu tombol lebar penuh) memakai ukuran huruf, jarak, dan ikon yang sama dengan tombol Kirim ke Email, di desktop dan HP */
#quote-app .qact.one .qbtn { gap: .6rem; padding: .9rem 1rem; font-size: 1rem; }
#quote-app .qact.one .qbtn .qbtn-ic { width: 1.35rem; height: 1.35rem; }

/* Form permintaan quote: Nama, Nomor HP, Email sebaris (masing-masing 1/3) di layar lebar; 1 baris per kolom di HP. Kolomnya putih. */
#quote-app .qlead { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 768px) { #quote-app .qlead { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; } }
#quote-app .qlead .qfld { min-width: 0; }
#quote-app .qlead .qfld-h { white-space: normal; }
#quote-app .qlead .qfld > input, #quote-app .qlead .qphone, #quote-app .qlead .qphone .qcc, #quote-app .qlead .qphone .qpn { background: var(--bg, #fff); }
/* Nama plan tebal */
#quote-app .qpl > span:first-child { font-weight: 700; }

/* Polis: tanggal Mulai dan Pembayaran putih (fokus tetap biru muda) */
#quote-app #sec-policy .qfld .ui-date-in, #quote-app #sec-policy .qfld .ui-sel-btn { background: var(--bg, #fff); }
#quote-app #sec-policy .qfld .ui-date-in:focus, #quote-app #sec-policy .qfld .ui-sel-btn:focus, #quote-app #sec-policy .qfld .ui-sel.open .ui-sel-btn { background: var(--qsoft); }

/* Jarak baris tombol Ubah Plan / Hitung Ulang dari tombol di atasnya = jarak kolom isian ke tombol Kirim (1rem) */
#quote-app .qact { margin-top: 1rem; }

/* Ubah Plan: oranye lembut, huruf dan garis oranye tua. Hitung Ulang: merah lembut, huruf dan garis merah tua. */
#quote-app .qbtn-osoft, #quote-app a.qbtn-osoft { background: #fff1e0; color: #a14a00; border: 1.5px solid #a14a00; }
#quote-app .qbtn-osoft:hover, #quote-app a.qbtn-osoft:hover { background: #ffe3c2; }
#quote-app .qbtn-rsoft, #quote-app a.qbtn-rsoft { background: #fdeaea; color: #a51d1d; border: 1.5px solid #a51d1d; }
#quote-app .qbtn-rsoft:hover, #quote-app a.qbtn-rsoft:hover { background: #fad4d4; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #quote-app .qbtn-osoft, :root:not([data-theme="light"]) #quote-app a.qbtn-osoft { background: #3a2a14; color: #ffb866; border-color: #ffb866; }
  :root:not([data-theme="light"]) #quote-app .qbtn-rsoft, :root:not([data-theme="light"]) #quote-app a.qbtn-rsoft { background: #3a1c1c; color: #ff9b9b; border-color: #ff9b9b; }
}

/* Tertanggung: Nama, Jenis Kelamin, Tanggal Lahir sebaris (1/3) di desktop; di HP Nama di atas, lalu Jenis Kelamin dan Tanggal Lahir 50:50 */
#quote-app .qins { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
#quote-app .qins .qfld-name { grid-column: 1 / -1; margin-bottom: 0; }
#quote-app .qins .qgrid2 { display: contents; }
#quote-app .qins .qfld { min-width: 0; }
@media (min-width: 768px) {
  #quote-app .qins { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  #quote-app .qins .qfld-name { grid-column: auto; }
}

/* Kotak permintaan quote: Nama, HP, Email dan tombol Kirim berada dalam satu container */
#quote-app .qbox { padding: 1rem; border: 1.5px solid var(--blue, #0071c1); border-radius: 14px; background: var(--qgrey); }
#quote-app .qbox .qfld-h { border-radius: 10px 10px 0 0; }
/* tombol Ubah Plan / Hitung Ulang kini di atas kotak: beri jarak ke kotak */
#quote-app .qact + #minta { margin-top: 1.5rem; }

/* Kartu plan: hanya nama plan yang tampil; keterangan terbuka (dengan transisi) saat plan dipilih dan menutup saat plan lain dipilih */
/* Keterangan plan (limit, tipe kamar) selalu tampil, tidak menunggu kartu diklik */
#quote-app .qpl-d { display: grid; grid-template-rows: 1fr; opacity: 1; }
#quote-app .qpl-di { display: block; min-height: 0; overflow: hidden; }

/* Tombol (i) keterangan (update 105): biru, huruf putih, tepat di kanan judul */
:is(#quote-app, body) .qi { display: inline-grid; place-items: center; width: 19px; height: 19px; margin-left: 7px; padding: 0; border: 0; border-radius: 50%; background: #0071c1; color: #fff; font: italic 700 12px/1 Georgia, "Times New Roman", serif; text-transform: none; letter-spacing: 0; cursor: pointer; vertical-align: middle; flex: none; }
:is(#quote-app, body) .qi:hover { background: #005a9c; }
:is(#quote-app, body) .qi.qi-inv { background: #fff; color: #0071c1; }   /* update 191: header berlatar gelap */
:is(#quote-app, body) .qi.qi-inv:hover { background: #e3eefa; }
[data-qi].qd-d, p[data-qi] { display: none !important; }
dialog.qi-d { width: min(440px, calc(100vw - 24px)); max-height: 88vh; padding: 0; border: 0; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.35); overflow: hidden; color: #111; font-size: .9rem; }
dialog.qi-d[open] { display: flex; flex-direction: column; }
dialog.qi-d::backdrop { background: rgba(0,0,0,.5); }
.qi-h { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem .6rem .6rem 1rem; background: #dcebfa; border-bottom: 1px solid #b9d3ee; color: #0a3466; }   /* Update 188: kepala popup biru muda, judul biru tua */
:is(#quote-app, body) .qi-x { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #d40000; color: #fff; cursor: pointer; }
:is(#quote-app, body) .qi-x:hover { background: #b30000; }
.qi-x svg { width: 18px; height: 18px; }
.qi-b { overflow: auto; padding: .8rem 1rem 1rem; }
.qi-b p { margin: 0 0 .6rem; line-height: 1.5; }
.qi-b p:last-child { margin-bottom: 0; }

/* Update 147: mata uang + nominal tidak boleh terpisah baris (teks lain disatukan oleh ui.js lewat NBSP) */
#quote-app .mv-cs, #quote-app .prp-cs, #quote-app .qm-rp, #quote-app .qm-num, #quote-app .kpd-v { white-space: nowrap; }

/* Update 184: isi #qlive diganti saat hitung ulang; tanpa ini browser menggeser layar sendiri (scroll anchoring) */
#quote-app { overflow-anchor: none; }

/* Update 188: kepala semua popup (keterangan (i), Tabel Manfaat, info) biru muda + judul biru tua; X merah tetap satu-satunya penutup */
dialog .qtbm-h, dialog .qi-h { background: #dcebfa; border-bottom: 1px solid #b9d3ee; color: #0a3466; }
dialog .qtbm-h b, dialog .qi-h b { color: #0a3466; }
dialog .qtbm-tt small { color: #3f6592; }

/* Update 192: keterangan kecil di bawah label baris (mis. "Total Premi" + "Selama Masa Pembayaran 20 Tahun") */
#quote-app .qm .qm-sub { display: block; margin-top: 2px; font-size: .75rem; font-weight: 400; line-height: 1.3; color: var(--mute, #64748b); }
/* Update 192: di HP jarak tepi layar ke kartu/tabel dipersempit (padding kiri-kanan kotak biru Instant Quote), semua Instant Quote */
@media (max-width: 767px) { body .qf { padding-left: 12px; padding-right: 12px; } }   /* Update 193: sama dengan jarak atas (12px) */
/* Update 192: layar sempit - bantalan sel tabel Rincian dirapatkan agar IDR dan nominal tidak terpotong */
@media (max-width: 420px) {
  #quote-app .qm td:first-child { padding-left: .7rem; padding-right: .35rem; }
  #quote-app .qm td:last-child { padding-right: .7rem; }
  #quote-app .qm td.qm-a { padding-left: .3rem; }
  #quote-app .qm .qm-rp { margin-right: .45em; }
}
/* Update 192: lebar tanda mata uang dibuat tetap (muat IDR tebal) agar IDR sejajar persis di baris tebal maupun biasa */
#quote-app .qm .qm-rp { display: inline-block; min-width: 1.85em; }
@media (max-width: 340px) { #quote-app .qm td { font-size: .8125rem; } #quote-app .qm .qm-rp { min-width: 0; } }

/* ===== Update 195: tombol Instant Quote tampil 3D halus (gradien, kilap atas, tepi bawah lebih gelap, bayangan lembut, naik saat hover, turun saat ditekan).
   Selaras tombol 3D situs (Update 180/183). Warna dasar dan ukuran tiap tombol tidak berubah; tombol nonaktif tetap datar dan pudar. ===== */
#quote-app .qbtn, #quote-app #qsubmit { transition: transform .15s ease, box-shadow .15s ease, filter .2s ease; --edge: rgba(0, 0, 0, .28); }
/* tombol berwarna penuh: Kirim ke Email, Lanjutkan via WhatsApp, Instant Quote oranye, Pilih Plan/Pertanggungan */
#quote-app .qbtn-blue, #quote-app .qbtn-blue:hover, #quote-app .qbtn-wa, #quote-app .qbtn-orange, #quote-app .qbtn-orange:hover, #quote-app #qsubmit {
  background-image: linear-gradient(180deg, rgba(255,255,255,.32) 0%, rgba(255,255,255,.07) 48%, rgba(0,0,0,.10) 52%, rgba(0,0,0,.03) 100%);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(0,0,0,.18), 0 3px 0 var(--edge), 0 6px 12px rgba(0,0,0,.18);
}
/* tombol lembut: Ubah Data (oranye muda) dan Reset Data (merah muda) */
#quote-app .qbtn-osoft, #quote-app .qbtn-osoft:hover, #quote-app .qbtn-rsoft, #quote-app .qbtn-rsoft:hover {
  background-image: linear-gradient(180deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,.1) 55%, rgba(0,0,0,.05) 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,.06), 0 3px 0 var(--edge), 0 6px 10px rgba(0,0,0,.10);
}
#quote-app .qbtn-osoft { --edge: rgba(161, 74, 0, .5); }
#quote-app .qbtn-rsoft { --edge: rgba(165, 29, 29, .5); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #quote-app .qbtn-osoft, :root:not([data-theme="light"]) #quote-app .qbtn-rsoft { background-image: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0) 55%, rgba(0,0,0,.15)); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -2px 0 rgba(0,0,0,.2), 0 3px 0 var(--edge), 0 6px 10px rgba(0,0,0,.3); } }
:root[data-theme="dark"] #quote-app .qbtn-osoft, :root[data-theme="dark"] #quote-app .qbtn-rsoft { background-image: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0) 55%, rgba(0,0,0,.15)); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -2px 0 rgba(0,0,0,.2), 0 3px 0 var(--edge), 0 6px 10px rgba(0,0,0,.3); }
/* hover: naik sedikit; ditekan: turun, bayangan masuk */
#quote-app .qbtn-blue:hover, #quote-app .qbtn-wa:hover, #quote-app .qbtn-orange:hover, #quote-app #qsubmit:hover,
#quote-app .qbtn-osoft:hover, #quote-app .qbtn-rsoft:hover { transform: translateY(-1px); filter: brightness(1.05); }
#quote-app .qbtn-blue:active, #quote-app .qbtn-wa:active, #quote-app .qbtn-orange:active, #quote-app #qsubmit:active,
#quote-app .qbtn-osoft:active, #quote-app .qbtn-rsoft:active { transform: translateY(3px); filter: none; box-shadow: inset 0 2px 4px rgba(0,0,0,.3), 0 0 0 var(--edge), 0 2px 4px rgba(0,0,0,.18); }
#quote-app .qbtn:focus-visible, #quote-app #qsubmit:focus-visible { outline: 3px solid rgba(0, 113, 193, .45); outline-offset: 3px; }
/* nonaktif: datar dan pudar (Update 173) */
#quote-app .qbtn:disabled, #quote-app #qsubmit:disabled { background-image: none; box-shadow: none; text-shadow: none; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { #quote-app .qbtn, #quote-app #qsubmit { transition: none; } #quote-app .qbtn:hover, #quote-app .qbtn:active, #quote-app #qsubmit:hover, #quote-app #qsubmit:active { transform: none; } }

/* ===== Update 208: tombol prev/next kalender jelas dan proporsional. Kelas diganti .ui-nav karena .nav bentrok dengan menu situs (display:none di mobile). ===== */
:is(#quote-app, body) .ui-cal-h { gap: 8px; }
:is(#quote-app, body) .ui-cal-h .ui-nav { flex: none; box-sizing: border-box; display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; background: var(--soft, #eef5fb); border: 1.5px solid var(--blue, #0071c1); color: var(--blue, #0071c1); transition: background .12s, color .12s, transform .08s; }
:is(#quote-app, body) .ui-cal-h .ui-nav svg { display: block; width: 20px; height: 20px; }
:is(#quote-app, body) .ui-cal-h .ui-nav:hover:not(:disabled) { background: var(--blue, #0071c1); color: #fff; }
:is(#quote-app, body) .ui-cal-h .ui-nav:active:not(:disabled) { transform: scale(.92); }
:is(#quote-app, body) .ui-cal-h .ui-nav:focus-visible { outline: 3px solid rgba(0, 113, 193, .45); outline-offset: 2px; }
:is(#quote-app, body) .ui-cal-h .ui-nav:disabled { opacity: .35; cursor: not-allowed; background: transparent; border-color: var(--ui-bd, #c9d3de); color: var(--mute, #666); }
:is(#quote-app, body) .ui-cal-h .t { align-items: center; min-width: 0; }
:is(#quote-app, body) .ui-cal-h .ttl { padding: 8px 6px; }
:is(#quote-app, body) .ui-cal { max-width: calc(100vw - 16px); }

/* ===== Update 209: pilihan bulan/tahun di header kalender berupa box (tanpa panah kecil), klik box membuka daftar. Sama di mobile dan desktop. ===== */
:is(#quote-app, body) .ui-cal-h .ttl::after { content: none; }
:is(#quote-app, body) .ui-cal-h .t { gap: 6px; }
:is(#quote-app, body) .ui-cal-h .ttl { box-sizing: border-box; min-height: 42px; padding: 0 12px; background: #fff; border: 1.5px solid var(--blue, #0071c1); border-radius: 10px; color: var(--ink, #111); font-weight: 700; white-space: nowrap; transition: background .12s; }
:is(#quote-app, body) .ui-cal-h .ttl:hover { background: var(--soft, #eef5fb); }
:is(#quote-app, body) .ui-cal-h .ttl:active { background: #dcebf8; }
:is(#quote-app, body) .ui-cal-h .ttl:focus-visible { outline: 3px solid rgba(0, 113, 193, .45); outline-offset: 2px; }
:is(#quote-app, body) .ui-cal-h .ttl.nb { background: transparent; border-color: transparent; cursor: default; }
:is(#quote-app, body) .ui-cal-h .ttl.nb:hover { background: transparent; }
