/* ============================================================
   TARA HOME - Home Planner  (every class is prefixed hp- so nothing else on the site is affected)
   Warm minimal + trustworthy: cream & ivory surfaces, champagne accents, navy for text and primary actions.
   Mobile first.
   ============================================================ */

.hp {
  --hp-cream: #FAF6EF;
  --hp-ivory: #FFFDF8;
  --hp-sand: #E9DFCF;
  --hp-sand-dark: #D9CBB3;
  --hp-champagne: #C8A46A;
  --hp-gold-ink: #7F6130;      /* gold text on cream: contrast about 5.3:1 */
  --hp-navy: #1E2B45;
  --hp-navy-soft: #2c3e63;
  --hp-ink: #2B2B2B;
  --hp-muted: #5f5b54;         /* contrast on cream about 6:1 */
  --hp-danger: #B3261E;
  --hp-ok: #2E6B34;
  --hp-radius: 16px;
  --hp-shadow: 0 10px 30px rgba(30, 43, 69, .08);
  font-family: 'Sarabun', 'Kanit', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--hp-ink);
  background: var(--hp-cream);
}
.hp *, .hp *::before, .hp *::after { box-sizing: border-box; }
.hp h1, .hp h2, .hp h3, .hp h4 { font-family: 'Prompt', 'Kanit', sans-serif; color: var(--hp-navy); line-height: 1.3; font-weight: 600; }
.hp a { color: var(--hp-navy); text-decoration: underline; text-underline-offset: 3px; }
.hp a:hover { color: var(--hp-gold-ink); }
.hp :focus-visible { outline: 3px solid var(--hp-navy); outline-offset: 3px; border-radius: 6px; }
.hp-container { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 16px; }
.hp-sr, .hp-hp-field { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---- preview bar ---------------------------------------------------------------------------------------------- */
.hp-preview-bar { background: var(--hp-navy); color: #fff; text-align: center; padding: 10px 16px; font-size: .92rem; }

/* ---- hero ------------------------------------------------------------------------------------------------------- */
.hp-hero { padding: 44px 0 36px; background: linear-gradient(180deg, #F3EADB 0%, var(--hp-cream) 100%); text-align: center; }
.hp-eyebrow { color: var(--hp-gold-ink); font-weight: 600; letter-spacing: .02em; margin: 0 0 8px; font-size: .95rem; }
.hp-hero h1 { font-size: clamp(1.75rem, 6vw, 2.8rem); margin: 0 0 6px; }
.hp-tagline { font-family: 'Prompt', 'Kanit', sans-serif; color: var(--hp-gold-ink); font-size: clamp(1.1rem, 3.6vw, 1.45rem); margin: 0 0 14px; }
.hp-lead { max-width: 620px; margin: 0 auto 18px; color: var(--hp-muted); }
.hp-points { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 0; margin: 0 0 24px; color: var(--hp-navy); font-weight: 500; }
.hp-points i { color: var(--hp-champagne); margin-right: 8px; }

/* ---- buttons ---------------------------------------------------------------------------------------------------- */
.hp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 10px 26px;
  border-radius: 999px; border: 2px solid transparent; font-family: 'Prompt', 'Kanit', sans-serif; font-weight: 500; font-size: 1rem;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; line-height: 1.2;
}
.hp-btn:hover { transform: translateY(-1px); text-decoration: none; }
.hp-btn-primary { background: var(--hp-navy); color: #fff !important; }
.hp-btn-primary:hover { background: var(--hp-navy-soft); box-shadow: 0 6px 18px rgba(30, 43, 69, .25); }
.hp-btn-gold { background: var(--hp-champagne); color: var(--hp-navy) !important; }
.hp-btn-gold:hover { background: #d4b27c; }
.hp-btn-ghost { background: transparent; color: var(--hp-navy) !important; border-color: var(--hp-sand-dark); }
.hp-btn-ghost:hover { border-color: var(--hp-navy); background: #fff; }
.hp-btn[disabled], .hp-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.hp-btn-sm { min-height: 44px; padding: 8px 18px; font-size: .95rem; }

/* ---- app card -------------------------------------------------------------------------------------------------- */
.hp-app-wrap { padding: 8px 0 40px; }
.hp-app { background: var(--hp-ivory); border: 1px solid var(--hp-sand); border-radius: 20px; box-shadow: var(--hp-shadow); padding: 20px 16px 24px; }
.hp-loading { text-align: center; color: var(--hp-muted); padding: 40px 0; }
.hp-step { animation: hp-in .22s ease both; }
@keyframes hp-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hp-step-title { font-size: 1.45rem; margin: 6px 0 4px; }
.hp-step-title:focus { outline: none; }
.hp-step-sub { color: var(--hp-muted); margin: 0 0 18px; }

/* progress */
.hp-progress { margin-bottom: 18px; }
.hp-progress-bar { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 8px; }
.hp-progress-bar li { flex: 1; height: 8px; border-radius: 99px; background: var(--hp-sand); transition: background .3s; }
.hp-progress-bar li.is-done, .hp-progress-bar li.is-active { background: var(--hp-champagne); }
.hp-progress-bar li.is-active { background: var(--hp-navy); }
.hp-progress-text { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: .92rem; color: var(--hp-muted); }
.hp-progress-text strong { color: var(--hp-navy); }
.hp-link-btn { background: none; border: 0; padding: 4px 0; color: var(--hp-muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; min-height: 44px; }
.hp-link-btn:hover { color: var(--hp-navy); }

/* ---- fields ----------------------------------------------------------------------------------------------------- */
.hp-field { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.hp-label, .hp-field > legend { display: block; font-family: 'Prompt', 'Kanit', sans-serif; font-weight: 500; color: var(--hp-navy); font-size: 1.02rem; margin-bottom: 4px; padding: 0; float: none; width: auto; }
.hp-help { color: var(--hp-muted); font-size: .92rem; margin: 0 0 10px; }
.hp-req { color: var(--hp-danger); }
.hp-input, .hp-select {
  width: 100%; min-height: 50px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--hp-ink);
  background: #fff; border: 1.5px solid var(--hp-sand-dark); border-radius: 12px; appearance: none; -webkit-appearance: none;
}
.hp-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231E2B45' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
textarea.hp-input { min-height: 96px; resize: vertical; }
.hp-input:focus, .hp-select:focus { border-color: var(--hp-navy); outline: 3px solid rgba(30, 43, 69, .22); outline-offset: 0; }
.hp-input[aria-invalid="true"], .hp-select[aria-invalid="true"] { border-color: var(--hp-danger); background: #fff8f7; }
.hp-input-group { position: relative; }
.hp-input-group .hp-suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--hp-muted); pointer-events: none; }
.hp-input-group .hp-input { padding-right: 56px; }
.hp-error { color: var(--hp-danger); font-size: .93rem; margin: 6px 0 0; font-weight: 500; }
.hp-error::before { content: '\f06a'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-right: 6px; }
.hp-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .hp-row.cols-2 { grid-template-columns: 1fr 1fr; } .hp-row.cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* chips (real radio / checkbox inputs, so keyboard and screen readers work natively) */
.hp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-chip { position: relative; display: inline-flex; }
.hp-chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.hp-chip span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 8px 18px; border-radius: 999px; background: #fff;
  border: 1.5px solid var(--hp-sand-dark); color: var(--hp-navy); font-weight: 500; transition: all .15s ease; text-align: center;
}
.hp-chip:hover span { border-color: var(--hp-navy); }
.hp-chip input:checked + span { background: var(--hp-navy); border-color: var(--hp-navy); color: #fff; }
.hp-chip input:focus-visible + span { outline: 3px solid var(--hp-navy); outline-offset: 3px; }

/* option cards */
.hp-cards { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.hp-cards.cols-2 { grid-template-columns: 1fr 1fr; }
.hp-opt { position: relative; display: block; }
.hp-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.hp-opt span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 96px;
  padding: 12px 8px; border: 1.5px solid var(--hp-sand-dark); border-radius: 14px; background: #fff; color: var(--hp-navy); font-weight: 500; transition: all .15s ease;
}
.hp-opt span i { font-size: 1.5rem; color: var(--hp-champagne); }
.hp-opt:hover span { border-color: var(--hp-navy); }
.hp-opt input:checked + span { border-color: var(--hp-navy); background: #F5EEDF; box-shadow: inset 0 0 0 1.5px var(--hp-navy); }
.hp-opt input:checked + span i { color: var(--hp-navy); }
.hp-opt input:focus-visible + span { outline: 3px solid var(--hp-navy); outline-offset: 3px; }
@media (max-width: 420px) { .hp-cards { gap: 8px; } .hp-opt span { font-size: .93rem; min-height: 88px; } }

/* stepper */
.hp-stepper { display: flex; align-items: center; gap: 10px; }
.hp-stepper button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--hp-sand-dark); background: #fff; color: var(--hp-navy); font-size: 1.3rem; cursor: pointer; line-height: 1; }
.hp-stepper button:hover:not(:disabled) { border-color: var(--hp-navy); }
.hp-stepper button:disabled { opacity: .4; cursor: not-allowed; }
.hp-stepper output { min-width: 84px; text-align: center; font-family: 'Prompt', 'Kanit', sans-serif; font-weight: 500; color: var(--hp-navy); }

/* estimate / message boxes */
.hp-box { border-radius: 14px; padding: 16px 18px; margin: 0 0 22px; border: 1px solid var(--hp-sand); background: #F7F0E2; }
.hp-box h3 { font-size: 1rem; margin: 0 0 6px; }
.hp-box p { margin: 0 0 6px; }
.hp-box p:last-child { margin-bottom: 0; }
.hp-estimate { font-family: 'Prompt', 'Kanit', sans-serif; font-size: 1.7rem; color: var(--hp-navy); margin: 2px 0 6px !important; font-weight: 600; }
.hp-estimate small { font-size: 1rem; font-weight: 500; color: var(--hp-muted); }
.hp-box .hp-small { font-size: .9rem; color: var(--hp-muted); }
.hp-box.is-info { background: #EEF2F8; border-color: #D5DEEC; }
.hp-box.is-warm { background: #FBF3E3; border-color: #EAD6A8; }

/* action bar: sticks to the bottom of the screen on phones so the next step is always reachable */
.hp-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 8px; }
.hp-actions .hp-btn-primary, .hp-actions .hp-btn-gold { flex: 1 1 220px; }
@media (max-width: 640px) {
  .hp-actions { position: sticky; bottom: 0; margin: 12px -16px -24px; padding: 12px 16px; background: linear-gradient(180deg, rgba(255,253,248,0) 0, var(--hp-ivory) 22%); border-radius: 0 0 20px 20px; z-index: 5; }
}

/* step 2 has buttons on every card, so its bottom bar scrolls with the page instead of covering the cards */
@media (max-width: 640px) {
  .hp-actions.hp-actions-static { position: static; margin: 12px 0 0; padding: 0; background: none; border-radius: 0; }
}

/* ---- house cards ------------------------------------------------------------------------------------------ */
.hp-results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.hp-designs { display: grid; gap: 18px; grid-template-columns: 1fr; margin-bottom: 18px; }
@media (min-width: 700px) { .hp-designs { grid-template-columns: 1fr 1fr; } }
.hp-design { background: #fff; border: 1px solid var(--hp-sand); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 14px rgba(30, 43, 69, .05); }
.hp-design-img { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #EFE4CE, #E3D4B6); display: grid; place-items: center; color: var(--hp-gold-ink); font-size: 2.4rem; overflow: hidden; }
.hp-design-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hp-code { position: absolute; left: 10px; top: 10px; background: rgba(30, 43, 69, .88); color: #fff; font-size: .8rem; padding: 3px 12px; border-radius: 99px; font-family: 'Prompt', sans-serif; }
.hp-design-body { padding: 14px 16px 6px; flex: 1; }
.hp-design-body h3 { font-size: 1.12rem; margin: 0 0 2px; }
.hp-price { font-family: 'Prompt', 'Kanit', sans-serif; font-size: 1.25rem; font-weight: 600; color: var(--hp-navy); margin: 0 0 8px; }
.hp-specs { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; padding: 0; margin: 0 0 10px; color: var(--hp-muted); font-size: .94rem; }
.hp-specs i { color: var(--hp-champagne); margin-right: 5px; width: 1em; text-align: center; }
.hp-highlights { list-style: none; padding: 0; margin: 0 0 10px; font-size: .95rem; }
.hp-highlights li { padding-left: 24px; position: relative; margin-bottom: 2px; }
.hp-highlights li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; color: var(--hp-ok); font-size: .8rem; top: 3px; }
.hp-desc { color: var(--hp-muted); font-size: .95rem; margin: 0 0 10px; }
.hp-why { background: #F7F0E2; border-radius: 10px; padding: 8px 12px; font-size: .9rem; margin: 0 0 8px; color: var(--hp-ink); }
.hp-why strong { color: var(--hp-gold-ink); display: block; font-size: .85rem; margin-bottom: 2px; }
.hp-why ul { margin: 0; padding-left: 18px; }
.hp-design-actions { padding: 8px 16px 16px; display: grid; gap: 8px; }
.hp-design-actions .hp-more { text-align: center; font-size: .95rem; }
.hp-skeleton { height: 360px; border-radius: 18px; background: linear-gradient(90deg, #EFE7D6 25%, #F8F2E6 50%, #EFE7D6 75%); background-size: 200% 100%; animation: hp-shimmer 1.4s infinite; }
@keyframes hp-shimmer { to { background-position: -200% 0; } }

/* ---- contact form + summary --------------------------------------------------------------------------------- */
.hp-summary-list { list-style: none; padding: 0; margin: 0; }
.hp-summary-list li { padding: 3px 0 3px 22px; position: relative; font-size: .97rem; }
.hp-summary-list li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 7px; font-size: .75rem; color: var(--hp-champagne); }
.hp-check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; cursor: pointer; font-size: .97rem; }
.hp-check input { flex: 0 0 24px; width: 24px; height: 24px; margin-top: 2px; accent-color: var(--hp-navy); }
.hp-sep { border: 0; border-top: 1px solid var(--hp-sand); margin: 20px 0; }
.hp-done { text-align: center; padding: 8px 0; }
.hp-done-icon { width: 76px; height: 76px; border-radius: 50%; background: #E7F2E8; color: var(--hp-ok); display: grid; place-items: center; margin: 4px auto 14px; font-size: 2rem; }
.hp-ref { display: inline-block; background: #F7F0E2; border: 1px dashed var(--hp-champagne); border-radius: 12px; padding: 8px 20px; margin: 8px 0 14px; font-family: 'Prompt', sans-serif; font-size: 1.2rem; color: var(--hp-navy); letter-spacing: .03em; }
.hp-done .hp-box .hp-summary-list { text-align: left; max-width: none; margin: 0; }
.hp-done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }

/* toast */
.hp-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--hp-navy); color: #fff; padding: 12px 20px; border-radius: 12px; z-index: 2000; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* ---- trust + disclaimer ---------------------------------------------------------------------------------- */
.hp-trust { padding: 8px 0 32px; }
.hp-trust-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .hp-trust-grid { grid-template-columns: repeat(3, 1fr); } }
.hp-trust-grid > div { background: var(--hp-ivory); border: 1px solid var(--hp-sand); border-radius: 16px; padding: 18px; }
.hp-trust-grid i { color: var(--hp-champagne); font-size: 1.5rem; display: block; margin-bottom: 6px; }
.hp-trust-grid strong { display: block; font-family: 'Prompt', sans-serif; color: var(--hp-navy); }
.hp-trust-grid span { color: var(--hp-muted); font-size: .95rem; }
.hp-disclaimer { padding: 0 0 56px; }
.hp-disclaimer h2 { font-size: 1.15rem; }
.hp-disclaimer ul { color: var(--hp-muted); font-size: .95rem; padding-left: 20px; }
.hp-fallback label { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .hp *, .hp *::before, .hp *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (min-width: 700px) {
  .hp-app { padding: 28px 32px 32px; }
  .hp-step-title { font-size: 1.7rem; }
}
@media print { .hp-actions, .hp-preview-bar { display: none; } }

/* On phones the action bar sticks to the bottom: keep the site's floating buttons from covering it */
@media (max-width: 640px) {
  .hp-page .scroll-top { display: none !important; }
  .hp-page .floating-buttons { bottom: 96px; right: 12px; }
  .hp-page .float-btn { width: 44px; height: 44px; font-size: 1.15rem; }
}
