/* support.css — shared styles for help.html, contact.html, status.html */
/* All base styles are in ../styles.css */

.support-wrap {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.support-page .back-link {
  padding-top: 3rem;
  max-width: 860px;
}

.support-hero {
  padding: 1.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.support-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin: .5rem 0 .75rem;
}

.support-hero-sub {
  font-size: .95rem;
  color: var(--text2);
  line-height: 1.7;
  max-width: 560px;
}

.support-hero-sub a { color: var(--cyan); text-decoration: none; }
.support-hero-sub a:hover { text-decoration: underline; }

/* ══ HELP CENTRE ══ */

.help-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.help-role-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.help-role-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.hrc-icon { font-size: 1.75rem; }

.help-role-card strong {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.help-role-card span {
  font-size: .8rem;
  color: var(--text2);
  line-height: 1.6;
}

.hrc-disp:hover  { border-color: rgba(0,212,255,.3); }
.hrc-admin:hover { border-color: rgba(245,158,11,.3); }
.hrc-driver:hover{ border-color: rgba(34,197,94,.3); }

/* Help sections */
.help-section {
  margin-bottom: 3rem;
  scroll-margin-top: 90px;
}

.help-section-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.25rem;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: 0;
  border: 1px solid var(--border);
  border-bottom: none;
}

.help-section-header span { font-size: 1.3rem; }

.help-section-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.025em;
  margin: 0;
}

.disp-header  { background: rgba(0,212,255,.07);  border-left: 3px solid var(--cyan); }
.admin-header { background: rgba(245,158,11,.07); border-left: 3px solid var(--amber); }
.driver-header{ background: rgba(34,197,94,.07);  border-left: 3px solid var(--green); }

/* FAQ accordion */
.faq-list {
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-item summary {
  list-style: none;
  padding: 1.1rem 1.25rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .2s;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text3);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform .25s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover { background: rgba(255,255,255,.025); }
.faq-item[open] summary { background: rgba(255,255,255,.03); }

.faq-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}

.faq-body p {
  font-size: .875rem;
  color: var(--text2);
  line-height: 1.75;
  margin-top: 1rem;
}

.faq-body p + p { margin-top: .75rem; }

/* Help CTA */
.help-contact-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-top: 2.5rem;
}

.help-contact-cta h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.025em;
  margin-bottom: .5rem;
}

.help-contact-cta p {
  font-size: .875rem;
  color: var(--text2);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* ══ CONTACT PAGE ══ */

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 3rem;
}

.contact-channel {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  padding: 1.5rem;
  transition: background .2s;
}

.contact-channel:hover { background: var(--surface2); }

.contact-channel-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.contact-channel strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .25rem;
  color: var(--text);
}

.contact-channel span {
  display: block;
  font-size: .8rem;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: .5rem;
}

.contact-link {
  font-family: 'DM Mono', monospace;
  font-size: .78rem;
  color: var(--cyan);
  text-decoration: none;
}

.contact-link:hover { text-decoration: underline; }

/* Contact form */
.contact-form-wrap {
  margin-bottom: 3rem;
}

.contact-form-wrap h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .5rem;
}

.contact-form-wrap > p {
  font-size: .875rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field { display: flex; flex-direction: column; gap: .4rem; }

.form-field label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text3);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .7rem .9rem;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,212,255,.1);
}

.form-field select option { background: var(--surface); }

.form-field textarea { resize: vertical; min-height: 140px; }

.form-success {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: .875rem;
}

.form-success > span {
  font-size: 1.1rem;
  color: var(--green);
  flex-shrink: 0;
  margin-top: .1rem;
}

.form-success strong {
  display: block;
  color: var(--green);
  font-weight: 700;
  margin-bottom: .2rem;
}

.form-success span:last-child { color: var(--text2); }

.form-error {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .82rem;
  color: #f87171;
}

.form-error a { color: #f87171; }

/* Response times */
.response-times {
  margin-top: 1rem;
}

.response-times h3 {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 1rem;
}

.rt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.rt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.rt-card p {
  font-size: .8rem;
  color: var(--text2);
  line-height: 1.6;
  margin: 0;
}

.rt-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .25rem .65rem;
  border-radius: 100px;
  width: fit-content;
}

.rt-green { background: rgba(34,197,94,.15);  color: var(--green); }
.rt-amber { background: rgba(245,158,11,.15); color: var(--amber); }
.rt-blue  { background: rgba(0,212,255,.15);  color: var(--cyan); }

/* ══ STATUS PAGE ══ */

.status-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid;
  margin-bottom: 2.5rem;
}

.status-operational {
  background: rgba(34,197,94,.08);
  border-color: rgba(34,197,94,.25);
}

.status-degraded {
  background: rgba(245,158,11,.08);
  border-color: rgba(245,158,11,.25);
}

.status-outage {
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.25);
}

.status-banner-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

.status-operational .status-banner-dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-degraded   .status-banner-dot { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.status-outage     .status-banner-dot { background: #ef4444;      box-shadow: 0 0 8px #ef4444; }

.status-banner strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .2rem;
}

.status-operational strong { color: var(--green); }
.status-degraded   strong { color: var(--amber); }
.status-outage     strong { color: #f87171; }

.status-banner span {
  font-size: .8rem;
  color: var(--text2);
}

.status-services { margin-bottom: 2.5rem; }

.status-services > h2 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 1.5rem;
}

.status-group { margin-bottom: 2rem; }

.status-group h3 {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

.status-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.status-row:last-child { border-bottom: none; }
.status-row:hover { background: var(--surface2); }

.status-info {
  display: flex;
  align-items: center;
  gap: .875rem;
  flex: 1;
  min-width: 0;
}

.status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.dot-amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.dot-red   { background: #ef4444;      box-shadow: 0 0 6px #ef4444; }

.status-info strong {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .15rem;
}

.status-info span {
  font-size: .76rem;
  color: var(--text3);
  line-height: 1.5;
}

.status-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .25rem .7rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

.lbl-operational { background: rgba(34,197,94,.12);  color: var(--green); }
.lbl-degraded    { background: rgba(245,158,11,.12); color: var(--amber); }
.lbl-outage      { background: rgba(239,68,68,.12);  color: #f87171; }
.lbl-maintenance { background: rgba(0,212,255,.12);  color: var(--cyan); }

/* Incident history */
.incident-history {
  margin-bottom: 2.5rem;
}

.incident-history h2 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}

.incident-none {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.incident-none > span { font-size: 1.4rem; flex-shrink: 0; }
.incident-none strong { display: block; font-size: .9rem; font-weight: 700; margin-bottom: .25rem; }
.incident-none span:last-child { font-size: .8rem; color: var(--text2); }

/* Uptime strip */
.uptime-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
}

.uptime-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
}

.uptime-num {
  font-family: 'DM Mono', monospace;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: -.02em;
  line-height: 1.1;
}

.uptime-label {
  font-size: .72rem;
  color: var(--text3);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: .35rem;
}

.uptime-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .support-wrap { padding: 0 1rem 4rem; }
  .support-page .back-link { padding-left: 1rem; padding-right: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .uptime-strip { flex-direction: column; gap: 1.25rem; }
  .uptime-divider { width: 48px; height: 1px; }
  .uptime-item { padding: 0; }
  .help-role-grid { grid-template-columns: 1fr; }
  .rt-grid { grid-template-columns: 1fr; }
}
