/* Round 8 — shared form layer (Claude). Builders: r8-euro.css, owner.css. */

/* Telegram: phone (default) | @username */
.tg-mode { display: inline-flex; gap: 2px; padding: 3px; margin: 2px 0 8px; border-radius: 999px; background: var(--bg-2, #f1ece6); width: max-content; max-width: 100%; }
.tg-mode[hidden] { display: none; }
.tg-mode button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font: 600 13.5px var(--body); color: var(--ink-2, #555); cursor: pointer; }
.tg-mode button[aria-pressed="true"] { background: var(--paper, #fff); color: var(--ink, #222); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.ch-row .tg-mode { margin: 0; }
.cfield .ch-in { margin-top: 2px; }
.cc-btn[hidden] { display: none; }

/* submit that looks inactive until the form is complete (still tappable: it explains what is missing) */
.btn.is-off { opacity: .45; filter: grayscale(.6); box-shadow: none; }

/* date fields: format hint INSIDE the empty field, gone once a date is picked */
.dwrap { position: relative; display: block; min-width: 0; }
.dwrap > input[type=date] { width: 100%; min-height: 48px; }
.dph { position: absolute; left: 14px; right: 30px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-3, #8a8580); opacity: .75; font: 500 15px var(--body); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dwrap.has-val .dph, .dwrap > input[type=date]:focus + .dph { display: none; }
.dwrap:not(.has-val) > input[type=date]:not(:focus)::-webkit-datetime-edit { color: transparent; }
.field .fmt { display: none; }

/* ---------- Match (round 8) ---------- */
/* card + its actions are ONE framed unit, so "Hide" / "Ask" / availability can't be read as belonging to the next card */
.reveal:has(> .card-actions) { gap: 0; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.reveal:has(> .card-actions) > .card { border: 0; border-radius: 0; }
.reveal:has(> .card-actions) > .card-actions { padding: 0 16px 14px; }
.reveal:has(> .card-actions) > .card-actions::before { content: ""; display: block; height: 1px; background: var(--line-2); margin: 0 0 12px; }
.m-none { margin-top: 12px; min-height: 40px; }
.m-widen { display: grid; gap: 8px; margin: 16px 0 6px; padding: 14px 16px; border-radius: 14px; background: var(--sun-wash, #fff4ec); }
.m-widen p { margin: 0; }
.m-widen-b { display: flex; flex-wrap: wrap; gap: 8px; }

/* listing: "Check availability" without dates highlights the date fields */
.r8-flash { animation: r8pulse 1.6s ease-out 1; border-radius: 14px; }
@keyframes r8pulse { 0% { box-shadow: 0 0 0 0 rgba(241, 90, 34, .55); } 70% { box-shadow: 0 0 0 12px rgba(241, 90, 34, 0); } 100% { box-shadow: none; } }
