/* Offplan Transfer: shared contact components (two-path cards, short forms, phone field, success panel).
   Brand colours only. Sizes are for older readers on phones: 16px+ text, 48px+ controls. */
:root {
  --f-night: #07111F; --f-panel: #0E1D30; --f-panel-2: #132840; --f-ink: #F1F6F8; --f-soft: #B4C4D0;
  --f-line: rgba(241, 246, 248, .18); --f-teal: #19B3A6; --f-teal-ink: #032220; --f-good: #5FE0D2;
  --f-wa: #25D366; --f-wa-ink: #05240F; --f-err: #FFB4A8; --f-ok-bg: #0C2B2C; --f-amber: #F2B45A;
}

/* buttons */
.obtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 22px; border-radius: 14px; border: 0; cursor: pointer; text-decoration: none; font-family: inherit; font-weight: 600; font-size: 18px; line-height: 1.25; text-align: center; background: var(--f-teal); color: var(--f-teal-ink); transition: transform .15s ease; }
.obtn:active { transform: scale(.97); }
.obtn:focus-visible { outline: 3px solid var(--f-amber); outline-offset: 3px; }
.obtn[disabled] { opacity: .6; cursor: default; }
.obtn.wa { background: var(--f-wa); color: var(--f-wa-ink); }
.obtn.ghost { background: transparent; color: var(--f-ink); border: 2px solid var(--f-line); }
.obtn svg { width: 24px; height: 24px; flex: none; }
.obtn.block { width: 100%; }

/* two paths (seller / buyer, or WhatsApp / form) */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.path { background: var(--f-panel); border: 1px solid var(--f-line); border-radius: 18px; padding: 20px; display: grid; gap: 12px; align-content: start; }
.path h2, .path h3 { font-size: 21px; line-height: 1.3; margin: 0; }
.path p { color: var(--f-soft); font-size: 17px; margin: 0; }
.path .acts { display: grid; gap: 10px; }
.path.seller { border-top: 4px solid var(--f-wa); }
.path.buyer { border-top: 4px solid var(--f-teal); }
@media (max-width: 720px) { .paths { grid-template-columns: minmax(0, 1fr); } }

.legal-note { color: var(--f-soft); font-size: 15px; line-height: 1.6; margin: 0; }
.or { display: flex; align-items: center; gap: 12px; color: var(--f-soft); font-size: 16px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--f-line); }

/* short forms */
.of { display: grid; gap: 16px; }
.of-field { display: grid; gap: 8px; font-weight: 600; font-size: 17px; border: 0; margin: 0; padding: 0; min-width: 0; }
.of-field legend { padding: 0; margin-bottom: 8px; }
.of-field small { font-weight: 400; color: var(--f-soft); font-size: 15px; }
.of input[type=text], .of input[type=number], .of input[type=tel], .of select {
  font-family: inherit; font-weight: 400; font-size: 18px; color: var(--f-ink); background: var(--f-night); border: 2px solid var(--f-line);
  border-radius: 12px; min-height: 54px; padding: 0 14px; width: 100%; min-width: 0; }
.of input:focus-visible, .of select:focus-visible { outline: 3px solid var(--f-amber); outline-offset: 1px; border-color: var(--f-teal); }
.of-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 10px; }
.tel { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; direction: ltr; }
.tel input { text-align: left; }
@media (max-width: 380px) { .tel { grid-template-columns: 124px minmax(0, 1fr); } .tel select { padding: 0 8px; font-size: 16px; } }
.of-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.of-chips label { position: relative; }
.of-chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.of-chips span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--f-line); font-weight: 600; font-size: 17px; cursor: pointer; }
.of-chips input:checked + span { background: var(--f-teal); border-color: var(--f-teal); color: var(--f-teal-ink); }
.of-chips input:focus-visible + span { outline: 3px solid var(--f-amber); outline-offset: 2px; }
.of-consent { color: var(--f-soft); font-size: 15px; margin: 0; }
.of-consent a { color: var(--f-ink); }
.form-err { color: var(--f-err); font-size: 16px; margin: 0; }
/* inline, per-question errors */
.f-err { display: flex; align-items: baseline; gap: 8px; color: var(--f-err); font-size: 16px; font-weight: 400; line-height: 1.5; margin: 0; }
.f-err::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--f-amber); transform: translateY(-1px); }
.of-field.bad > .q { color: var(--f-err); }
.of-field.bad .of-chips span, .of-field.bad input[type=text], .of-field.bad input[type=number], .of-field.bad input[type=tel] { border-color: var(--f-amber); }
/* light progress: counter next to the form heading, teal tick next to answered questions */
.prog { font-family: inherit; font-weight: 400; font-size: .8em; color: var(--f-soft); margin-inline-start: 6px; white-space: nowrap; }
.of-field.done > .q::after { content: "✓"; display: inline-block; margin-inline-start: 8px; color: var(--f-good); font-weight: 800; animation: qTick .2s ease-out; }
@keyframes qTick { from { transform: scale(.4); opacity: 0; } }
.of-ok { background: var(--f-ok-bg); border-radius: 16px; padding: 22px; display: grid; gap: 10px; }
.of-ok b { font-size: 22px; color: var(--f-good); }
.of-ok .ok-head { display: flex; align-items: center; gap: 12px; }
.of-ok .ok-prep { color: var(--f-ink); font-weight: 600; }
.of-ok .ok-num, .of-ok .ok-team { color: var(--f-soft); font-size: 17px; }
.of-ok .num { font-family: "Rubik", "Segoe UI", Arial, sans-serif; direction: ltr; unicode-bidi: isolate; font-weight: 800; color: var(--f-ink); white-space: nowrap; }
.of-ok .obtn { margin-top: 4px; }
/* success check: circle pops, tick draws itself (~300 ms); static when reduced motion is on */
.ok-check { width: 36px; height: 36px; flex: none; }
.ok-check circle { fill: var(--f-teal); transform-box: fill-box; transform-origin: center; }
.ok-check path { fill: none; stroke: var(--f-teal-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 17; stroke-dashoffset: 0; }
.of-ok:not([hidden]) .ok-check circle { animation: okPop .22s ease-out both; }
.of-ok:not([hidden]) .ok-check path { animation: okDraw .3s cubic-bezier(.3, .7, .4, 1) .12s both; }
@keyframes okPop { from { transform: scale(.6); opacity: 0; } }
@keyframes okDraw { from { stroke-dashoffset: 17; } }
.of-ok .code { font-family: "Rubik", "Segoe UI", Arial, sans-serif; direction: ltr; unicode-bidi: isolate; font-weight: 800; }

/* dock: label always visible next to the WhatsApp icon */
.dock .obtn { flex: 1; max-width: 340px; min-height: 52px; }

/* very narrow phones (320px): the logo mark stays, the wordmark text steps aside so the header fits */
@media (max-width: 380px) { header .brand > b, header .brand > div { display: none; } }

@media (prefers-reduced-motion: reduce) { .obtn { transition: none; } .of-ok:not([hidden]) .ok-check circle, .of-ok:not([hidden]) .ok-check path { animation: none; } .of-field.done > .q::after { animation: none; } }
