/* ════════════════════════════════════════════
   OSHINEI Repair — Design System
   Navy Blue Japanese Minimal
   ════════════════════════════════════════════ */
:root {
  --navy: #1E3A8A;
  --navy-dark: #172E6E;
  --navy-light: #2563EB;
  --accent: #F59E0B;
  --bg: #EFF6FF;
  --card: #FFFFFF;
  --text: #1E293B;
  --muted: #64748B;
  --border: #E2E8F0;
  --success: #16A34A;
  --danger: #DC2626;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(30, 58, 138, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Prompt', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.app-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 130%);
  color: #fff;
  padding: 20px 16px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.app-header::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px; height: 32px;
  background: var(--bg);
  border-radius: 32px 32px 0 0;
}
.app-header .logo {
  width: 72px; height: 72px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.85);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  margin-bottom: 10px;
}
.app-header h1 { font-size: 1.25rem; font-weight: 600; letter-spacing: 0.02em; }
.app-header p { font-size: 0.85rem; opacity: 0.85; margin-top: 2px; font-weight: 300; }

/* ── Layout ── */
.container { max-width: 560px; margin: -36px auto 40px; padding: 0 16px; position: relative; z-index: 2; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  margin-bottom: 16px;
}

/* ── Form ── */
label.field-label {
  display: block; font-size: 0.875rem; font-weight: 500;
  margin: 16px 0 6px; color: var(--text);
}
label.field-label .req { color: var(--danger); }
label.field-label:first-child { margin-top: 0; }

input[type=text], input[type=tel], input[type=date], select, textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit; font-size: 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #FAFBFF;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #fff;
}
textarea { resize: vertical; min-height: 96px; }

/* ── Priority selector ── */
.priority-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.priority-group input { display: none; }
.priority-group label {
  padding: 10px 4px; text-align: center; font-size: 0.9rem;
  border: 1.5px solid var(--border); border-radius: 12px;
  cursor: pointer; background: #FAFBFF; transition: all .15s;
}
.priority-group input:checked + label.p-low  { background: #DCFCE7; border-color: var(--success); color: var(--success); font-weight: 600; }
.priority-group input:checked + label.p-med  { background: #FEF3C7; border-color: #D97706; color: #B45309; font-weight: 600; }
.priority-group input:checked + label.p-high { background: #FEE2E2; border-color: var(--danger); color: var(--danger); font-weight: 600; }

/* ── Image upload ── */
.upload-box {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 22px 12px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  background: #FAFBFF;
  transition: all .15s;
  font-size: 0.9rem;
}
.upload-box:hover { border-color: var(--navy-light); color: var(--navy-light); }
.upload-preview { position: relative; margin-top: 10px; }
.upload-preview img { width: 100%; border-radius: 12px; max-height: 260px; object-fit: cover; }
.upload-preview .remove-btn {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,0.6); color: #fff;
  border: none; border-radius: 50%;
  width: 30px; height: 30px; cursor: pointer; font-size: 1rem;
}

/* ── Buttons ── */
.btn {
  display: block; width: 100%;
  padding: 14px;
  font: inherit; font-size: 1rem; font-weight: 600;
  border: none; border-radius: 12px;
  cursor: pointer;
  transition: transform .1s, box-shadow .15s, opacity .15s;
  text-align: center; text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 120%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.35);
  margin-top: 22px;
}
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-outline {
  background: #fff; color: var(--navy);
  border: 1.5px solid var(--navy);
  margin-top: 10px;
}

/* ── Badge ── */
.badge {
  display: inline-block; padding: 4px 12px;
  border-radius: 999px; font-size: 0.8rem; font-weight: 500;
}

/* ── Timeline ── */
.timeline { list-style: none; padding-left: 6px; }
.timeline li {
  position: relative;
  padding: 0 0 22px 34px;
  border-left: 2.5px solid var(--border);
  margin-left: 12px;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 4px; }
.timeline .dot {
  position: absolute; left: -15px; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--navy-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
.timeline .tl-status { font-weight: 600; font-size: 0.95rem; }
.timeline .tl-note { font-size: 0.85rem; color: var(--muted); margin-top: 2px; white-space: pre-wrap; }
.timeline .tl-time { font-size: 0.75rem; color: var(--muted); margin-top: 3px; }
.timeline .tl-img { margin-top: 8px; }
.timeline .tl-img img { max-width: 200px; border-radius: 10px; }

/* ── Info rows ── */
.info-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 0.9rem; }
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--muted); flex-shrink: 0; }
.info-row .v { text-align: right; font-weight: 500; word-break: break-word; }

/* ── Result / misc ── */
.result-no {
  font-size: 1.6rem; font-weight: 700; color: var(--navy);
  letter-spacing: 0.05em; text-align: center;
  background: var(--bg); border-radius: 12px; padding: 14px; margin: 14px 0;
}
.center { text-align: center; }
.muted { color: var(--muted); font-size: 0.85rem; }
.section-title { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: 14px; }
.hidden { display: none !important; }

.spinner {
  width: 22px; height: 22px;
  border: 3px solid rgba(255,255,255,0.35); border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.footer { text-align: center; padding: 16px; color: var(--muted); font-size: 0.78rem; }

/* ── Landing buttons ── */
.landing-btn {
  display: flex; align-items: center; gap: 16px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  margin-bottom: 14px;
  text-decoration: none; color: var(--text);
  transition: transform .12s, box-shadow .15s;
}
.landing-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(30,58,138,0.18); }
.landing-btn .ic {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; flex-shrink: 0;
}
.landing-btn h3 { font-size: 1.05rem; font-weight: 600; }
.landing-btn p { font-size: 0.83rem; color: var(--muted); font-weight: 300; }
