/* Midlands Messenger app — v1 styles (matches marketing site palette) */
:root {
  --red: #c8102e;
  --navy: #1b2a4a;
  --light: #f5f6f8;
  --white: #ffffff;
  --text: #22303f;
  --gray: #6b7686;
  --border: #d9dee6;
  --heading: #1b2a4a;
}
[data-theme="dark"] {
  --light: #12161d;
  --white: #1b2129;
  --text: #e6e9ee;
  --gray: #9aa4b2;
  --border: #2c3440;
  --heading: #a9c1ff;
}
* { box-sizing: border-box; margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--light);
  color: var(--text);
  min-height: 100vh;
}
header {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header h1 { font-size: 1.15rem; display: flex; align-items: center; gap: 0.6rem; }
.logo-img { height: 40px; background: #ffffff; padding: 3px 8px; border-radius: 6px; display: block; }
.dark-toggle {
  width: auto; margin: 0; padding: 0.3rem 0.55rem;
  background: transparent; border: 1px solid rgba(255,255,255,0.35);
  color: #fff; border-radius: 6px; font-size: 1rem; cursor: pointer;
}
footer.phones {
  background: var(--navy);
  display: flex; justify-content: center; gap: 1.75rem; flex-wrap: wrap;
  padding: 0.9rem 1rem; margin-top: 2rem;
}
footer.phones a { color: #ffffff; font-weight: 600; text-decoration: none; }
footer.phones a:hover { text-decoration: underline; }
.job a.nav-link { color: var(--heading); text-decoration: underline; }
.job a.nav-link:visited { color: var(--heading); }
header .tag { color: #b9c3d4; font-size: 0.8rem; }
main { max-width: 26rem; margin: 2rem auto; padding: 0 1rem; }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.card h2 { font-size: 1.05rem; margin-bottom: 1rem; color: var(--heading); }
label { display: block; font-size: 0.85rem; color: var(--gray); margin: 0.75rem 0 0.25rem; }
input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
}
button {
  width: 100%;
  margin-top: 1.1rem;
  padding: 0.7rem;
  background: var(--red);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
button.secondary { background: var(--navy); }
#msg { color: var(--red); font-size: 0.9rem; min-height: 1.2rem; margin-top: 0.75rem; }
.muted { color: var(--gray); font-size: 0.85rem; }
select {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
}
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td { text-align: left; padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--border); }
th { color: var(--gray); font-weight: 600; }
#quote-display { color: var(--heading); font-size: 1.15rem; }
.job { border: 1px solid var(--border); border-radius: 8px; padding: 0.9rem; margin-bottom: 0.8rem; }
.job button { margin-top: 0.6rem; }
tr.late { background: #fdecec; }
[data-theme="dark"] tr.late { background: #3a2023; }
tr.late td:nth-child(5) { color: var(--red); font-weight: 700; }

/* task 16: side-by-side contact name + phone (stacks on small screens) */
.contact-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.contact-row input { flex: 1 1 10rem; }
.pod-photo-link { margin-left: 0.4rem; }
