/* ============================================================================
   Montalvan Law PLLC — Deed Intake
   Styled to match montalvanlaw.com (Carrd): dark panel over a dimmed
   architectural photo, Inter-style sans, uppercase letter-spaced labels,
   pill inputs and a light pill primary button.
   ============================================================================ */
:root {
  --page-bg: #0f0f10;
  --panel: rgba(31, 30, 32, 0.93);
  --panel-solid: #201f21;
  --text: #c9c8ca;          /* body copy (site uses ~#9b9a9b; lifted for contrast) */
  --text-strong: #ffffff;
  --muted: #9b9a9b;
  --line: rgba(255, 255, 255, 0.14);
  --input-border: rgba(255, 255, 255, 0.38);
  --input-border-focus: #ffffff;
  --btn: #b8b7b8;
  --btn-text: #1c1b1d;
  --btn-hover: #d2d1d2;
  --error: #f3b4b4;
  --error-border: #e08a8a;
  --notice-bg: rgba(255, 255, 255, 0.06);
  --radius-pill: 999px;
  --radius: 12px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --content: 1000px;
  --gutter: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--page-bg) url("../img/bg.jpg") center top / cover fixed no-repeat;
  min-height: 100vh;
}
body::before {
  content: ""; position: fixed; inset: 0; background: rgba(10, 10, 11, 0.72); z-index: -1;
}
a { color: var(--text-strong); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { color: var(--text-strong); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: 1.75rem; margin-top: 0.4em; }
h3 { font-size: 1.15rem; margin-top: 2.2em; padding-top: 1.4em; border-top: 1px dotted var(--line); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
strong { color: var(--text-strong); font-weight: 600; }

/* ---------------------------------------------------------------- layout */
.demo-banner {
  background: #e9d58a; color: #2a2208; font-size: 0.9rem; font-weight: 600; text-align: center;
  padding: 0.55rem 1rem; letter-spacing: 0.02em; position: sticky; top: 0; z-index: 50;
}
.demo-banner a { color: inherit; }
.wrap { max-width: var(--content); margin: 2.5rem auto; background: var(--panel); padding: 3.5rem var(--gutter) 3rem; }
header.site { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-bottom: 2.2rem; border-bottom: 1px dotted var(--line); margin-bottom: 1.5rem; }
header.site .logo img { display: block; width: 330px; max-width: 100%; height: auto; }
header.site .logo { text-decoration: none; }
header.site nav { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
header.site nav a { color: var(--text-strong); text-decoration: none; padding: 0 0.9rem; border-left: 1px solid var(--line); }
header.site nav a:first-child { border-left: 0; }
header.site nav a.current { text-decoration: underline; text-underline-offset: 5px; }
footer.site { margin-top: 3rem; padding-top: 2rem; border-top: 1px dotted var(--line); text-align: center; line-height: 1.9; }
footer.site .fine { font-size: 0.82rem; color: var(--muted); margin-top: 1rem; line-height: 1.6; }

/* -------------------------------------------------------------- progress */
.progress { margin: 0 0 1.5rem; }
.progress-text { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-strong); margin: 0 0 0.5rem; }
.bar { height: 4px; background: rgba(255, 255, 255, 0.12); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--btn); transition: width 0.25s ease; }

/* ---------------------------------------------------------------- fields */
.field { margin: 0 0 1.6rem; }
.field > label:not(.check), .radio-group > legend { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-strong); margin-bottom: 0.55rem; }
.req { color: var(--muted); margin-left: 0.1em; }
.opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); margin-left: 0.4em; }
.hint { font-size: 0.93rem; color: var(--muted); margin: -0.25rem 0 0.7rem; line-height: 1.55; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text-strong);
  background: rgba(255, 255, 255, 0.025); border: 1px solid var(--input-border);
  border-radius: var(--radius-pill); padding: 0.8rem 1.25rem; outline: none;
  -webkit-appearance: none; appearance: none;
}
textarea { border-radius: var(--radius); resize: vertical; min-height: 3.5rem; line-height: 1.5; }
select {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%23c9c8ca' stroke-width='1.6'/></svg>");
  background-repeat: no-repeat; background-position: right 1.2rem center;
}
select option { color: #111; background: #fff; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--input-border-focus); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18); }
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; }
.row .field { margin-bottom: 1.6rem; }

/* radios & checkboxes */
fieldset { border: 0; padding: 0; margin: 0 0 1.6rem; min-width: 0; }
.radio-options { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.radio-options.stacked { flex-direction: column; gap: 0.7rem; }
.radio, .check { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; font-size: 1rem; color: var(--text); line-height: 1.5; }
.check { text-transform: none; letter-spacing: 0; font-weight: 400; }
.radio input, .check input { flex: 0 0 auto; width: 1.35rem; height: 1.35rem; margin: 0.12rem 0 0; accent-color: #e6e5e6; cursor: pointer; }
.radio-label { display: block; }
.radio-help { display: block; font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
.radio input:focus-visible, .check input:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.5); outline-offset: 2px; border-radius: 50%; }
.check input:focus-visible { border-radius: 3px; }

/* errors */
.has-error input, .has-error select, .has-error textarea { border-color: var(--error-border); }
.field-error { color: var(--error); font-size: 0.92rem; margin: 0.45rem 0 0; line-height: 1.45; }
.error-summary { background: rgba(224, 138, 138, 0.12); border: 1px solid var(--error-border); color: #fff; padding: 0.8rem 1.1rem; border-radius: var(--radius); margin: 0 0 1.6rem; }
.error-summary:focus { outline: 3px solid rgba(255, 255, 255, 0.4); }

/* notices */
.notice { background: var(--notice-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.2rem; margin: 0 0 1.6rem; color: var(--text); }
.notice.strong { border-color: #e9d58a; }
.callout { border-left: 3px solid var(--btn); padding: 0.2rem 0 0.2rem 1.2rem; margin: 1.6rem 0; }
.callout p { margin: 0; }
.fee-line { margin: -0.4rem 0 1.6rem; }

/* cards (repeaters) */
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem 0.4rem; margin: 0 0 1.4rem; background: rgba(255, 255, 255, 0.025); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-head h3 { margin: 0; padding: 0; border: 0; font-size: 1.05rem; }
.add-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin: 0.5rem 0 1.5rem; }
.add-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-strong); margin-right: 0.3rem; }

.subcard { border-left: 2px solid var(--line); padding: 0.2rem 0 0 1.2rem; margin: -0.6rem 0 1.6rem; }
.subcard .field:last-child { margin-bottom: 0.4rem; }

/* files */
.file-slot input[type="file"] { width: 100%; font: inherit; font-size: 0.95rem; color: var(--text); padding: 0.6rem 0; }
.file-slot input[type="file"]::file-selector-button {
  font: inherit; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-strong); background: transparent; border: 1px solid var(--input-border); border-radius: var(--radius-pill);
  padding: 0.6rem 1.2rem; margin-right: 1rem; cursor: pointer;
}
.file-slot input[type="file"]:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.4); outline-offset: 3px; border-radius: 6px; }
.file-list { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.file-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1rem; padding: 0.5rem 0; border-top: 1px dotted var(--line); }
.file-name { color: var(--text-strong); word-break: break-all; }
.file-size { color: var(--muted); font-size: 0.9rem; }

/* buttons */
.btn {
  font: inherit; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  border-radius: var(--radius-pill); padding: 0.95rem 1.8rem; cursor: pointer; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; line-height: 1.2;
}
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-secondary { background: transparent; color: var(--text-strong); border-color: var(--input-border); }
.btn-secondary:hover { border-color: #fff; }
.btn:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.55); outline-offset: 3px; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.btn .arrow { font-size: 1.1em; }
.btn-wide { width: 100%; }
.actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.2rem; padding-top: 1.8rem; border-top: 1px dotted var(--line); }
.actions .btn-primary { flex: 1 1 auto; }
.link-btn { font: inherit; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-strong); background: none; border: 0; padding: 0.2rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.link-btn:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.5); outline-offset: 3px; border-radius: 3px; }

/* payment call-to-action */
.pay-cta { border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.05); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.4rem; margin: 1.6rem 0 2.2rem; text-align: center; }
.pay-cta-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-strong); margin: 0 0 1rem; }
.btn-pay { width: 100%; justify-content: center; font-size: 1rem; padding: 1.2rem 1.8rem; background: #ffffff; color: #111; text-decoration: none; }
.btn-pay:hover { background: #ffffff; box-shadow: 0 0 0 4px rgba(255,255,255,0.18); }
.btn-pay.is-disabled { background: #6a696b; color: #ccc; cursor: not-allowed; text-decoration: line-through; pointer-events: none; }

/* review */
.rv-section { margin: 0 0 1.8rem; padding-top: 1.4rem; border-top: 1px dotted var(--line); }
.rv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.rv-section h3 { margin: 0 0 0.8rem; padding: 0; border: 0; }
dl { margin: 0; }
.rv-row { display: grid; grid-template-columns: 220px 1fr; gap: 0.4rem 1.5rem; padding: 0.55rem 0; border-top: 1px dotted rgba(255, 255, 255, 0.07); }
dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-strong); padding-top: 0.2rem; }
dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.flags ul { margin: 0.4rem 0 0; padding-left: 1.3rem; }
.flags li { margin-bottom: 0.4rem; }
.proposed-copy { color: #e9d58a; }
.acks .check { font-size: 0.97rem; }
.payload { font-size: 0.8rem; line-height: 1.45; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; overflow: auto; max-height: 28rem; color: #d8d7d8; }
details summary { cursor: pointer; color: var(--text-strong); font-weight: 600; margin-bottom: 0.6rem; }

/* intake summary (work-product view) */
.summary-wrap { background: #fff; border-radius: 4px; padding: 0; margin: 0 0 1.4rem; overflow: auto; box-shadow: 0 6px 30px rgba(0,0,0,0.5); }
.summary-tools { display: flex; justify-content: flex-end; margin: 0 0 0.8rem; }
details.dev summary { font-size: 0.9rem; color: var(--muted); font-weight: 400; }
@media (max-width: 760px) { .intake-summary { padding: 1rem !important; font-size: 10.5pt; } .intake-summary .s-tbl th { width: 1.4in; } .intake-summary .s-head { flex-direction: column; gap: 0.5rem; } .intake-summary .s-meta { text-align: left; } }

/* modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 1rem; }
.modal { background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; max-width: 460px; width: 100%; }
.modal h2 { font-size: 1.2rem; margin: 0 0 0.6rem; }
.modal p { margin: 0 0 1.4rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.8rem; flex-wrap: wrap; }

/* ---------------------------------------------------------------- mobile */
@media (max-width: 760px) {
  :root { --panel: rgba(29, 28, 30, 0.985); }
  body { font-size: 16px; background-attachment: scroll; background-size: auto 100vh; background-repeat: repeat-y; }
  body::before { background: rgba(10, 10, 11, 0.82); }
  .card, .subcard, .notice { background: rgba(255, 255, 255, 0.035); }
  .wrap { margin: 0; padding: 2rem 16px 2rem; }
  header.site { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  header.site .logo img { width: 260px; }
  header.site nav a { padding: 0 0.6rem; }
  header.site nav a:first-child { padding-left: 0; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .rv-row { grid-template-columns: 1fr; gap: 0.15rem; }
  .actions { flex-direction: column-reverse; }
  .actions .btn { width: 100%; }
  .modal-actions .btn { width: 100%; justify-content: center; }
  h1 { font-size: 1.45rem; }
  input[type="text"], input[type="email"], input[type="tel"], select, textarea { font-size: 16px; } /* prevents iOS zoom */
}
@media (prefers-reduced-motion: reduce) { .bar-fill { transition: none; } }

/* trust intake extras */
.share-row, .gift-row { grid-template-columns: 2fr 1fr auto; align-items: start; }
.share-row .link-btn, .gift-row .link-btn { margin-top: 0.9rem; }
@media (max-width: 760px) { .share-row, .gift-row { grid-template-columns: 1fr; } }
