/* AutoAid 24/7 design system: colours, type, buttons, forms, cards, header. Shared by the customer app and the technician/admin portal.
   Colours come from the logo: bright blue and deep navy, with gold as the accent. */

:root {
  --brand: #0F6FDE; --brand-600: #0B5CC0; --brand-700: #09479A; --brand-100: #DCEBFC; --brand-50: #EEF5FE;
  --navy: #0B2545; --navy-2: #13396B;
  --ink: #0F1B2D; --ink-soft: #55657B; --muted: #8593A6;
  --bg: #F3F6FB; --card: #FFFFFF; --line: #E3E9F2; --line-2: #D3DCE9;
  --green: #12915B; --green-50: #E6F6EF; --amber: #A86B00; --amber-50: #FFF5DC; --red: #D93C3C; --red-50: #FDECEC;
  --gold: #F5B301; --gold-2: #FFD35C;
  --blue: var(--brand);
  /* names the older pages and the banner still use */
  --safety: var(--gold); --surface: var(--bg); --ink-soft2: var(--ink-soft);
  --display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --radius: 20px; --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06);
  --shadow: 0 1px 2px rgba(15, 27, 45, .04), 0 10px 28px -10px rgba(15, 27, 45, .14);
  --shadow-lg: 0 24px 48px -16px rgba(11, 37, 69, .35);
  --ring: 0 0 0 4px rgba(15, 111, 222, .16);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 15.5px/1.55 var(--body); -webkit-font-smoothing: antialiased;
  background: radial-gradient(1100px 420px at 50% -160px, rgba(15, 111, 222, .13), transparent), var(--bg);
  background-attachment: fixed;
}
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(15, 111, 222, .5); outline-offset: 2px; }
a { color: var(--brand-600); }
h1, h2, h3 { letter-spacing: -.02em; }
h2 { font: 800 22px/1.2 var(--display); margin: 0 0 14px; letter-spacing: -.025em; }
h3 { font: 700 17px/1.3 var(--display); margin: 0 0 10px; }
small { color: var(--ink-soft); }
::selection { background: var(--brand-100); }

/* ------------------------------------------------------------------ header */
header {
  position: relative; z-index: 40; color: #fff;
  background: linear-gradient(115deg, #0B2545 0%, #12366A 55%, #0F5FC0 100%);
  box-shadow: 0 6px 24px -8px rgba(11, 37, 69, .55);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 28px;
}
header::after { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-2) 40%, transparent 80%); opacity: .9; }
@media (min-width: 901px) { header { position: sticky; top: 0; } }
.brand { display: flex; align-items: center; background: #fff; border-radius: 14px; padding: 6px 14px; flex: none; box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .35); }
.brand img { height: 40px; width: auto; display: block; }
header h1 { margin: 0; font: 800 17px/1 var(--display); letter-spacing: -.01em; color: #fff; white-space: nowrap; }
header .who, header .sp { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 14px; }
header .who #who, header .sp #who { font-weight: 700; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-dot { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 800 15px/1 var(--display); color: var(--navy);
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
header .btn { margin: 0; padding: 8px 14px; font-size: 13.5px; box-shadow: none; }
header .btn.safety, header .btn.ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
header .btn.safety:hover, header .btn.ghost:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .45); transform: none; }

/* banner slideshow tuned for the new header */
.slide strong { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.slide span.line { font-size: 13.5px; color: rgba(255, 255, 255, .72); }
.slide .ico { background: rgba(255, 255, 255, .1); border: 0; box-shadow: inset 0 0 0 1.5px rgba(245, 179, 1, .7); }

/* ------------------------------------------------------------------ cards, forms, buttons */
.panel, .card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 18px; }

label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin: 14px 0 6px; letter-spacing: .01em; }
input, select, textarea {
  width: 100%; padding: 11px 14px; background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s; min-height: 44px;
}
input:hover, select:hover, textarea:hover { border-color: #B8C6DA; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: #98A6BA; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--brand); }
input[type=file] { padding: 9px 12px; background: var(--brand-50); border-style: dashed; cursor: pointer; }
textarea { resize: vertical; min-height: 88px; }
select { appearance: none; padding-right: 38px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2355657B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.error { color: var(--red); font-size: 13.5px; font-weight: 600; margin: 10px 0 0; min-height: 1em; }
.empty { color: var(--ink-soft); margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; padding: 12px 20px;
  background: var(--navy); color: #fff; border: 0; border-radius: var(--radius-sm); font-weight: 700; font-size: 14.5px; line-height: 1.2;
  cursor: pointer; box-shadow: 0 1px 2px rgba(11, 37, 69, .2), 0 6px 14px -6px rgba(11, 37, 69, .45);
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.safety { background: linear-gradient(135deg, #2186F5 0%, #0B5CC0 100%); box-shadow: 0 1px 2px rgba(11, 92, 192, .3), 0 8px 18px -8px rgba(15, 111, 222, .7); }
.btn.safety:hover { background: linear-gradient(135deg, #3A97FA 0%, #0F6FDE 100%); }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { background: var(--brand-50); border-color: var(--brand); color: var(--brand-700); }
.btn.danger { background: #fff; color: var(--red); border: 1.5px solid #F2B8B8; box-shadow: none; }
.btn.danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn.small { margin: 0; padding: 7px 13px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.badge, .pbadge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .01em;
  background: #EEF1F6; color: var(--ink-soft);
}
/* status colours: pending = amber, open = red, in progress / on the way = blue, done = green, cancelled = grey */
.badge.pending, .badge[data-s="pending"] { background: var(--amber-50); color: var(--amber); }
.badge.open { background: var(--red-50); color: var(--red); }
.badge.in-progress, .badge.dispatched, .badge[data-s="in-progress"] { background: var(--brand-50); color: var(--brand-700); }
.badge.completed, .badge.resolved, .badge[data-s="completed"] { background: var(--green-50); color: var(--green); }
.badge.cancelled, .badge[data-s="cancelled"] { background: #EEF1F6; color: var(--ink-soft); }
.badge.off { background: var(--red-50); color: var(--red); }

.legal-foot { text-align: center; padding: 22px 16px 36px; font-size: 13px; color: var(--muted); }
.legal-foot a { color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
@media (max-width: 640px) {
  header { padding: 10px 16px; gap: 10px; }
  .brand img { height: 34px; }
  .row { grid-template-columns: 1fr; }
}

/* easier to tap on a phone */
.legal-foot a { display: inline-block; padding: 8px 4px; }
