/* ==========================================================================
   D Health Lite — site design system (loaded after Flatsome's CSS)
   Sections are built from UX Blocks; these classes are applied on Flatsome
   sections / rows / cols ("Custom Class" field in UX Builder).
   ========================================================================== */

:root {
	--dhl-navy: #0b3b6e;
	--dhl-navy-2: #12508f;
	--dhl-blue: #2a7de1;
	--dhl-sky: #eaf3ff;
	--dhl-sky-2: #f5f9ff;
	--dhl-pink: #e6007e;
	--dhl-pink-2: #c2006a;
	--dhl-pink-soft: #fff0f7;
	--dhl-line-green: #06c755;
	--dhl-teal: #0e9f9a;
	--dhl-amber: #f59e0b;
	--dhl-ink: #14294a;
	--dhl-text: #334155;
	--dhl-muted: #64748b;
	--dhl-border: #e3e9f2;
	--dhl-bg: #f7f9fc;
	--dhl-radius: 18px;
	--dhl-radius-sm: 12px;
	--dhl-shadow: 0 18px 40px -18px rgba(11, 59, 110, .28);
	--dhl-shadow-sm: 0 6px 18px -8px rgba(11, 59, 110, .22);
}

/* ---------- Base typography (Thai) ---------- */
body { color: var(--dhl-text); line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .heading-font { color: var(--dhl-ink); line-height: 1.35; letter-spacing: 0; }
.dark h1, .dark h2, .dark h3, .dark h4, .dark p, .dark li { color: #fff; }
p { margin-bottom: 1em; }
a { color: var(--dhl-blue); }
strong, b { font-weight: 600; }
.dhl-hl { color: var(--dhl-pink); }
.dhl-hl-navy { color: var(--dhl-navy); }
.dhl-nowrap { white-space: nowrap; }
.num, .dhl-num { font-variant-numeric: tabular-nums; }

.dhl-h1 { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.9rem); font-weight: 700; margin-bottom: .45em; }
.dhl-h2 { font-size: clamp(1.45rem, 1.05rem + 1.5vw, 2.15rem); font-weight: 700; margin-bottom: .4em; }
.dhl-h3 { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); font-weight: 600; margin-bottom: .35em; }
.dhl-lead { font-size: 1.12em; color: var(--dhl-muted); max-width: 46em; }
.text-center .dhl-lead, .dhl-lead.text-center { margin-left: auto; margin-right: auto; }
.dhl-small, .dhl-note { font-size: .86em; color: var(--dhl-muted); }

.dhl-eyebrow {
	display: inline-flex; align-items: center; gap: .45em;
	padding: .3em .9em; border-radius: 99px;
	background: var(--dhl-pink-soft); color: var(--dhl-pink-2);
	font-size: .85em; font-weight: 600; margin-bottom: .9em;
}
.dhl-eyebrow--navy { background: var(--dhl-sky); color: var(--dhl-navy); }
.dhl-bg-pink .dhl-eyebrow { background: #fff; }
.dhl-bg-sky .dhl-eyebrow--navy { background: #fff; }
.dark .dhl-eyebrow { background: rgba(255, 255, 255, .14); color: #fff; }

.dhl-section-head { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.dhl-section-head p { color: var(--dhl-muted); }

/* ---------- Section backgrounds ---------- */
.section.dhl-bg-soft { background: var(--dhl-bg); }
.section.dhl-bg-sky { background: var(--dhl-sky-2); }
.section.dhl-bg-pink { background: var(--dhl-pink-soft); }

.section.dhl-hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(1200px 520px at 100% 0%, rgba(42, 125, 225, .16), transparent 60%),
		radial-gradient(900px 480px at 0% 100%, rgba(230, 0, 126, .12), transparent 60%),
		linear-gradient(135deg, #fff5fa 0%, #f2f7ff 55%, #eaf3ff 100%);
}
.dhl-hero .dhl-h1 { margin-top: .2em; }

.section.dhl-cta-band {
	background: linear-gradient(120deg, var(--dhl-navy) 0%, var(--dhl-navy-2) 55%, #1f6fcf 100%);
	position: relative; overflow: hidden;
}
.section.dhl-cta-band::after {
	content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
	background: radial-gradient(circle, rgba(230, 0, 126, .35), transparent 70%); pointer-events: none;
}
.dhl-cta-band .section-content { position: relative; z-index: 1; }

.section.dhl-disclaimer-band { background: #f1f4f9; border-top: 1px solid var(--dhl-border); }
.dhl-disclaimer-band p { font-size: .84em; color: var(--dhl-muted); margin-bottom: .5em; }
.dhl-disclaimer-band strong { color: var(--dhl-ink); }

/* ---------- Chips / badges / stats ---------- */
.dhl-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; padding: 0; list-style: none; }
ul.dhl-chips li, .dhl-chip {
	display: inline-flex; align-items: center; gap: 8px; margin: 0;
	background: #fff; border: 1px solid var(--dhl-border); border-radius: 99px;
	padding: 7px 14px 7px 10px; font-size: .92em; color: var(--dhl-ink); box-shadow: var(--dhl-shadow-sm);
}
.dhl-chips li strong { color: var(--dhl-navy); }
.dhl-badge { display: inline-block; padding: .15em .7em; border-radius: 99px; font-size: .78em; font-weight: 600; background: var(--dhl-pink); color: #fff; vertical-align: middle; }
.dhl-badge--navy { background: var(--dhl-navy); }
.dhl-badge--soft { background: var(--dhl-sky); color: var(--dhl-navy); }

.dhl-stat { text-align: center; }
.dhl-stat strong { display: block; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); color: var(--dhl-navy); line-height: 1.15; font-weight: 700; }
.dhl-stat span { color: var(--dhl-muted); font-size: .92em; }

/* ---------- Icons ---------- */
.dhl-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; vertical-align: middle; line-height: 0; }
.dhl-icon--soft, .dhl-icon--solid { width: 2.6em; height: 2.6em; border-radius: 14px; }
.dhl-icon--soft.dhl-c-pink { background: var(--dhl-pink-soft); color: var(--dhl-pink); }
.dhl-icon--soft.dhl-c-navy { background: var(--dhl-sky); color: var(--dhl-navy); }
.dhl-icon--soft.dhl-c-blue { background: var(--dhl-sky); color: var(--dhl-blue); }
.dhl-icon--soft.dhl-c-green { background: #e7f9ef; color: #0a9a48; }
.dhl-icon--soft.dhl-c-teal { background: #e3f6f5; color: var(--dhl-teal); }
.dhl-icon--soft.dhl-c-amber { background: #fff4dd; color: #b26b00; }
.dhl-icon--solid.dhl-c-pink { background: var(--dhl-pink); color: #fff; }
.dhl-icon--solid.dhl-c-navy { background: var(--dhl-navy); color: #fff; }
.dhl-icon--solid.dhl-c-blue { background: var(--dhl-blue); color: #fff; }
.dhl-icon--solid.dhl-c-green { background: var(--dhl-line-green); color: #fff; }
.dhl-icon--solid.dhl-c-teal { background: var(--dhl-teal); color: #fff; }
.dhl-icon--solid.dhl-c-amber { background: var(--dhl-amber); color: #fff; }
.dhl-icon--plain.dhl-c-pink { color: var(--dhl-pink); }
.dhl-icon--plain.dhl-c-navy { color: var(--dhl-navy); }
.dhl-icon--plain.dhl-c-blue { color: var(--dhl-blue); }
.dhl-icon--plain.dhl-c-green { color: #0a9a48; }
.dhl-icon--plain.dhl-c-teal { color: var(--dhl-teal); }
.dhl-icon--plain.dhl-c-amber { color: #b26b00; }
.dark .dhl-icon--plain { color: #fff; }
.dhl-svg { display: block; }

/* ---------- Cards (put class on a Flatsome column) ---------- */
.col.dhl-card > .col-inner, .dhl-box {
	background: #fff; border: 1px solid var(--dhl-border); border-radius: var(--dhl-radius);
	padding: 26px 24px; box-shadow: var(--dhl-shadow-sm); height: 100%;
	transition: transform .2s ease, box-shadow .2s ease;
}
.col.dhl-card:hover > .col-inner { transform: translateY(-3px); box-shadow: var(--dhl-shadow); }
.col.dhl-card--flat > .col-inner { box-shadow: none; }
.col.dhl-card--flat:hover > .col-inner { transform: none; box-shadow: none; }
.col.dhl-card--sky > .col-inner { background: var(--dhl-sky-2); }
.col.dhl-card--pink > .col-inner { background: var(--dhl-pink-soft); border-color: #ffd0e6; }
.col.dhl-card--featured > .col-inner { border: 2px solid var(--dhl-pink); box-shadow: var(--dhl-shadow); }
.dhl-card .dhl-icon { margin-bottom: 14px; }
.dhl-card h3, .dhl-card h4 { margin-bottom: .35em; }
.dhl-card p:last-child, .dhl-card ul:last-child { margin-bottom: 0; }
.row.dhl-cards { row-gap: 0; }
.row.dhl-cards > .col { padding-bottom: 24px; }

.dhl-feature { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.dhl-feature .dhl-icon { margin: 2px 0 0; }
.dhl-feature h3, .dhl-feature h4 { font-size: 1.05em; margin: 0 0 .2em; }
.dhl-feature p { margin: 0; color: var(--dhl-muted); font-size: .95em; }

/* Persona cards */
.dhl-persona-tag { font-size: .8em; font-weight: 600; color: var(--dhl-pink-2); text-transform: none; margin-bottom: .2em; display: block; }
.dhl-persona-plan { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--dhl-sky-2); font-size: .92em; color: var(--dhl-ink); }
.dhl-persona-plan strong { color: var(--dhl-navy); }

/* ---------- Lists ---------- */
ul.dhl-checks, ul.dhl-xlist { list-style: none; margin: 0 0 1em; padding: 0; }
ul.dhl-checks li, ul.dhl-xlist li { position: relative; padding-left: 30px; margin: 0 0 .55em; }
ul.dhl-checks li::before, ul.dhl-xlist li::before {
	content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 50%;
	background-repeat: no-repeat; background-position: center; background-size: 12px;
}
ul.dhl-checks li::before { background-color: #e7f9ef; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a9a48' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
ul.dhl-xlist li::before { background-color: #fde8e8; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d92d20' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E"); }
.dark ul.dhl-checks li::before { background-color: rgba(255, 255, 255, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* ---------- Steps ---------- */
.dhl-steps { counter-reset: dhlstep; }
.col.dhl-step > .col-inner { position: relative; padding-top: 8px; }
.col.dhl-step > .col-inner::before {
	counter-increment: dhlstep; content: counter(dhlstep);
	display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%; margin-bottom: 14px;
	background: linear-gradient(135deg, var(--dhl-pink), #ff4fa7); color: #fff; font-weight: 700; font-size: 1.15em;
	box-shadow: 0 8px 18px -8px rgba(230, 0, 126, .7);
}

/* ---------- Plan comparison ---------- */
.dhl-plan-price { font-size: 1.9em; font-weight: 700; color: var(--dhl-navy); line-height: 1.2; margin: .2em 0; }
.dhl-plan-price small { font-size: .45em; color: var(--dhl-muted); font-weight: 400; }
.dhl-kv { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: .95em; }
table th, .dhl-kv th, .dhl-kv td { text-transform: none; letter-spacing: 0; }
.dhl-kv th, .dhl-kv td { padding: 9px 0; border-bottom: 1px dashed var(--dhl-border); text-align: left; vertical-align: top; }
.dhl-kv td { text-align: right; font-weight: 600; color: var(--dhl-ink); }
.dhl-kv th { font-weight: 400; color: var(--dhl-muted); padding-right: 12px; }

/* ---------- Tables ---------- */
.dhl-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--dhl-border); border-radius: var(--dhl-radius-sm); background: #fff; margin-bottom: 10px; }
.dhl-table-wrap--tall { max-height: 640px; overflow-y: auto; }
table.dhl-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0; font-size: .93em; }
table.dhl-table caption { caption-side: top; text-align: left; padding: 12px 14px; font-weight: 600; color: var(--dhl-ink); background: var(--dhl-sky-2); border-bottom: 1px solid var(--dhl-border); }
table.dhl-table th, table.dhl-table td { padding: 9px 12px; border: 0; border-bottom: 1px solid var(--dhl-border); white-space: nowrap; }
table.dhl-table thead th { background: var(--dhl-navy); color: #fff; font-weight: 600; font-size: .92em; position: sticky; top: 0; z-index: 2; text-transform: none; letter-spacing: 0; }
table.dhl-table thead tr:nth-child(2) th { top: 39px; background: var(--dhl-navy-2); }
table.dhl-table tbody th { position: sticky; left: 0; background: #fff; z-index: 1; font-weight: 600; color: var(--dhl-ink); }
table.dhl-table tbody tr:nth-child(even) td, table.dhl-table tbody tr:nth-child(even) th { background: #f8fafd; }
table.dhl-table tbody tr:hover td, table.dhl-table tbody tr:hover th { background: #fff4fa; }
table.dhl-table .num { text-align: right; }
table.dhl-table tr.is-renewal td, table.dhl-table tr.is-renewal th { color: var(--dhl-muted); }
table.dhl-table tr.is-current td, table.dhl-table tr.is-current th { background: var(--dhl-pink-soft) !important; }
table.dhl-table--compact th, table.dhl-table--compact td { padding: 7px 10px; }
.dhl-table-note { font-size: .82em; color: var(--dhl-muted); margin: 6px 0 18px; }
table.dhl-benefit-table { table-layout: fixed; }
table.dhl-benefit-table th, table.dhl-benefit-table td { white-space: normal; vertical-align: top; }
table.dhl-benefit-table th:first-child, table.dhl-benefit-table td:first-child { width: 52%; }
table.dhl-benefit-table td:not(:first-child), table.dhl-benefit-table th.num { text-align: center; font-weight: 600; color: var(--dhl-navy); }
table.dhl-benefit-table thead th.num { color: #fff; }

/* ---------- Buttons ---------- */
.button.dhl-btn, .dhl-quote .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.button.dhl-btn .dhl-svg, .dhl-quote .button .dhl-svg { width: 1.15em; height: 1.15em; }
.button.dhl-btn-line, .button.dhl-btn-line:not(.is-outline) { background-color: var(--dhl-line-green); border-color: var(--dhl-line-green); color: #fff; }
.button.dhl-btn-line:hover { background-color: #05b04b; }
.button.dhl-btn-line.is-outline { background: transparent; color: #06a347; border: 2px solid var(--dhl-line-green); }
.button.dhl-btn-line.is-outline:hover { background: var(--dhl-line-green); color: #fff; }
.dhl-btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dhl-btn-row .button { margin: 0; }

/* ---------- Calculator ---------- */
.dhl-quote [hidden], .dhl-quote input[hidden] { display: none !important; }
.dhl-quote { container-type: inline-size; --q-gap: 18px; background: #fff; border: 1px solid var(--dhl-border); border-radius: 22px; padding: 22px; box-shadow: var(--dhl-shadow); color: var(--dhl-text); }
.dhl-quote__title { font-weight: 600; color: var(--dhl-ink); font-size: 1.1em; margin-bottom: 12px; }
.dhl-quote__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.dhl-quote--mini .dhl-quote__grid { grid-template-columns: 1fr; gap: 14px; }
.dhl-quote fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.dhl-quote legend { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--dhl-ink); font-size: 1.05em; margin-bottom: 12px; padding: 0; }
.dhl-q-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--dhl-pink); color: #fff; font-size: .9em; }
.dhl-q-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.dhl-q-field { margin-bottom: 14px; }
.dhl-q-label { display: block; font-size: .9em; font-weight: 600; color: var(--dhl-ink); margin-bottom: 6px; }
.dhl-q-hint { font-size: .82em; color: var(--dhl-muted); margin: 6px 0 0; line-height: 1.55; }
.dhl-q-age { display: flex; align-items: stretch; border: 1px solid var(--dhl-border); border-radius: 12px; overflow: hidden; background: #fff; }
.dhl-q-age input[type="number"] { flex: 1; min-width: 0; border: 0; box-shadow: none; text-align: center; font-size: 1.15em; font-weight: 600; color: var(--dhl-navy); margin: 0; height: 46px; -moz-appearance: textfield; }
.dhl-q-age input::-webkit-outer-spin-button, .dhl-q-age input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dhl-q-stepper { width: 46px; margin: 0; border: 0; background: var(--dhl-sky-2); color: var(--dhl-navy); font-size: 1.3em; line-height: 1; cursor: pointer; padding: 0; min-height: 0; }
.dhl-q-stepper:hover { background: var(--dhl-sky); }
.dhl-q-seg { display: flex; gap: 6px; background: var(--dhl-bg); border: 1px solid var(--dhl-border); border-radius: 12px; padding: 4px; }
.dhl-q-seg label { flex: 1; margin: 0; cursor: pointer; position: relative; }
.dhl-q-seg input { position: absolute; opacity: 0; pointer-events: none; }
.dhl-q-seg span { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 38px; padding: 4px 6px; border-radius: 9px; font-size: .93em; font-weight: 600; color: var(--dhl-muted); transition: background .15s, color .15s; line-height: 1.25; }
.dhl-q-seg span small { font-weight: 400; font-size: .78em; color: var(--dhl-pink-2); }
.dhl-q-seg input:checked + span { background: #fff; color: var(--dhl-navy); box-shadow: 0 2px 8px -3px rgba(11, 59, 110, .35); }
.dhl-q-seg input:focus-visible + span { outline: 2px solid var(--dhl-blue); outline-offset: 1px; }
.dhl-q-seg input:disabled + span { opacity: .45; cursor: not-allowed; }
.dhl-quote select { border-radius: 12px; height: 46px; margin: 0; border-color: var(--dhl-border); box-shadow: none; font-size: .95em; }
.dhl-q-dob { margin: -4px 0 14px; font-size: .92em; }
.dhl-q-dob summary { cursor: pointer; color: var(--dhl-blue); }
.dhl-q-dob__row { display: grid; grid-template-columns: 1fr 1.2fr 1.3fr; gap: 8px; margin-top: 8px; }
.dhl-q-dob select { height: 42px; }
.dhl-q-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.dhl-q-tabs button { margin: 0; flex: 1; border: 1px solid var(--dhl-border); background: #fff; color: var(--dhl-muted); border-radius: 99px; padding: 6px 14px; font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .92em; min-height: 40px; }
.dhl-q-tabs button.is-active { background: var(--dhl-navy); border-color: var(--dhl-navy); color: #fff; }
.dhl-q-prod { border: 1px solid var(--dhl-border); border-radius: 16px; padding: 14px 16px 2px; margin-bottom: 12px; background: #fff; }
.dhl-q-prod[hidden] { display: none; }
.dhl-q-switch { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; cursor: pointer; font-size: .95em; }
.dhl-q-switch input { width: 20px; height: 20px; margin: 0; accent-color: var(--dhl-pink); }
.dhl-q-switch strong { color: var(--dhl-navy); }
.dhl-q-prod:has(input[name="cp_on"]:not(:checked)) .dhl-q-sub,
.dhl-q-prod:has(input[name="dhl_on"]:not(:checked)) .dhl-q-sub { opacity: .45; pointer-events: none; }
.dhl-q-pkg-list { margin: 0 0 8px 1.1em; font-size: .93em; }
.dhl-q-pkg-list li { margin-bottom: .35em; }

.dhl-quote__result { position: sticky; top: 90px; }
.dhl-q-card { border-radius: 18px; padding: 20px; background: linear-gradient(160deg, #0b3b6e 0%, #134f8d 100%); color: #dbe7f7; }
.dhl-q-card__title { color: #fff; font-weight: 600; margin-bottom: 10px; }
.dhl-q-card__title span { font-weight: 400; color: #b9cde8; font-size: .9em; }
.dhl-q-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.dhl-q-line p { margin: 0; }
.dhl-q-line__name { color: #fff; font-weight: 600; font-size: .95em; }
.dhl-q-line__meta { color: #b9cde8; font-size: .8em; line-height: 1.45; }
.dhl-q-line__amt { color: #fff; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dhl-q-line__amt small { font-weight: 400; color: #b9cde8; }
.dhl-q-loading { color: #b9cde8; margin: 0; }
.dhl-q-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 12px; color: #fff; }
.dhl-q-total strong { font-size: 2em; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.dhl-q-total small { font-size: .45em; font-weight: 400; color: #b9cde8; }
.dhl-q-per { color: #cfe0f5; font-size: .88em; margin: 4px 0 10px; }
.dhl-q-alerts:empty { display: none; }
.dhl-q-alert { font-size: .83em; border-radius: 10px; padding: 8px 12px; margin: 0 0 8px; line-height: 1.5; }
.dhl-q-card .dhl-q-alert--info { background: rgba(255, 255, 255, .12); color: #eaf2ff; }
.dhl-q-card .dhl-q-alert--ok { background: rgba(6, 199, 85, .18); color: #d9ffe8; }
.dhl-q-card .dhl-q-alert--warn { background: rgba(245, 158, 11, .22); color: #fff3d6; }
.dhl-q-alert--warn { background: #fff4dd; color: #8a5300; }
.dhl-q-actions { display: grid; gap: 10px; margin: 14px 0 8px; }
.dhl-q-actions .button { margin: 0; }
.dhl-q-base-note { font-size: .78em; color: #b9cde8; margin: 6px 0 0; line-height: 1.5; }
.dhl-q-compare { margin-top: 16px; }
.dhl-q-compare__title { font-weight: 600; color: var(--dhl-ink); font-size: .95em; margin-bottom: 8px; }
.dhl-q-pick { margin: 0; padding: 0; border: 0; background: none; color: var(--dhl-blue); font-weight: 600; text-transform: none; letter-spacing: 0; min-height: 0; line-height: 1.4; font-size: 1em; text-align: left; cursor: pointer; }
tr.is-current .dhl-q-pick { color: var(--dhl-pink-2); }
.dhl-q-disclaimer { font-size: .78em; color: var(--dhl-muted); margin: 14px 0 0; line-height: 1.6; }
.dhl-quote--mini { padding: 18px; }
.dhl-quote--mini .dhl-q-card { padding: 16px; }
.dhl-quote--mini .dhl-q-total strong { font-size: 1.7em; }
.dhl-quote--mini .dhl-quote__result { position: static; }
.dhl-quote--mini .dhl-q-field { margin-bottom: 10px; }

/* ---------- Printable quote summary (calculator → "บันทึก / พิมพ์สรุปผล") ---------- */
.dhl-print { display: none; }
.dhl-q-actions .dhl-q-print { min-height: 40px; font-size: .92em; }
@media print {
	html.dhl-print-mode body > *:not(#dhl-print) { display: none !important; }
	html.dhl-print-mode, html.dhl-print-mode body { padding: 0 !important; margin: 0 !important; background: #fff !important; min-height: 0 !important; height: auto !important; }
	html.dhl-print-mode #dhl-print { display: block !important; }
	#dhl-print { color: #111827; font-size: 11pt; line-height: 1.55; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	#dhl-print .p-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 3px solid #e6007e; padding-bottom: 10px; margin-bottom: 14px; }
	#dhl-print .p-head img { height: 42px; width: auto; }
	#dhl-print .p-brand { display: flex; align-items: center; gap: 10px; }
	#dhl-print .p-brand p { margin: 0; line-height: 1.35; }
	#dhl-print .p-brand strong { display: block; font-size: 13pt; color: #0b3b6e; }
	#dhl-print .p-brand span { display: block; font-size: 9pt; color: #475569; }
	#dhl-print .p-head__r { text-align: right; }
	#dhl-print h1 { font-size: 16pt; color: #0b3b6e; margin: 0; }
	#dhl-print .p-head__r p { margin: 2px 0 0; color: #475569; }
	#dhl-print h2 { font-size: 12pt; color: #0b3b6e; margin: 16px 0 6px; }
	#dhl-print table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; page-break-inside: avoid; }
	#dhl-print th, #dhl-print td { border: 1px solid #cbd5e1; padding: 6px 9px; text-align: left; vertical-align: top; text-transform: none; letter-spacing: 0; }
	#dhl-print thead th { background: #0b3b6e; color: #fff; }
	#dhl-print .num { text-align: right; white-space: nowrap; }
	#dhl-print .p-meta { color: #475569; font-size: 9.5pt; }
	#dhl-print .p-total td { font-weight: 700; font-size: 13pt; color: #0b3b6e; background: #f1f5fb; }
	#dhl-print .p-current td { background: #fff0f7; font-weight: 600; }
	#dhl-print .p-note { border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 12px; margin-top: 12px; font-size: 9.5pt; color: #374151; }
	#dhl-print .p-note p, #dhl-print .p-foot p { margin: 0 0 4px; }
	#dhl-print .p-foot { border-top: 2px solid #0b3b6e; margin-top: 14px; padding-top: 8px; font-size: 10pt; }
	@page { size: A4; margin: 14mm; }
}

/* ---------- Lead form (Contact Form 7) ---------- */
.dhl-form .wpcf7-form-control-wrap { display: block; }
.dhl-form label { display: block; font-weight: 600; font-size: .9em; color: var(--dhl-ink); margin-bottom: 4px; }
.dhl-form input[type="text"], .dhl-form input[type="tel"], .dhl-form input[type="email"], .dhl-form input[type="number"], .dhl-form select, .dhl-form textarea {
	border-radius: 12px; border: 1px solid var(--dhl-border); box-shadow: none; min-height: 46px; font-size: 1em; margin-bottom: 12px; background: #fff;
}
.dhl-form textarea { min-height: 96px; height: 96px; }
.dhl-form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.dhl-form-grid .dhl-span-2 { grid-column: 1 / -1; }
.dhl-form .wpcf7-acceptance { font-size: .85em; color: var(--dhl-muted); font-weight: 400; display: block; margin: 4px 0 14px; }
.dhl-form .wpcf7-acceptance label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; color: var(--dhl-muted); }
.dhl-form .wpcf7-acceptance input { margin-top: 4px; }
.dhl-form input[type="submit"].wpcf7-submit { width: 100%; border-radius: 99px; min-height: 52px; font-size: 1.08em; margin: 0; background-color: var(--dhl-pink) !important; border-color: var(--dhl-pink) !important; color: #fff; text-transform: none; letter-spacing: 0; }
.dhl-form input[type="submit"].wpcf7-submit:hover { background-color: var(--dhl-pink-2) !important; }
.dhl-form .wpcf7-not-valid-tip { font-size: .8em; margin: -8px 0 10px; }
.dhl-form .wpcf7-response-output { border-radius: 12px; margin: 14px 0 0 !important; font-size: .92em; }
.dhl-hp-wrap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.dhl-lead-quote { background: var(--dhl-sky-2); border: 1px dashed #b9cfee; border-radius: 12px; padding: 10px 12px; font-size: .86em; color: var(--dhl-navy); margin: 0 0 12px; }
.dhl-form-card { background: #fff; border-radius: 22px; padding: 26px 24px; box-shadow: var(--dhl-shadow); border: 1px solid var(--dhl-border); color: var(--dhl-text); }
.dhl-form-card h2, .dhl-form-card h3 { color: var(--dhl-ink) !important; }
.dhl-contact-list { list-style: none; padding: 0; margin: 0 0 18px; }
ul.dhl-contact-list li { margin-left: 0; display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.dhl-contact-list a { font-weight: 600; }

/* ---------- FAQ accordion ---------- */
.accordion.dhl-faq .accordion-item { border: 1px solid var(--dhl-border); border-radius: 14px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.accordion.dhl-faq .accordion-title { border-top: 0; padding: 14px 44px 14px 18px; font-weight: 600; color: var(--dhl-ink); font-size: 1em; }
.accordion.dhl-faq .accordion-title.active { color: var(--dhl-pink-2); background: var(--dhl-pink-soft); }
.accordion.dhl-faq .accordion-title .toggle { left: auto; right: 10px; top: 50%; transform: translateY(-50%); }
.accordion.dhl-faq .accordion-inner { padding: 4px 18px 16px; }
.accordion.dhl-faq .accordion-inner p:last-child { margin-bottom: 0; }

/* ---------- Header / top bar / footer ---------- */
.dhl-topbar { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; font-size: 12.5px; }
.dhl-topbar a { color: inherit; }
.dhl-topbar .dhl-icon { vertical-align: -2px; }
.header-button .button { text-transform: none; letter-spacing: 0; }
.nav > li > a { text-transform: none; letter-spacing: 0; }

/* Header logo: company logo + "เมืองไทยประกันชีวิต" + agent status (inc/agent.php dhl_site_logo_html). The status line
   always stays next to the logo — on smaller screens it wraps to two lines instead of being hidden. */
#masthead #logo { width: auto; }
#logo a.dhl-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; text-align: left; text-transform: none; }
#logo .dhl-logo .dhl-mtl-logo { height: 46px; width: auto; margin: 0; }
.dhl-logo__text { display: flex; flex-direction: column; }
#logo .dhl-logo__name { font-size: 17px; line-height: 1.25; color: var(--dhl-navy); }
#logo .dhl-logo__cap { font-size: 12.5px; line-height: 1.35; color: var(--dhl-muted); }
@media (max-width: 1239px) {
	#logo .dhl-logo__cap .dhl-nowrap { display: block; } /* ตัวแทนประกันชีวิต / บมจ.เมืองไทยประกันชีวิต */
}
@media (max-width: 959px) {
	#logo a.dhl-logo { gap: 8px; }
	#logo .dhl-logo .dhl-mtl-logo { height: 36px; }
	#logo .dhl-logo__name { font-size: 14.5px; }
	#logo .dhl-logo__cap { font-size: 11px; }
}

.section.dhl-footer { background: #0a2a4f; color: #c7d5e8; }
.dhl-footer h3, .dhl-footer h4 { color: #fff; font-size: 1.02em; margin-bottom: .8em; }
.dhl-footer p, .dhl-footer li { color: #c7d5e8; font-size: .93em; }
.dhl-footer a { color: #e7eef8; }
.dhl-footer a:hover { color: #fff; text-decoration: underline; }
.dhl-footer ul { list-style: none; margin: 0; padding: 0; }
.dhl-footer ul li { margin: 0 0 .5em; }
.col-inner ul.dhl-chips li, .col-inner ul.dhl-contact-list li, .dhl-footer .col-inner ul li { margin-left: 0; }
.dhl-footer .dhl-legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 18px; padding-top: 16px; font-size: .82em; color: #9fb3cc; }
.dhl-footer .dhl-legal strong { color: #fff; }
.absolute-footer { font-size: .8em; }

/* ---------- Agent identity: company badge, business-card style agent card, profile photo (inc/agent.php) ---------- */
.dhl-mtl-logo { flex: none; max-width: none; }
.dhl-agent-badge { display: inline-flex; align-items: center; gap: 10px; color: var(--dhl-ink); line-height: 1.3; text-decoration: none; }
a.dhl-agent-badge:hover { text-decoration: none; }
.dhl-agent-badge.is-text-only .dhl-svg { color: var(--dhl-pink); flex: none; }
.dhl-agent-badge__text { display: flex; flex-direction: column; min-width: 0; }
.dhl-agent-badge__cap { font-size: .8em; color: var(--dhl-muted); }
.dhl-agent-badge__name { font-size: .95em; font-weight: 600; color: var(--dhl-navy); white-space: nowrap; }

/* On the dark footer: white chip */
.dhl-agent-badge--footer { background: #fff; border-radius: 14px; padding: 8px 16px 8px 10px; box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .45); }
.dhl-footer a.dhl-agent-badge--footer:hover { text-decoration: none; }
.dhl-agent-badge--footer .dhl-agent-badge__cap { color: var(--dhl-navy); font-weight: 600; font-size: .86em; }
.dhl-agent-badge--footer .dhl-agent-badge__name { color: var(--dhl-ink); font-weight: 500; font-size: .9em; }

/* About hero: affiliation row */
.dhl-agent-affil { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; width: fit-content; max-width: 100%; margin: 0 0 1.2em; padding: 10px 18px 10px 12px; background: #fff; border: 1px solid var(--dhl-border); border-radius: 16px; box-shadow: var(--dhl-shadow-sm); }
.dhl-agent-affil .dhl-agent-badge__cap { color: var(--dhl-navy); font-weight: 600; font-size: .95em; }
.dhl-agent-affil__lic { font-size: .9em; color: var(--dhl-muted); padding-left: 18px; border-left: 1px solid var(--dhl-border); }
.dhl-ecard-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--dhl-blue); }
.dhl-btn-row + .dhl-small { margin-top: 12px; }
.dhl-ecard-link .dhl-svg { color: var(--dhl-teal); flex: none; }

/* Agent card — styled after the company's e-business card */
.dhl-agent-card {
	position: relative; overflow: hidden; margin: 8px 0 18px; padding: 20px 20px 16px; color: var(--dhl-text);
	background:
		radial-gradient(150px 110px at 56% 122%, rgba(230, 0, 126, .14), transparent 72%),
		radial-gradient(220px 170px at 110% 112%, rgba(42, 125, 225, .2), transparent 72%),
		#fff;
	border: 1px solid var(--dhl-border); border-radius: 20px; box-shadow: var(--dhl-shadow); container-type: inline-size;
}
.dhl-agent-card p { margin: 0; }
.dhl-agent-card__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.dhl-agent-card__photo { display: block; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.dhl-agent-card__photo.is-empty { display: flex; align-items: center; justify-content: center; background: var(--dhl-pink-soft); color: var(--dhl-pink); }
.dhl-agent-card .dhl-agent-card__name { color: var(--dhl-pink); font-weight: 700; font-size: 1.15em; line-height: 1.35; }
.dhl-agent-card .dhl-agent-card__pos, .dhl-agent-card .dhl-agent-card__team { color: #1a6fc4; font-size: .93em; line-height: 1.5; }
.dhl-agent-card ul.dhl-agent-card__contacts { list-style: none; display: grid; gap: 6px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px dashed #d5deeb; }
.dhl-agent-card ul.dhl-agent-card__contacts li { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .95em; }
.dhl-agent-card__contacts .dhl-svg { color: var(--dhl-muted); flex: none; }
.dhl-agent-card__contacts a { color: var(--dhl-ink); font-weight: 600; overflow-wrap: anywhere; }
.dhl-agent-card .dhl-agent-card__lic { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: .8em; line-height: 1.5; color: var(--dhl-muted); }
.dhl-agent-card__lic .dhl-svg { color: var(--dhl-teal); flex: none; margin-top: 2px; }
.dhl-agent-card .dhl-ecard-link { margin-top: 8px; font-size: .86em; }
@container (max-width: 400px) {
	.dhl-agent-card__head { gap: 12px; }
	.dhl-agent-card__photo { width: 50px; height: 50px; }
	.dhl-agent-card__logo { height: 34px; width: auto; }
}

/* Profile photo (About hero) */
.dhl-agent-photo { position: relative; width: 100%; margin: 0 auto 34px; }
.dhl-agent-photo__img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; box-shadow: var(--dhl-shadow); }
.dhl-agent-photo.is-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; aspect-ratio: 4 / 5; border-radius: 24px; border: 1px solid var(--dhl-border); background: linear-gradient(165deg, #fff 0%, var(--dhl-sky) 100%); }
.dhl-agent-photo__ph { display: flex; align-items: center; justify-content: center; width: 132px; height: 132px; border-radius: 50%; background: #fff; color: var(--dhl-pink); box-shadow: var(--dhl-shadow-sm); }
.dhl-agent-photo__hint { padding: 0 18px; font-size: .82em; color: var(--dhl-muted); text-align: center; }
.dhl-agent-photo__badge { position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%); white-space: nowrap; padding: 6px 16px 6px 10px; background: #fff; border: 1px solid var(--dhl-border); border-radius: 99px; box-shadow: var(--dhl-shadow-sm); }
.dhl-agent-photo__badge .dhl-agent-badge__cap { font-size: .86em; font-weight: 600; color: var(--dhl-navy); }

/* Mobile sticky contact bar (UX Block "dhl-global-mobile-sticky-bar") */
.dhl-sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 990; display: none; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--dhl-border); box-shadow: 0 -8px 24px -12px rgba(11, 59, 110, .3); }
.dhl-sticky-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 12px; font-size: 12px; font-weight: 600; color: var(--dhl-navy); background: var(--dhl-sky-2); text-decoration: none; line-height: 1.2; }
.dhl-sticky-bar a.is-line { background: var(--dhl-line-green); color: #fff; }
.dhl-sticky-bar a.is-quote { background: var(--dhl-pink); color: #fff; }
@media (max-width: 849px) {
	.dhl-sticky-bar { display: flex; }
	body { padding-bottom: 76px; }
	.back-to-top { bottom: 86px !important; }
}

/* ---------- Blog ---------- */
.dhl-article h2 { font-size: 1.45em; margin-top: 1.4em; }
.dhl-article h3 { font-size: 1.18em; margin-top: 1.2em; }
.dhl-article table { font-size: .93em; }
.dhl-callout { border-left: 4px solid var(--dhl-pink); background: var(--dhl-pink-soft); border-radius: 0 14px 14px 0; padding: 14px 18px; margin: 1.2em 0; }
.dhl-callout--info { border-left-color: var(--dhl-blue); background: var(--dhl-sky-2); }
.dhl-callout p:last-child { margin-bottom: 0; }
.dhl-post-cta { margin-top: 2em; padding: 22px; border-radius: 18px; background: linear-gradient(120deg, var(--dhl-navy), #1f6fcf); color: #e3edf9; }
.dhl-post-cta h3 { color: #fff; margin-top: 0; }
.dhl-post-cta p { color: #e3edf9; }
.dhl-post-cta .button { margin-bottom: 0; }
.blog-share:not(:has(a, button, iframe)) { display: none; } /* share plugin switched off → no empty divider */

/* ---------- Responsive ---------- */
/* Desktop header: room for the logo next to the menu (status line on one row from 1240px, two rows below) */
@media (min-width: 850px) {
	.header-main .logo-left .logo { margin-right: 16px; }
	.header-main .nav-spacing-large > li { margin: 0 9px; }
}
@media (min-width: 850px) and (max-width: 1239px) {
	.header-main .nav-spacing-large > li { margin: 0 6px; }
}
@media (min-width: 850px) and (max-width: 1099px) {
	.header-main .nav-spacing-large > li { margin: 0 5px; }
	.header-main .header-nav-main > li > a { font-size: .92em; }
	.header-main .header-button .button { padding: 0 .9em; }
}
@media (min-width: 850px) and (max-width: 1023px) {
	.header-main .header-button-2 { display: none; } /* LINE stays in the page CTAs and the top bar has the phone */
}
@media (min-width: 850px) and (max-width: 959px) {
	.header-main .nav-spacing-large > li { margin: 0 3px; }
}
@media (max-width: 849px) {
	.dhl-quote__grid { grid-template-columns: 1fr; }
	.dhl-quote__result { position: static; }
	.dhl-quote { padding: 16px; border-radius: 18px; }
	.dhl-form-grid { grid-template-columns: 1fr; }
	.col.dhl-card > .col-inner { padding: 22px 18px; }
}
@media (max-width: 549px) {
	.dhl-agent-photo { max-width: 260px !important; }
	.dhl-agent-affil__lic { padding-left: 0; border-left: 0; }
	.dhl-q-row { grid-template-columns: 1fr; gap: 0; }
	.dhl-chips li { font-size: .86em; }
	.dhl-q-total strong { font-size: 1.7em; }
	table.dhl-table { font-size: .86em; }
	table.dhl-table th, table.dhl-table td { padding: 8px 9px; }
}
/* The calculator adapts to the width of the column it is placed in (UX Builder friendly). */
@container (max-width: 760px) {
	.dhl-quote__grid { grid-template-columns: 1fr; }
	.dhl-quote__result { position: static; }
}
@container (max-width: 420px) {
	.dhl-q-row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.col.dhl-card > .col-inner { transition: none; }
}
