/* Hanuman Feasibility — full-screen customer page (1.2.0 · Hanuman Connect theme)
 * สงวนลิขสิทธิ์ · พัฒนาด้วย Woradon Phikun · https://www.hanumanconnect.com
 * Everything is scoped to #hnfsb-page (an id, 1.2.1) so the site theme cannot reshape it: classic themes
 * such as Twenty Twenty-One style every button with selectors up to (0,3,1) — a class scope lost to them. */
@font-face { font-family: "HNFSB Sarabun"; font-weight: 400; font-display: swap; src: url(../fonts/sarabun-thai-400-normal.woff2) format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "HNFSB Sarabun"; font-weight: 400; font-display: swap; src: url(../fonts/sarabun-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: "HNFSB Sarabun"; font-weight: 600; font-display: swap; src: url(../fonts/sarabun-thai-600-normal.woff2) format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "HNFSB Sarabun"; font-weight: 600; font-display: swap; src: url(../fonts/sarabun-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: "HNFSB Sarabun"; font-weight: 700; font-display: swap; src: url(../fonts/sarabun-thai-700-normal.woff2) format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "HNFSB Sarabun"; font-weight: 700; font-display: swap; src: url(../fonts/sarabun-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }

body.hnfsb-page-body { margin: 0; background: #F4F7FA; }

/* 1.2.1 frame: the page holds [hanuman_feasibility_page]; the plugin draws the frame around it.
 * Block themes: header/footer parts are simply not rendered when off (page-canvas.php).
 * Classic themes: the theme prints them, so switched-off parts are hidden here. */
body.hnfsb-hide-header :is(#masthead, #site-header, .site-header, .header-main, #header, body > header, #page > header, .wp-site-blocks > header) { display: none !important; }
body.hnfsb-hide-footer :is(#colophon, #site-footer, .site-footer, #footer, .footer-nav-widgets-wrapper, body > footer, #page > footer, .wp-site-blocks > footer) { display: none !important; }
body.hnfsb-page-body .hnfsb-main { margin: 0 !important; padding: 0 !important; max-width: none !important; }
body.hnfsb-page-body .hnfsb-main > .hnfsb-content, body.hnfsb-page-body .hnfsb-classic, body.hnfsb-page-body .hnfsb-classic > .hnfsb-content { margin: 0 auto; padding: 0; max-width: none; width: 100%; }
/* Owner's own content around the shortcode: readable width, centred. */
body.hnfsb-page-body .hnfsb-content > :not(.hnfsb-page) { max-width: 1192px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
body.hnfsb-page-body .hnfsb-content > :not(.hnfsb-page):first-child { margin-top: 24px; }
.hnfsb-ptitle { max-width: 1192px; margin: 28px auto 12px !important; padding: 0 24px; box-sizing: border-box; color: #012D53; }
/* Classic theme wrappers often cap width and pad the main column — let our page span it. */
body.hnfsb-page-body .hnfsb-classic { overflow-x: clip; }
body.hnfsb-page-body :is(#primary, #main, .site-main, .content-area, #content, .site-content):has(> .hnfsb-classic, > * > .hnfsb-classic) { max-width: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; float: none !important; }
#hnfsb-page {
	--navy: #012D53; --navy-2: #0A4472; --green: #04806B; --green-soft: #E3F3EF; --red: #A23430; --steel: #5B8DB8;
	--ink: #1B2A3A; --mute: #5B6B7C; --line: #E3E9EF; --bg: #F4F7FA; --ok: #047857; --warn: #B45309; --err: #B42318;
	font-family: "HNFSB Sarabun", "Sarabun", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif; font-size: 16px; line-height: 1.55;
	color: var(--ink); background: var(--bg); min-height: 100vh; -webkit-text-size-adjust: 100%;
}
#hnfsb-page *, #hnfsb-page *::before, #hnfsb-page *::after { box-sizing: border-box; }
#hnfsb-page :where(h1, h2, h3, p, ul, figure, fieldset, legend) { margin: 0; padding: 0; }
#hnfsb-page :where(h1, h2, h3) { font-family: inherit; letter-spacing: 0; text-transform: none; }
#hnfsb-page svg { flex: none; vertical-align: -3px; }
#hnfsb-page a { color: var(--navy); }
#hnfsb-page [hidden] { display: none !important; }
#hnfsb-page .hp-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Header */
#hnfsb-page .hp-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 24px; background: #fff; border-bottom: 1px solid var(--line); }
#hnfsb-page .hp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink) !important; min-width: 0; }
#hnfsb-page .hp-brand__logo { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: none; }
#hnfsb-page .hp-brand__logo img { width: 36px; height: 36px; object-fit: contain; display: block; }
#hnfsb-page .hp-brand b { display: block; font-size: 17px; color: var(--navy); line-height: 1.2; }
#hnfsb-page .hp-brand small { display: block; font-size: 12.5px; color: var(--mute); }
#hnfsb-page .hp-nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 18px; }
#hnfsb-page .hp-nav a { font-weight: 600; font-size: 14.5px; text-decoration: none; padding: 8px 0; min-height: 40px; display: inline-flex; align-items: center; }
#hnfsb-page .hp-nav a:hover { color: var(--green); }
#hnfsb-page .hp-tri { height: 4px; background: linear-gradient(90deg, var(--red) 0 33.3%, var(--green) 33.3% 66.6%, var(--steel) 66.6%); }

/* Hero */
#hnfsb-page .hp-hero { position: relative; overflow: hidden; color: #fff; padding: 40px 0 56px; background: radial-gradient(120% 160% at 100% 0%, #0B4F80 0%, var(--navy) 55%, #011F38 100%); }
#hnfsb-page .hp-hero::before { content: ""; position: absolute; right: -40px; top: -70px; width: 440px; height: 440px; background: var(--hnfsb-mark) no-repeat center / contain; opacity: .09; pointer-events: none; }
#hnfsb-page .hp-hero .hp-wrap { position: relative; }
#hnfsb-page .hp-hero h1 { font-size: clamp(28px, 4.2vw, 40px); font-weight: 700; line-height: 1.2; max-width: 680px; color: #fff; }
#hnfsb-page .hp-hero p { color: #C9D8E6; font-size: 17px; margin-top: 10px; max-width: 660px; }
#hnfsb-page .hp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px !important; }
#hnfsb-page .hp-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: 13.5px; font-weight: 600; }
#hnfsb-page .hp-chips svg { color: #7FD9C4; }

/* Cards & steps */
#hnfsb-page .hp-main { margin-top: -28px; position: relative; padding-bottom: 32px; }
#hnfsb-page .hp-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 2px 4px rgba(1,47,84,.04), 0 10px 28px rgba(1,47,84,.06); min-width: 0; }
#hnfsb-page .hp-off { display: flex; gap: 12px; align-items: flex-start; color: var(--mute); }
#hnfsb-page .hp-step { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: 17px; margin-bottom: 14px !important; }
#hnfsb-page .hp-step span { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 14px; flex: none; }
#hnfsb-page .hp-biz { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
#hnfsb-page .hp-biz__item { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; min-height: 64px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
#hnfsb-page .hp-biz__item:hover { border-color: #9DB6CC; }
#hnfsb-page .hp-biz__item:focus-visible { outline: 3px solid rgba(4,130,109,.45); outline-offset: 2px; }
#hnfsb-page .hp-biz__item b { display: block; font-size: 15px; }
#hnfsb-page .hp-biz__item small { display: block; font-size: 12.5px; color: var(--mute); line-height: 1.35; }
#hnfsb-page .hp-biz__ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #EEF3F8; color: var(--navy); flex: none; }
#hnfsb-page .hp-biz__item.is-on { border-color: var(--green); background: var(--green-soft); }
#hnfsb-page .hp-biz__item.is-on .hp-biz__ic { background: var(--green); color: #fff; }

#hnfsb-page .hp-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
#hnfsb-page .hp-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 18px; }
#hnfsb-page .hp-field { min-width: 0; }
#hnfsb-page .hp-field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 5px; color: var(--ink); }
#hnfsb-page .hp-field label em { color: var(--err); font-style: normal; }
#hnfsb-page .hp-in { display: flex; align-items: center; gap: 8px; }
#hnfsb-page input[type=text], #hnfsb-page input[type=tel] { width: 100%; min-width: 0; min-height: 46px; margin: 0; padding: 9px 12px; border: 1px solid #C7D2DE; border-radius: 10px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; box-shadow: none; }
#hnfsb-page input:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(4,130,109,.2); }
#hnfsb-page .hp-in input { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
#hnfsb-page .hp-in em { font-style: normal; color: var(--mute); font-size: 12.5px; flex: 0 0 74px; line-height: 1.25; overflow-wrap: anywhere; }
#hnfsb-page .hp-why { display: flex; gap: 6px; margin-top: 5px !important; font-size: 13px; color: var(--mute); line-height: 1.45; }
#hnfsb-page .hp-why svg { color: var(--green); margin-top: 3px; }
#hnfsb-page .hp-more { margin-top: 16px; border: 1px dashed var(--line); border-radius: 12px; padding: 0 14px; }
#hnfsb-page .hp-more summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--navy); display: flex; gap: 8px; align-items: center; min-height: 44px; }
#hnfsb-page .hp-more[open] { padding-bottom: 14px; }

/* Result */
#hnfsb-page .hp-result { position: sticky; top: 16px; }
#hnfsb-page .hp-verdict { border-radius: 14px; padding: 16px; background: #EEF3F8; border: 1px solid var(--line); }
#hnfsb-page .hp-verdict b { display: block; font-size: 21px; line-height: 1.3; }
#hnfsb-page .hp-verdict p { margin-top: 4px !important; font-size: 15px; }
#hnfsb-page .hp-verdict.is-go { background: #E6F4EE; border-color: #BFE3D2; } #hnfsb-page .hp-verdict.is-go b { color: var(--ok); }
#hnfsb-page .hp-verdict.is-conditional { background: #FFF4E0; border-color: #F3DDB5; } #hnfsb-page .hp-verdict.is-conditional b { color: #8A5300; }
#hnfsb-page .hp-verdict.is-stop { background: #FDECEA; border-color: #F5C6C1; } #hnfsb-page .hp-verdict.is-stop b { color: var(--err); }
#hnfsb-page .hp-landtax { margin-top: 10px !important; padding: 10px 12px; border-radius: 10px; background: #EEF3F8; border-left: 4px solid var(--navy); font-size: 13.5px; line-height: 1.5; }
#hnfsb-page .hp-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
#hnfsb-page .hp-kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--green); }
#hnfsb-page .hp-kpi b { font-size: 22px; color: var(--navy); line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; margin-top: 4px; }
#hnfsb-page .hp-kpi .l { font-size: 13.5px; font-weight: 700; color: var(--ink); }
#hnfsb-page .hp-kpi .x { font-size: 12.5px; color: var(--mute); line-height: 1.4; }
#hnfsb-page .hp-cmp { margin-top: 14px; }
#hnfsb-page .hp-cmp h3 { font-size: 14.5px; margin-bottom: 8px; color: var(--ink); }
#hnfsb-page .hp-bar { display: grid; grid-template-columns: minmax(0, 150px) 1fr 58px; gap: 8px; align-items: center; font-size: 13.5px; margin-bottom: 7px; }
#hnfsb-page .hp-bar div { height: 14px; border-radius: 7px; background: #E7EEF5; overflow: hidden; }
#hnfsb-page .hp-bar i { display: block; height: 100%; border-radius: 7px; background: var(--steel); }
#hnfsb-page .hp-bar b { text-align: right; font-variant-numeric: tabular-nums; }
#hnfsb-page .hp-bar.is-proj span { font-weight: 700; } #hnfsb-page .hp-bar.is-proj i { background: var(--green); }
#hnfsb-page .hp-bar.is-ref_loan i { background: var(--red); } #hnfsb-page .hp-bar.is-ref_inflation i { background: var(--warn); }
#hnfsb-page .hp-src { font-size: 12px; color: var(--mute); margin-top: 4px !important; }
#hnfsb-page .hp-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 16px; }
#hnfsb-page .hp-btn { display: inline-flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 54px; padding: 8px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-weight: 700; font-size: 15px; line-height: 1.25; text-align: left; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
#hnfsb-page .hp-btn small { display: block; font-weight: 400; font-size: 12px; opacity: .85; }
#hnfsb-page .hp-btn:hover { background: #EEF3F8; }
#hnfsb-page .hp-btn:focus-visible { outline: 3px solid rgba(4,130,109,.45); outline-offset: 2px; }
#hnfsb-page .hp-btn.is-green { background: var(--green); border-color: var(--green); color: #fff; } #hnfsb-page .hp-btn.is-green:hover { background: #036B5A; }
#hnfsb-page .hp-btn.is-primary { background: var(--navy); border-color: var(--navy); color: #fff; justify-content: center; } #hnfsb-page .hp-btn.is-primary:hover { background: var(--navy-2); }
#hnfsb-page .hp-btn.is-ghost { justify-content: center; }
#hnfsb-page .hp-btn.is-light { background: #fff; color: var(--navy); border-color: #fff; min-height: 42px; justify-content: center; }
#hnfsb-page .hp-priv { display: flex; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 12px; background: #FFF8EC; border: 1px solid #F3DDB5; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
#hnfsb-page .hp-priv svg { color: var(--warn); margin-top: 2px; }

/* Learn */
#hnfsb-page .hp-learn { margin-top: 36px; }
#hnfsb-page .hp-learn h2 { font-size: 24px; color: var(--navy); font-weight: 700; }
#hnfsb-page .hp-intro { color: var(--mute); margin-top: 4px !important; }
#hnfsb-page .hp-gloss { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 14px; }
#hnfsb-page .hp-gloss__item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
#hnfsb-page .hp-gloss__en { display: inline-block; font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-soft); border-radius: 6px; padding: 1px 8px; }
#hnfsb-page .hp-gloss__item b { display: block; margin-top: 6px; font-size: 17px; color: var(--navy); }
#hnfsb-page .hp-gloss__item p { font-size: 14px; color: var(--mute); margin-top: 2px !important; }
#hnfsb-page .hp-faq { margin-top: 14px; display: grid; gap: 8px; }
#hnfsb-page .hp-faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
#hnfsb-page .hp-faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; min-height: 48px; color: var(--navy); }
#hnfsb-page .hp-faq details p { padding-bottom: 14px; color: var(--ink); }

/* Footer */
#hnfsb-page .hp-foot { margin-top: 36px; background: #fff; border-top: 4px solid var(--navy); padding: 18px 0 24px; font-size: 13px; color: var(--mute); }
#hnfsb-page .hp-foot__in { display: flex; gap: 14px; align-items: flex-start; }
#hnfsb-page .hp-foot b { color: var(--navy); }

/* Sticky bar (phones) */
#hnfsb-page .hp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--navy); color: #fff; box-shadow: 0 -8px 24px rgba(1,31,56,.25); }
#hnfsb-page .hp-sticky small { display: block; color: #C9D8E6; font-size: 12px; } #hnfsb-page .hp-sticky b { font-size: 15px; }
#hnfsb-page .hp-sticky .hp-btn { margin-left: auto; }

/* Lead dialog */
#hnfsb-page .hp-lead { border: 0; padding: 0; border-radius: 16px; width: min(480px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; box-shadow: 0 24px 60px rgba(1,31,56,.35); }
#hnfsb-page .hp-lead::backdrop { background: rgba(1,31,56,.55); }
#hnfsb-page .hp-lead__form { padding: 22px; border-top: 6px solid var(--green); display: grid; gap: 12px; font-family: "HNFSB Sarabun", "Sarabun", Tahoma, sans-serif; color: var(--ink); }
#hnfsb-page .hp-lead h3 { font-size: 20px; color: var(--ink); }
#hnfsb-page .hp-lead__sub { color: var(--mute); font-size: 14px; margin-top: -6px !important; }
#hnfsb-page .hp-pref { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
#hnfsb-page .hp-pref legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; width: 100%; }
#hnfsb-page .hp-pref label { position: relative; }
#hnfsb-page .hp-pref input { position: absolute; opacity: 0; width: 1px; height: 1px; }
#hnfsb-page .hp-pref span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 700; color: var(--navy); cursor: pointer; }
#hnfsb-page .hp-pref input:checked + span { border-color: var(--green); background: var(--green-soft); }
#hnfsb-page .hp-pref input:focus-visible + span { outline: 3px solid rgba(4,130,109,.45); outline-offset: 2px; }
#hnfsb-page .hp-cons { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; background: #F4F7FA; border: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; cursor: pointer; }
#hnfsb-page .hp-cons.is-opt { background: #fff; }
#hnfsb-page .hp-cons input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--green); }
#hnfsb-page .hp-pdpa:empty { display: none; }
#hnfsb-page .hp-lead__actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 4px; }
#hnfsb-page .hp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
	#hnfsb-page .hp-grid { grid-template-columns: minmax(0, 1fr); }
	#hnfsb-page .hp-result { position: static; }
	#hnfsb-page .hp-nav { display: none; }
	#hnfsb-page .hp-main { padding-bottom: 88px; }
}
@media (max-width: 480px) {
	#hnfsb-page .hp-wrap, #hnfsb-page .hp-top { padding-left: 16px; padding-right: 16px; }
	#hnfsb-page .hp-card { padding: 16px; border-radius: 14px; }
	#hnfsb-page .hp-hero { padding: 28px 0 44px; }
	#hnfsb-page .hp-kpi b { font-size: 19px; }
	#hnfsb-page .hp-bar { grid-template-columns: minmax(0, 112px) 1fr 52px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { #hnfsb-page * { transition: none !important; } }

/* 1.2.4 · default logo = Hanuman Connect mark.png (rule 17): fill the round frame instead of floating inside it. */
#hnfsb-page .hp-brand__logo img[src*="hn-mark"] { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
#hnfsb-page .hp-foot img[src*="hn-mark"] { border-radius: 10px; }
