/* =========================================================
   Pathway Fleet LLC — style.css (cleaned)
   - Deduped repeated Auth Stepper blocks
   - Centralized colors/shadows into CSS variables
   - Kept existing class names so your pages don't break
   - Merged responsive rules into one place
========================================================= */

/* ==========================
   Reset + Variables
========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --brand-navy: #003366;
  --brand-blue: #0055aa;
  --brand-gold: #ffcc00;

  --text: #003366;
  --bg: #f9f9f9;

  --shadow-sm: 0 2px 6px rgba(0,0,0,0.10);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 14px 40px rgba(0,0,0,0.18);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --border-soft: rgba(0,0,0,0.08);
  --surface: rgba(255,255,255,0.75);
  --surface-2: rgba(0,0,0,0.03);
}

/* ==========================
   Base
========================== */
html { scroll-behavior: smooth; }

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

h2, h3 { color: var(--text); }

a { text-decoration: none; color: inherit; }

:focus-visible {
  outline: 3px solid rgba(255, 204, 0, 0.65);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ==========================
   Header
========================== */
header {
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-blue));
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  gap: 1rem;
}

.logo {
  height: 80px;
  max-width: 220px;
  object-fit: contain;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem 1.5rem;
}

header nav a {
  color: #fff;
  font-weight: bold;
  transition: color 0.2s ease;
}

header nav a:hover { color: var(--brand-gold); }

/* ==========================
   Hero
========================== */
.hero {
  position: relative;
  text-align: center;
  padding: 6rem 2rem;
  color: #fff;
  background: url('../images/pexels-bylukemiller-29566908.jpg') center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.hero > * {
  position: relative;
  z-index: 1;
  color: #fff;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.hero .notice {
  background: rgba(255,250,230,0.9);
  padding: 1rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  color: var(--brand-navy);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ==========================
   Buttons
========================== */
.btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn {
  background: var(--brand-navy);
  color: #fff;
}

.btn:hover {
  background: var(--brand-blue);
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn-primary {
  width: 100%;
  background: #111827;
  color: #fff;
  font-size: 1.05rem;
}

.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ==========================
   Spinner (single source)
========================== */
.spinner,
.auth-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,0.4);
  border-top: 3px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================
   Sections
========================== */
section { padding: 3rem 2rem; }

section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* ==========================
   How it works
========================== */
.how-it-works {
  background: #f7f9fc;
  text-align: center;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.step-box {
  background: #fff;
  padding: 1.5rem;
  border-radius: 15px;
  width: 250px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.step-number {
  background: #6c63ff;
  color: #fff;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  line-height: 50px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  font-weight: bold;
}

/* ==========================
   Pricing
========================== */
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.price-card {
  background: #fff;
  border-radius: 15px;
  padding: 2rem;
  width: 250px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.price-card.economy { border-top: 5px solid #8ab6d6; }
.price-card.standard { border-top: 5px solid #f4a261; }
.price-card.premium { border-top: 5px solid #90be6d; }

.pricing-note {
  text-align: center;
  font-style: italic;
  margin-top: 1rem;
}

/* ==========================
   Application Form
========================== */
.application-section {
  max-width: 700px;
  margin: 3rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.form-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid #cfcfcf;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: rgba(0, 85, 170, 0.65);
  box-shadow: 0 0 0 4px rgba(0, 85, 170, 0.12);
  outline: none;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.checkbox-group label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

#form-message {
  text-align: center;
  margin-top: 1rem;
}

/* ==========================
   FAQ
========================== */
.faq-page {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

.faq-page h1 {
  text-align: center;
  margin-bottom: 30px;
}

.faq-accordion {
  max-width: 800px;
  margin: 2rem auto;
}

.faq-item {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.2rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--brand-navy);
}

.faq-question:hover { background: #f4f7ff; }

.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #fafafa;
}

.faq-answer p {
  padding: 1rem 1.5rem;
  margin: 0;
  color: #444;
  line-height: 1.6;
}

.faq-item.active .faq-answer { max-height: 300px; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-cta {
  text-align: center;
  margin-top: 40px;
}

/* ==========================
   Footer
========================== */
footer {
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-blue));
  color: #fff;
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

/* =========================================================
   Portal / Auth UI
========================================================= */
.auth-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 16px 10px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.auth-card {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-lg);
}

.auth-title { margin: 0 0 4px; }
.auth-subtitle { margin: 0 0 12px; opacity: 0.85; }

.auth-banner {
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
}

.auth-banner.ok { background: rgba(20,120,75,0.16); }
.auth-banner.error { background: rgba(150,30,30,0.14); }

.auth-tabs {
  display: flex;
  gap: 10px;
  margin: 10px 0 14px;
}

.auth-tab {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  color: inherit;
}

.auth-tab.is-active {
  background: rgba(0,85,170,0.12);
  border-color: rgba(0,85,170,0.22);
}

.auth-panel { display: none; }
.auth-panel.is-active { display: block; }

.auth-input-wrap { position: relative; }

.auth-toggle-pass {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.04);
  color: inherit;
  cursor: pointer;
}

.auth-btn-wide { width: 100%; }
.auth-btn-secondary { margin-top: 10px; opacity: 0.92; }
.auth-msg { margin-top: 12px; }

.auth-info-title { margin: 0 0 8px; }
.auth-info-text { margin-top: 0; opacity: 0.85; }

.auth-divider {
  height: 1px;
  background: rgba(0,0,0,0.12);
  margin: 14px 0;
}

.auth-small {
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.35;
}

/* =========================================================
   Dynamic Stepper (Auth + Dashboard)
   (single, deduped definition)
========================================================= */
.auth-steps {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-step {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  position: relative;
  transform: translateY(0);
  transition: transform 180ms ease, background 220ms ease, border-color 220ms ease, opacity 220ms ease;
  animation: fadeSlideIn 240ms ease both;
}

.auth-step:hover { transform: translateY(-2px); }

.auth-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-step-body strong {
  display: block;
  font-size: 14px;
}

.auth-step-body span {
  display: block;
  font-size: 13px;
  opacity: 0.85;
  margin-top: 2px;
}

.auth-step-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.7);
  opacity: 0.95;
  white-space: nowrap;
  min-height: 18px;
}

/* Step states */
.auth-step.is-locked { opacity: 0.55; }
.auth-step.is-locked .auth-step-num { background: rgba(0,0,0,0.35); }

.auth-step.is-done {
  background: rgba(20,120,75,0.10);
  border-color: rgba(20,120,75,0.20);
}
.auth-step.is-done .auth-step-num { background: #14784b; }

.auth-step.is-current {
  background: rgba(0,85,170,0.10);
  border-color: rgba(0,85,170,0.22);
}
.auth-step.is-current::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  border: 2px solid rgba(0,85,170,0.18);
  pointer-events: none;
}

/* Badge colors by state */
.auth-step.is-locked .auth-step-badge {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
}
.auth-step.is-done .auth-step-badge {
  background: rgba(20,120,75,0.12);
  border-color: rgba(20,120,75,0.20);
}
.auth-step.is-current .auth-step-badge {
  background: rgba(0,85,170,0.12);
  border-color: rgba(0,85,170,0.22);
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Dashboard layout
========================================================= */
.dash-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 16px 10px;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.dash-card {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-lg);
}

.dash-title { margin: 0 0 6px; }
.dash-subtitle { margin: 0 0 14px; opacity: 0.85; }

.dash-kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 12px;
  margin-top: 10px;
}

.dash-kv .k { opacity: 0.75; font-weight: 700; }
.dash-kv .v { font-weight: 700; }

.dash-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.dash-actions .btn-primary {
  width: auto;
  min-width: 220px;
}

.dash-actions .btn-primary.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.small-muted {
  font-size: 12px;
  opacity: 0.8;
  line-height: 1.35;
  margin-top: 10px;
}

/* ==========================
   Responsive
========================== */
@media (max-width: 980px) {
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  header { padding: 0.9rem 1rem; }
  .logo { height: 40px; }

  .pricing-grid,
  .steps,
  .form-row {
    flex-direction: column;
  }

  .faq-question {
    font-size: 1rem;
    padding: 1rem;
  }

  .faq-answer p {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }

  .faq-cta { margin-top: 2rem; }

  .faq-cta .btn-primary {
    width: 100%;
    max-width: 320px;
  }

  .auth-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .dash-kv { grid-template-columns: 1fr; }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.7);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
