/* Shared styles for the Property Visits pages. Colors match the approved demos. */
:root{
  --navy:#12314e; --navy-deep:#0b2138; --teal:#1e8e86; --teal-dark:#15706a;
  --sand:#f4f1ea; --ink:#1c2733; --muted:#5d6b7a; --line:#dfe4ea;
  --green:#177245; --green-bg:#e7f4ec; --amber:#946200; --amber-bg:#fdf3dd;
  --red:#b3352b; --red-bg:#fbeae8; --card:#fff; --radius:14px; --page:#e9ecef;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{min-height:100%}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:var(--page);color:var(--ink);-webkit-font-smoothing:antialiased}
[hidden]{display:none !important}

/* ---------- phone-style card (visitor + setup pages) ---------- */
.stage{display:flex;justify-content:center;padding:32px 16px 64px}
.phone{width:100%;max-width:420px;background:var(--card);border-radius:24px;overflow:hidden;
  box-shadow:0 12px 40px rgba(11,33,56,.18),0 2px 8px rgba(11,33,56,.10);
  display:flex;flex-direction:column;min-height:620px}
@media (max-width:520px){
  .stage{padding:0}
  .phone{border-radius:0;box-shadow:none;min-height:100vh;min-height:100dvh;max-width:none}
}
.hdr{background:linear-gradient(160deg,var(--navy) 0%,var(--navy-deep) 100%);color:#fff;padding:22px 22px 18px}
.hdr-tag{font-size:12.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;opacity:.9;margin-bottom:8px}
.hdr-title{font-size:21px;font-weight:700;line-height:1.25;margin-bottom:3px}
.hdr-sub{font-size:13px;opacity:.78}
.body{padding:20px 22px 26px;flex:1;display:flex;flex-direction:column}
.screen{flex:1;display:flex;flex-direction:column}
h2{font-size:17px;font-weight:700;margin-bottom:4px}
.sub{font-size:13.5px;color:var(--muted);line-height:1.5;margin-bottom:18px}
.welcome-back{background:var(--green-bg);color:var(--green);font-size:13px;font-weight:600;padding:9px 12px;border-radius:10px;margin-bottom:14px}

label{display:block;font-size:12.5px;font-weight:600;color:var(--muted);margin:0 0 5px 2px}
label .opt{font-weight:400}
input,select,textarea{width:100%;font-size:16px;padding:12px 13px;border:1.5px solid var(--line);
  border-radius:10px;background:#fff;color:var(--ink);margin-bottom:14px;font-family:inherit}
input,select{appearance:none;-webkit-appearance:none}
select{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%235d6b7a' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat:no-repeat;background-position:right 14px center;padding-right:36px}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--teal)}
.invalid{border-color:var(--red) !important}
.field-error{color:var(--red);font-size:12.5px;margin:-8px 0 12px 2px}
.row2{display:flex;gap:10px}.row2>div{flex:1}
.hp{position:absolute;left:-5000px;width:1px;height:1px;overflow:hidden}

.btn{width:100%;border:none;border-radius:12px;padding:15px;font-size:16px;font-weight:700;cursor:pointer;transition:filter .15s;font-family:inherit}
.btn:active{filter:brightness(.92)}
.btn:disabled{opacity:.6;cursor:wait}
.btn-primary{background:var(--teal);color:#fff;margin-top:4px}
.btn-ghost{background:#fff;color:var(--navy);border:1.5px solid var(--line);font-weight:600;font-size:14.5px;padding:12px;margin-top:12px}
.privacy{font-size:11.5px;color:var(--muted);line-height:1.5;margin-top:auto;padding-top:18px}

.center{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px 0}
.spinner{width:52px;height:52px;border-radius:50%;border:4px solid var(--line);border-top-color:var(--teal);animation:spin .9s linear infinite;margin-bottom:22px}
@keyframes spin{to{transform:rotate(360deg)}}
.check-steps{margin-top:20px;text-align:left;font-size:13.5px;color:var(--muted)}
.check-steps div{padding:5px 0;display:flex;align-items:center;gap:9px;opacity:.35;transition:opacity .3s}
.check-steps div.on{opacity:1;color:var(--ink)}
.dot{width:8px;height:8px;border-radius:50%;background:var(--teal);flex-shrink:0}

.result-icon{width:74px;height:74px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:6px auto 18px}
.result-icon svg{width:38px;height:38px}
.ri-green{background:var(--green-bg)}.ri-amber{background:var(--amber-bg)}.ri-red{background:var(--red-bg)}
.badge{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;padding:5px 12px;border-radius:99px;margin-bottom:12px}
.b-green{background:var(--green-bg);color:var(--green)}.b-amber{background:var(--amber-bg);color:var(--amber)}.b-red{background:var(--red-bg);color:var(--red)}
.result-title{font-size:21px;font-weight:800;margin-bottom:6px;text-align:center}
.result-sub{font-size:14px;color:var(--muted);line-height:1.55;text-align:center;max-width:310px;margin:0 auto 20px}
.record{background:var(--sand);border-radius:var(--radius);padding:14px 16px}
.record h3{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:9px}
.record-row{display:flex;justify-content:space-between;gap:12px;font-size:13px;padding:4px 0;border-bottom:1px dashed #e3ddd0}
.record-row:last-child{border-bottom:none}
.record-row .k{color:var(--muted);flex-shrink:0}
.record-row .v{font-weight:600;text-align:right;overflow-wrap:anywhere}
.flag-note{font-size:12.5px;line-height:1.5;background:var(--amber-bg);color:var(--amber);border-radius:10px;padding:10px 12px;margin-top:12px}
.error-note{font-size:13px;line-height:1.5;background:var(--red-bg);color:var(--red);border-radius:10px;padding:10px 12px;margin-bottom:14px}
.center-text{text-align:center}
a{color:var(--teal-dark)}
