/* Phase 2 pages: BOQ, land buildability, free house plans */

.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.calc-layout--single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.calc-load-error, .form-banner-error.is-visible { display: block; }

/* BOQ */
.boq-files { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13px; color: var(--muted, #5B6B7C); }
.boq-files li { padding: 4px 0; border-bottom: 1px dashed var(--border); overflow-wrap: anywhere; }
.boq-success { text-align: center; padding: 18px 8px; }
.boq-success__icon { width: 56px; height: 56px; margin: 0 auto 14px; display: grid; place-items: center; font-size: 28px; color: var(--navy, #0B1F33); background: var(--gold); }
.boq-success h2 { margin: 0 0 8px; font-size: 22px; }
.boq-success__code { font-size: 26px; font-weight: 800; letter-spacing: .04em; margin: 6px 0 14px; color: var(--heading); }
.boq-success .btn { margin: 6px 4px; }

/* Land */
.land-tips { margin: 0; padding-left: 20px; line-height: 1.75; }
.land-tips li { margin-bottom: 8px; }
.land-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.calc-result__placeholder { padding: 28px 22px; border: 1px dashed var(--border); color: var(--muted, #5B6B7C); }

/* House plans */
.plan-filters { display: grid; gap: 10px; margin-bottom: 18px; }
.plan-filters__group { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-chip { border: 1px solid var(--border); background: var(--white); color: var(--heading); padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 40px; }
.plan-chip.is-active { background: var(--navy, #0B1F33); color: #fff; border-color: var(--navy, #0B1F33); }
.plan-count { margin: 0 0 14px; color: var(--muted, #5B6B7C); font-size: 14px; }
.plan-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .plan-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }
.plan-card { display: flex; flex-direction: column; border: 1px solid var(--border); background: var(--white); text-decoration: none; color: inherit; }
.plan-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--bg-soft, #F7F8FA); overflow: hidden; }
.plan-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plan-card__badge { position: absolute; top: 10px; left: 10px; background: var(--navy, #0B1F33); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; }
.plan-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.plan-card__title { font-weight: 700; font-size: 17px; color: var(--heading); }
.plan-card__facts { font-size: 13px; color: var(--muted, #5B6B7C); line-height: 1.6; }
.plan-card__cta { font-size: 13px; font-weight: 700; color: var(--gold-dark, #9A7B12); margin-top: 4px; }
.plan-empty { text-align: center; padding: 48px 12px; max-width: 560px; margin: 0 auto; }
.plan-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 12px; }
.plan-modal[hidden] { display: none !important; }
.plan-modal__backdrop { position: fixed; inset: 0; background: rgba(11, 31, 51, .6); }
.plan-modal__panel { position: relative; background: var(--white); width: 100%; max-width: 760px; padding: 22px 20px 26px; }
.plan-modal__close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--heading); }
.plan-modal__gallery { display: grid; gap: 10px; margin: 12px 0; }
.plan-modal__gallery img { width: 100%; height: auto; display: block; background: var(--bg-soft, #F7F8FA); }
.plan-modal__desc { line-height: 1.8; }
.plan-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.plan-gate { border: 1px solid var(--border); padding: 16px; margin-top: 8px; }
.plan-gate h3 { margin: 0 0 4px; }
.plan-thanks { color: var(--heading); font-weight: 600; }

/* per-field error state inside split rows (name / mobile share one .form-row) */
.form-row--split > div.has-error .form-error { display: block; }
.form-row--split > div.has-error .form-input, .form-row--split > div.has-error .form-select { border-color: #C0392B; }
