/* Motor insurance calculator — scoped styles. PHP 8.4 / responsive. */
.calx {
  --calx-ink: #142d2b;
  --calx-muted: #6d807b;
  --calx-green: #08775c;
  --calx-deep: #063a32;
  --calx-leaf: #15a57b;
  --calx-line: #dfeae7;
  --calx-white: #ffffff;
  --calx-soft: #f3f8f6;
  --calx-gold: #ead69c;
  color: var(--calx-ink);
  background: #f5f8f6;
  font: 400 16px/1.65 "Prompt", "Bai Jamjuree", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 90vh;
}
.calx *, .calx *::before, .calx *::after { box-sizing: border-box; }
.calx [hidden] { display: none !important; }
.calx :where(h1, h2, h3, p) { margin-top: 0; }
.calx :where(h1, h2, h3) { letter-spacing: -.028em; }
.calx :where(button, input, select) { font: inherit; }
.calx :where(button, a, input, select):focus-visible { outline: 3px solid #79d5b5; outline-offset: 3px; }
.calx :where(svg) { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.calx-shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.calx-local-header { background: #fff; border-bottom: 1px solid #e9f0ec; }
.calx-local-header__inner { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.calx-local-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none !important; color: #14352d !important; }
.calx-local-brand strong { display: block; line-height: 1.35; font-size: 16px; }
.calx-local-brand small { display: block; font-size: 12px; color: #677e75; }
.calx-logo { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; background: #0b805f; color: #fff; font-size: 26px; font-weight: 600; }
.calx-header-tag { font-size: 11px; letter-spacing: .16em; font-weight: 700; color: #668078; }
.calx-local-footer { background: #f5f8f6; padding: 32px 16px; color: #7b8e89; text-align: center; font: 13px/1.6 "Prompt", sans-serif; }

.calx-hero { position: relative; overflow: hidden; background: radial-gradient(circle at 86% 35%, #196b58 0, transparent 30%), linear-gradient(120deg, #062e2b 0%, #073e35 52%, #09523e 100%); color: white; }
.calx-hero::before { content: ""; position: absolute; width: 490px; height: 490px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; right: -155px; top: -275px; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 145px rgba(255,255,255,.018); pointer-events: none; }
.calx-hero::after { content: ""; position: absolute; width: 430px; height: 430px; background: radial-gradient(circle, rgba(238,212,146,.1), transparent 65%); right: 8%; bottom: -300px; pointer-events: none; }
.calx-hero__inner { min-height: 320px; display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 30px; padding-top: 45px; padding-bottom: 48px; position: relative; z-index: 1; }
.calx-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 12px; letter-spacing: .105em; color: #b7dbcc; }
.calx-eyebrow__dot { width: 8px; height: 8px; background: #e8d298; border-radius: 50%; box-shadow: 0 0 0 5px rgba(232,210,152,.12); }
.calx-eyebrow__separator { color: #668e81; }
.calx-hero h1 { font-size: clamp(27px, 3.25vw, 44px); line-height: 1.42; font-weight: 700; letter-spacing: -.045em; margin: 17px 0 13px; color: #fff; }
.calx-hero h1 em { color: #f0dba3; font-style: normal; }
.calx-hero__copy > p { max-width: 650px; color: #c8dcd5; font-size: 14px; line-height: 1.9; margin-bottom: 20px; }
.calx-hero__features { display: flex; flex-wrap: wrap; gap: 10px 26px; color: #e5f1eb; font-size: 12px; font-weight: 500; }
.calx-hero__features > span { display: inline-flex; align-items: center; gap: 8px; }
.calx-hero__features svg { width: 17px; height: 17px; border-radius: 50%; background: rgba(110,220,170,.15); stroke: #9ce8bd; padding: 2px; }
.calx-hero__art { display: flex; justify-content: center; align-items: center; perspective: 700px; }
.calx-art-card { position: relative; width: 245px; height: 215px; border-radius: 24px; background: linear-gradient(142deg, rgba(255,255,255,.22),rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.23); box-shadow: 0 30px 60px rgba(0,0,0,.13); transform: rotate(-6deg); backdrop-filter: blur(15px); padding: 22px; }
.calx-art-card__top { display: flex; align-items: center; gap: 5px; }
.calx-art-card__top b { font-size: 8px; letter-spacing: .15em; color: #e3e9de; margin-left: auto; font-weight: 500; }
.calx-art-dot { height: 7px; width: 7px; border-radius: 50%; background: #e5d7b6; opacity: .85; }
.calx-art-dot:nth-child(2) { opacity: .5; }
.calx-art-dot:nth-child(3) { opacity: .3; }
.calx-art-card__symbol { color: #f5e1ac; font-size: 88px; font-weight: 500; line-height: 1.35; margin-top: 10px; }
.calx-art-card__lines { display: grid; gap: 8px; }
.calx-art-card__lines i { height: 5px; width: 65%; background: rgba(255,255,255,.35); border-radius: 9px; }
.calx-art-card__lines i:nth-child(2) { width: 82%; opacity: .6; }
.calx-art-card__lines i:nth-child(3) { width: 48%; opacity: .35; }
.calx-art-card__check { display: grid; place-items: center; position: absolute; right: -16px; bottom: 27px; width: 55px; height: 55px; border-radius: 17px; background: #e9d59d; color: #285444; font-size: 33px; font-weight: 700; box-shadow: 0 11px 23px rgba(0,0,0,.2); transform: rotate(6deg); }

.calx-workspace { padding-top: 42px; padding-bottom: 76px; }
.calx-alert { padding: 14px 18px; border: 1px solid #eccbb5; background: #fff8f1; color: #875028; border-radius: 12px; margin-bottom: 20px; font-size: 13px; }
.calx-alert--info { color: #2d6c62; border-color: #bfe2d5; background: #ecf9f3; }
.calx-alert code { font-size: 12px; }
.calx-title-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.calx-overline { display: inline-block; color: var(--calx-green); letter-spacing: .15em; font-size: 11px; font-weight: 700; margin-bottom: 6px; }
.calx-title-row h2 { font-size: clamp(22px, 2.55vw, 30px); line-height: 1.4; font-weight: 700; margin: 0 0 5px; }
.calx-title-row p { color: var(--calx-muted); font-size: 13px; margin: 0; }
.calx-secure { white-space: nowrap; display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #648477; border: 1px solid #dbeae1; border-radius: 100px; background: white; padding: 9px 14px; }
.calx-secure svg { width: 16px; height: 16px; }
.calx-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr); align-items: start; gap: 25px; }
.calx-card { background: white; border-radius: 18px; box-shadow: 0 8px 27px rgba(13,58,46,.045); border: 1px solid #e7eeeb; }
.calx-method-card { padding: 25px; margin-bottom: 18px; }
.calx-card__intro { display: flex; align-items: start; gap: 13px; margin-bottom: 22px; }
.calx-step { display: grid; flex: none; place-items: center; width: 35px; height: 35px; border-radius: 11px; background: #e4f5ee; color: #097755; font-size: 12px; font-weight: 700; }
.calx-card__intro h3 { font-size: 18px; font-weight: 700; margin: 0 0 3px; line-height: 1.45; }
.calx-card__intro p { font-size: 12px; color: var(--calx-muted); line-height: 1.7; margin: 0; }
.calx-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calx-tab { border: 1.5px solid #e1e9e5; border-radius: 13px; background: #fff; padding: 17px 15px; display: flex; align-items: center; gap: 11px; text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; min-width: 0; color: #365248; }
.calx-tab:hover { border-color: #9bccb8; background: #fbfefc; }
.calx-tab.is-active { border-color: #0f9168; background: #f1fbf6; box-shadow: 0 0 0 3px rgba(18,143,98,.07); }
.calx-tab svg { flex: 0 0 24px; width: 24px; height: 24px; stroke: #0d8b65; }
.calx-tab > span { min-width: 0; flex: 1; }
.calx-tab strong { display: block; color: #214239; font-size: 13px; font-weight: 700; line-height: 1.5; }
.calx-tab small { display: block; font-size: 11px; color: #769187; margin-top: 1px; }
.calx-tab i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #becfc6; flex: none; }
.calx-tab.is-active i { border: 5px solid #138b65; background: white; }
.calx-input-card { padding: 25px; margin-bottom: 18px; }
.calx-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.calx-field { min-width: 0; }
.calx-field label { display: block; color: #253d36; font-size: 13px; font-weight: 600; margin: 0 0 9px; line-height: 1.5; }
.calx-required { color: #c17059; }
.calx-input-wrap { position: relative; }
.calx-input-wrap input, .calx-input-wrap select { appearance: none; -webkit-appearance: none; display: block; width: 100%; min-width: 0; height: 52px; border: 1.5px solid #dae6e0; border-radius: 10px; padding: 0 64px 0 16px; color: #173c30; font-size: 17px; font-weight: 600; outline: 0; background: #fff; transition: border-color .2s, box-shadow .2s; }
.calx-input-wrap input:focus, .calx-input-wrap select:focus { border-color: #12966b; box-shadow: 0 0 0 4px rgba(11,139,95,.1); }
.calx-input-wrap input::-webkit-inner-spin-button, .calx-input-wrap input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.calx-input-wrap input[type=number] { -moz-appearance: textfield; }
.calx-input-unit { position: absolute; pointer-events: none; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; color: #667f76; background: #edf4f1; padding: 5px 8px; border-radius: 6px; }
.calx-field small { display: block; color: #899b94; font-size: 11px; margin-top: 8px; line-height: 1.5; }
.calx-select-wrap select { padding-right: 37px; font-size: 14px; cursor: pointer; }
.calx-select-wrap::after { content: ""; position: absolute; right: 17px; top: 20px; width: 9px; height: 9px; border: solid #577a6e; border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.calx-submit-card { background: #fff; border-radius: 18px; border: 1px solid #e7eeeb; padding: 19px 25px 24px; }
.calx-submit-card__help { display: flex; align-items: start; gap: 9px; color: #729083; font-size: 11px; margin-bottom: 17px; line-height: 1.7; }
.calx-submit-card__help svg { flex: 0 0 16px; height: 16px; width: 16px; margin-top: 2px; }
.calx-actions { display: flex; gap: 11px; flex-wrap: wrap; }
.calx-btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 51px; border: 0; border-radius: 11px; padding: 12px 21px; cursor: pointer; font-weight: 600; font-size: 14px; transition: transform .2s, box-shadow .2s, background .2s; text-decoration: none !important; }
.calx-btn:hover:not(:disabled) { transform: translateY(-1px); }
.calx-btn-primary { background: linear-gradient(110deg, #07845d, #0b6b56); box-shadow: 0 8px 15px rgba(11,126,88,.15); color: white !important; flex: 1; }
.calx-btn-primary:hover:not(:disabled) { box-shadow: 0 12px 20px rgba(11,126,88,.22); }
.calx-btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.calx-btn-primary svg { width: 19px; height: 19px; }
.calx-btn-light { background: #eef5f1; color: #386457; min-width: 123px; }
.calx-btn-light:hover { background: #e2f0e9; }
.calx-unavailable { font-size: 11px; color: #915c3c; margin: 12px 0 0; }

.calx-summary-column { position: sticky; top: 24px; }
.calx-summary { background: #fff; border: 1px solid #dfe9e4; border-radius: 19px; overflow: hidden; box-shadow: 0 10px 35px rgba(12,56,44,.07); }
.calx-summary__head { background: #0a5545; color: #fff; padding: 21px 23px; display: flex; align-items: center; gap: 13px; }
.calx-summary__icon { width: 43px; height: 43px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.13); border-radius: 13px; display: grid; place-items: center; font-size: 25px; font-weight: 600; }
.calx-summary__head span:not(.calx-summary__icon) { display: block; font-size: 9px; font-weight: 600; letter-spacing: .17em; color: #b0d5c5; }
.calx-summary__head h3 { margin: 1px 0 0; color: white; font-weight: 700; font-size: 17px; }
.calx-summary__body { padding: 25px 23px 22px; }
.calx-summary__label { color: #779187; font-size: 12px; margin: 0 0 4px; }
.calx-summary__total { color: #07583f; font-size: clamp(27px, 2.8vw, 36px); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.4; white-space: nowrap; }
.calx-summary__total span { font-size: 13px; font-weight: 500; }
.calx-summary__divider { border-top: 1px solid #e8f0eb; margin: 20px 0; }
.calx-summary__row { display: flex; justify-content: space-between; gap: 15px; align-items: baseline; font-size: 12px; color: #69857b; margin: 0 0 15px; }
.calx-summary__row strong { color: #1d4334; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px; }
.calx-summary__row--emphasis { padding-top: 17px; border-top: 1px dashed #dfe9e4; margin-top: 19px; color: #234d3b; font-weight: 600; }
.calx-summary__row--emphasis strong { color: #0d865c; font-size: 17px; }
.calx-summary__footer { margin-top: 16px; background: #f0f8f3; border: 1px solid #d9eddf; padding: 17px 16px; border-radius: 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calx-summary__footer > span { font-size: 12px; line-height: 1.45; color: #305843; font-weight: 600; }
.calx-summary__footer > span small { font-size: 9px; line-height: 1.6; display: block; color: #7f9c87; font-weight: 400; margin-top: 3px; }
.calx-summary__footer > div { font-variant-numeric: tabular-nums; white-space: nowrap; color: #086642; font-weight: 700; font-size: 20px; }
.calx-summary__footer > div small { font-size: 11px; font-weight: 400; }
.calx-summary__notice { margin-top: 17px; color: #8ca198; font-size: 10px; line-height: 1.8; }
.calx-tip { display: flex; gap: 11px; padding: 21px 18px; border: 1px solid #e3ebe6; border-radius: 14px; background: #fafcfb; margin-top: 17px; }
.calx-tip__icon { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 23px; border-radius: 50%; background: #dbece5; color: #308267; font-size: 13px; font-weight: 700; }
.calx-tip strong { font-size: 12px; color: #3c6753; }
.calx-tip p { color: #788e83; margin: 5px 0 0; font-size: 11px; line-height: 1.85; }
.calx-visitor { color: #859b91; text-align: center; font-size: 11px; margin-top: 20px; }

/* Fallback result view only shown when the original result page isn't on the server. */
.calx-result-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 35px 15px; background: linear-gradient(140deg, #eff7f2, #f9fbf9); }
.calx-result-shell { max-width: 760px; width: 100%; border-radius: 24px; background: white; border: 1px solid #dce8df; padding: clamp(25px, 5vw, 45px); box-shadow: 0 18px 50px rgba(10,56,42,.07); }
.calx-result-icon { border-radius: 50%; color: white; background: #0b966e; width: 58px; height: 58px; display: grid; place-items: center; font-size: 35px; margin-bottom: 20px; }
.calx-result-shell h1 { font-size: clamp(25px, 4.2vw, 35px); line-height: 1.4; margin: 3px 0 10px; }
.calx-result-lead { font-size: 13px; color: #738b7e; line-height: 1.9; }
.calx-result-emphasis { padding: 20px 24px; border-radius: 15px; background: #07533f; color: white; margin: 25px 0; }
.calx-result-emphasis span { font-size: 12px; color: #cae6d7; display: block; }
.calx-result-emphasis strong { display: block; font-size: clamp(30px, 5vw, 43px); font-variant-numeric: tabular-nums; margin-top: 5px; }
.calx-result-emphasis small { font-size: 14px; font-weight: 400; }
.calx-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calx-result-item { padding: 15px; border-radius: 12px; background: #f4f9f5; border: 1px solid #e3efe7; }
.calx-result-item span { display: block; font-size: 11px; color: #678474; }
.calx-result-item strong { display: block; font-size: 17px; color: #165540; margin-top: 4px; }
.calx-result-note { color: #7b8d83; font-size: 11px; line-height: 1.9; margin: 18px 0; }
.calx-result-page .calx-btn { display: flex; width: fit-content; }

@media (max-width: 1030px) {
  .calx-grid { grid-template-columns: minmax(0,1.35fr) minmax(290px,.9fr); gap: 18px; }
  .calx-summary__footer { flex-direction: column; align-items: start; }
  .calx-method-card, .calx-input-card { padding: 21px; }
  .calx-tab { padding: 15px 10px; gap: 8px; }
}
@media (max-width: 800px) {
  .calx-grid { grid-template-columns: 1fr; }
  .calx-summary-column { position: static; display: grid; grid-template-columns: 1fr; }
  .calx-summary__footer { flex-direction: row; align-items: center; }
  .calx-hero__inner { grid-template-columns: 1fr; min-height: 0; padding-top: 42px; padding-bottom: 42px; }
  .calx-hero__art { display: none; }
  .calx-title-row { align-items: start; }
}
@media (max-width: 560px) {
  .calx-shell { width: calc(100% - 28px); }
  .calx-local-header__inner { min-height: 68px; }
  .calx-header-tag { display: none; }
  .calx-hero__inner { padding-top: 35px; padding-bottom: 38px; }
  .calx-hero h1 { font-size: 28px; }
  .calx-hero__copy > p { font-size: 13px; }
  .calx-hero__features { font-size: 11px; }
  .calx-workspace { padding-top: 25px; padding-bottom: 40px; }
  .calx-title-row { flex-direction: column; gap: 14px; }
  .calx-title-row h2 { font-size: 22px; }
  .calx-secure { padding: 7px 10px; font-size: 11px; }
  .calx-method-card, .calx-input-card { padding: 19px 15px; border-radius: 14px; }
  .calx-tabs { grid-template-columns: 1fr; gap: 9px; }
  .calx-tab { padding: 13px; }
  .calx-tab > span { margin-left: 4px; }
  .calx-field-grid { grid-template-columns: 1fr; gap: 18px; }
  .calx-card__intro h3 { font-size: 16px; }
  .calx-input-wrap input, .calx-input-wrap select { height: 53px; font-size: 16px; }
  .calx-submit-card { padding: 18px 15px; border-radius: 14px; }
  .calx-actions { flex-direction: column; }
  .calx-btn { width: 100%; }
  .calx-summary__head { padding: 17px 20px; }
  .calx-summary__body { padding: 20px 18px; }
  .calx-summary__footer { flex-direction: column; align-items: start; }
  .calx-result-grid { grid-template-columns: 1fr; }
  .calx-result-page .calx-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .calx *, .calx *::before, .calx *::after { transition: none !important; scroll-behavior: auto !important; } }
