/* Customer fault-report page. Light only, Hebrew RTL, phone first. Colours from design board 2/3. */
:root {
  color-scheme: only light;
  --bg: #f4f7f9;
  --card: #ffffff;
  --line: #c9d5de;
  --input-line: #6f8798;
  --ink: #14212b;
  --muted: #4d5f6e;
  --accent: #0b6e8a;
  --tint: #e3f1f6;
  --chip: #dbe5ec;
  --error: #b42318;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
[hidden] { display: none !important; }

.hd {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  padding-top: max(10px, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  gap: 14px;
}
.hd img { display: block; width: auto; }
.logo-he { height: 30px; }
.logo-en { height: 18px; }
.sep { width: 1px; height: 26px; background: var(--line); }

.screen { flex: 1; display: flex; flex-direction: column; width: 100%; max-width: 560px; margin: 0 auto; }
.body { flex: 1; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
h1 { margin: 0 0 2px; font-size: 25px; line-height: 1.2; font-weight: 700; }

.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 15px; font-weight: 500; }
input[type=text], input[type=tel], textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--input-line);
  border-radius: 10px;
  padding: 0 14px;
  font: inherit;
  font-size: 16px; /* 16px stops iPhone from zooming in */
  background: var(--card);
  color: var(--ink);
}
textarea { padding: 10px 14px; line-height: 1.4; resize: vertical; min-height: 96px; }
input:focus, textarea:focus, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.ltr { direction: ltr; text-align: right; }
.sn { text-transform: uppercase; letter-spacing: .5px; }
input.invalid, textarea.invalid { border: 2px solid var(--error); }

.trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.media-btns { display: flex; gap: 8px; margin-top: 4px; }
.mbtn {
  flex: 1; min-width: 0; height: 62px;
  border: 2px solid var(--accent); background: var(--card); color: var(--accent);
  border-radius: 10px; font: inherit; font-size: 14px; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  cursor: pointer; padding: 0 4px;
}
.mbtn:active { background: var(--tint); }

.thumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs li { position: relative; width: 64px; display: flex; flex-direction: column; gap: 3px; }
.thumbs .pic {
  width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--chip);
  display: flex; align-items: center; justify-content: center; font-size: 11px; color: #33475a;
}
.thumbs .pic img, .thumbs .pic video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs li.bad .pic { outline: 2px solid var(--error); opacity: .55; }
.thumbs .err { font-size: 12px; line-height: 1.25; color: var(--error); font-weight: 500; }
.thumbs .x {
  position: absolute; top: -8px; left: -8px; width: 28px; height: 28px;
  border: 2px solid #fff; border-radius: 14px; background: var(--ink); color: #fff;
  font-size: 16px; line-height: 1; cursor: pointer; padding: 0;
}
.thumbs .vbadge {
  position: absolute; bottom: 4px; right: 4px; background: rgba(20,33,43,.75); color: #fff;
  font-size: 11px; border-radius: 4px; padding: 0 4px; direction: ltr;
}

.msg { margin: 0; color: var(--error); font-weight: 500; font-size: 15px; }

.bar {
  position: sticky; bottom: 0;
  background: var(--card); border-top: 1px solid var(--line);
  padding: 10px 16px max(14px, env(safe-area-inset-bottom));
}
.send {
  width: 100%; height: 54px; border: 0; border-radius: 12px;
  background: var(--accent); color: #fff; font: inherit; font-size: 20px; font-weight: 700; cursor: pointer;
}
.send:disabled { background: var(--chip); color: var(--ink); cursor: default; }
.send.outline { background: var(--card); color: var(--accent); border: 2px solid var(--accent); font-size: 18px; }

.done-body { flex: 1; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; }
.done-body h1 { font-size: 30px; }
