/* Floor-plan check page. Uses the bright theme's tokens (static/bright.css). */
.pt-main { padding-top: 96px; }
.pt-narrow { max-width: 720px; }
.pt-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.2; color: var(--ink); margin: 10px 0 14px; }
body:not(.en) .pt-title { font-family: var(--sans); font-weight: 300; }

/* The hidden attribute must win over the display rules below (.pt-card, .pt-plan are grid):
   without this the empty result, plan frame and email form showed before any check (14–19.10). */
[hidden] { display: none !important; }
.pt-card { background: var(--linen); border: 1px solid var(--sand); padding: clamp(18px, 4vw, 32px); margin: 28px 0; display: grid; gap: 18px; }
.pt-drop { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 28px 16px; border: 1px dashed var(--clay-d); background: var(--porcelain); cursor: pointer; color: var(--ink); }
.pt-drop:focus-within { outline: 2px solid var(--salmon-d); outline-offset: 2px; }
.pt-drop-icon { width: 44px; height: 44px; color: var(--clay-d); }
.pt-drop-main { font-size: 1rem; word-break: break-word; }
.pt-drop-sub { font-size: 0.82rem; color: var(--ink-soft); }
.pt-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }

.pt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pt-card .field-wrap { display: grid; }
.pt-card input[type=number], .pt-card input[type=email], .pt-card input[type=tel], .pt-card input[type=text], .pt-card textarea {
  width: 100%; box-sizing: border-box; font: inherit; color: var(--ink); background: var(--porcelain);
  border: 0; border-bottom: 1px solid var(--clay-d); padding: 10px 8px; border-radius: 0;
}
.pt-card input:focus, .pt-card textarea:focus { outline: 2px solid var(--salmon-d); outline-offset: 1px; }
.pt-mamad { border: 0; padding: 0; margin: 0; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; color: var(--ink); }
.pt-mamad legend { float: inline-start; margin-inline-end: 18px; font-size: 0.78rem; }
.pt-mamad label { display: inline-flex; gap: 6px; align-items: center; }
.pt-contact { border: 1px solid var(--clay, #d4c9bc); border-radius: 4px; padding: 18px 18px 6px; margin: 4px 0 0; display: grid; gap: 4px; }
.pt-contact legend { padding: 0 8px; font-size: 0.95rem; font-weight: 500; color: var(--ink); }
.pt-thanks { margin: 18px 0 0; padding: 14px 16px; background: var(--linen, #f5f2ed); border-inline-start: 2px solid var(--salmon-d, #c98a7b); color: var(--ink); line-height: 1.6; }
.pt-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--ink); line-height: 1.5; }
.pt-consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--salmon-d); }
.pt-privacy { font-size: 0.82rem; color: var(--salmon-d); margin-top: -10px; }

.pt-btn { justify-self: start; font: inherit; font-size: 1rem; padding: 14px 30px; border: 1px solid var(--salmon-d); background: var(--salmon-d); color: var(--porcelain); cursor: pointer; border-radius: 0; }
.pt-btn:hover { background: var(--ink); border-color: var(--ink); }
.pt-btn.ghost { background: transparent; color: var(--ink); border-color: var(--clay-d); }
.pt-btn.ghost:hover { background: var(--sand); }
.pt-btn:disabled { opacity: 0.55; cursor: progress; }
.pt-status { min-height: 1.4em; margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.pt-status.err { color: #8E2A1A; }
.pt-wa { display: inline-flex; align-self: flex-start; gap: 8px; padding: 9px 16px; border-radius: 6px; background: #25D366; color: #fff; text-decoration: none; font-weight: 500; }
.pt-wa[hidden] { display: none; }
.pt-status.ok { color: #2F5D3A; }
.pt-status.busy::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-inline-end: 8px; border: 2px solid var(--clay-d); border-top-color: transparent; border-radius: 50%; animation: pt-spin 0.9s linear infinite; vertical-align: -1px; }
@keyframes pt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pt-status.busy::before { animation: none; } }

.pt-result h2 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin: 0; color: var(--ink); }
body:not(.en) .pt-result h2, body:not(.en) .pt-result h3 { font-family: var(--sans); font-weight: 400; }
.pt-result h3 { font-size: 1.1rem; font-weight: 400; margin: 6px 0; color: var(--ink); }
.pt-score { margin: 0; color: var(--salmon-d); font-size: 0.95rem; }
.pt-summary { margin: 0; color: var(--ink); line-height: 1.7; }
.pt-findings, .pt-ideas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pt-findings li { padding-inline-start: 18px; position: relative; color: var(--ink-soft); line-height: 1.6; }
.pt-findings li::before { content: '•'; position: absolute; inset-inline-start: 0; color: var(--clay-d); }
.pt-findings li.good::before { content: '+'; color: #2F5D3A; }
.pt-findings strong { color: var(--ink); font-weight: 500; }
.pt-ideas li { background: var(--porcelain); border: 1px solid var(--sand); padding: 14px 16px; }
.pt-ideas p { margin: 6px 0 0; color: var(--ink-soft); line-height: 1.6; }
.pt-note { margin: 0; font-size: 0.84rem; color: var(--clay-d); }
.pt-disclaimer { margin: 0; font-size: 0.8rem; color: var(--ink-soft); border-top: 1px solid var(--sand); padding-top: 12px; }
.pt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pt-mini { display: grid; gap: 12px; align-content: start; background: var(--porcelain); border: 1px solid var(--sand); padding: 18px; }
.pt-trust { font-size: 0.85rem; color: var(--ink-soft); text-align: center; }
.pt-turnstile:empty { display: none; }

@media (max-width: 640px) {
  .pt-row, .pt-actions { grid-template-columns: 1fr; }
  .pt-btn { justify-self: stretch; text-align: center; }
}

/* Colored, labeled plan (2026-10-18) */
.pt-plan { margin: 18px 0 6px; display: grid; gap: 10px; }
.pt-plan canvas { width: 100%; height: auto; border: 1px solid var(--clay, #d4c9bc); border-radius: 4px; background: #fff; }
.pt-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink); font-size: 0.92rem; }
.pt-legend li { display: inline-flex; align-items: center; gap: 6px; }
.pt-legend .sw { width: 14px; height: 14px; border-radius: 3px; flex: none; border: 1px solid rgba(0,0,0,.15); }
.pt-legend .num { font-weight: 500; }

/* Answers to the visitor's own concerns (prompt v2, 2026-10-18) */
#ptAnswersWrap { margin: 18px 0 22px; }
.pt-answers { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pt-answers > li { background: var(--porcelain); border: 1px solid var(--sand); border-inline-start: 3px solid var(--clay-d); padding: 14px 16px; }
.pt-answers > li > strong { color: var(--ink); font-weight: 500; }
.pt-answers ul { margin: 8px 0 0; padding-inline-start: 18px; color: var(--ink-soft); line-height: 1.6; }
.pt-answers ul li { margin: 0 0 6px; }
.pt-answers .pt-check { margin: 8px 0 0; font-size: .92em; color: var(--ink-soft); }

/* Compliance 2026-10-21: notice at collection */
.pt-note { margin: 10px 0 0; font-size: .8rem; line-height: 1.7; color: #574840; }
.pt-note a { color: #9E4A34; }

/* Israel's tip + rating (21.10) */
.pt-tip { margin: 26px 0 8px; padding: 18px 20px; background: #FBF8F4; border-inline-start: 3px solid #9E4A34; }
.pt-tip-k { margin: 0 0 6px; font-size: .78rem; letter-spacing: .12em; color: #9E4A34; }
.pt-tip-text { margin: 0; line-height: 1.85; color: #241813; }
.pt-tip-sig { margin: 10px 0 0; font-size: .9rem; color: #574840; }
.pt-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 6px; font-size: .92rem; color: #574840; }
.pt-rate-btn { font: inherit; padding: 6px 16px; border: 1px solid #9E4A34; background: transparent; color: #241813; border-radius: 999px; cursor: pointer; min-height: 36px; }
.pt-rate-btn[aria-pressed="true"] { background: #9E4A34; color: #fff; }
.pt-rate-btn:disabled { cursor: default; }
.pt-rate-msg { color: #574840; }
