/* ==========================================================================
   Taxi Platform — Driver Online Application
   Shared stylesheet: clean, professional, responsive (mobile + desktop).
   ========================================================================== */

:root {
  --brand: #006ddc;
  --brand-dark: #0053a8;
  --brand-soft: #e8f1fb;
  --ink: #1c2733;
  --muted: #5c6b7a;
  --line: #dbe3eb;
  --bg: #f3f6fa;
  --card: #ffffff;
  --ok: #1e8e4e;
  --warn: #b47a00;
  --danger: #c0392b;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16, 34, 54, 0.08), 0 4px 16px rgba(16, 34, 54, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- Header */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 94px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
}

.brand strong { display: block; font-size: 1.15rem; letter-spacing: -.01em; }
.brand small {
  display: block;
  font-weight: 500;
  font-size: 11.5px;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 700;
}

.nav a { padding: 10px 2px; color: var(--ink); white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--brand); border-bottom-color: var(--brand); text-decoration: none; }
.header-call { display: inline-flex; min-height: 50px; align-items: center; padding: 0 22px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 16px; font-weight: 800; white-space: nowrap; }
.header-call:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }

@media (max-width: 980px) { .nav { gap: 11px; } .header-call { padding: 0 10px; } }
@media (max-width: 720px) { .header-inner { min-height: 0; align-items: flex-start; flex-wrap: wrap; padding: 12px 20px; } .brand { min-width: 0; } .nav { order: 3; width: 100%; justify-content: flex-start; flex-wrap: wrap; margin-left: 0; } .header-call { margin-left: auto; } }
@media (max-width: 480px) { .brand img { width: 42px; height: 42px; } .brand strong { font-size: 1rem; } .nav { gap: 7px 13px; font-size: 13px; } }

/* ------------------------------------------------------------- Stepper */

.stepper {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px 18px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.step {
  flex: 1;
  min-width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  color: var(--muted);
}

.step::after {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 2px;
  background: var(--line);
}

.step:last-child::after { display: none; }

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  z-index: 1;
}

.step-label {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.step.done .step-dot {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}

.step.done::after { background: var(--ok); }

.step.active .step-dot {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.step.active .step-label { color: var(--brand); }

/* ----------------------------------------------------------------- Layout */

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 20px;
}

.card h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
}

.card .lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  max-width: 70ch;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--brand);
  margin: 26px 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.section-title:first-child { margin-top: 0; }

/* ------------------------------------------------------------------ Form */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.field label .req { color: var(--danger); }

.field .hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 109, 220, 0.15);
}

.field input.invalid,
.field select.invalid {
  border-color: var(--danger);
}

.field .error-msg {
  display: none;
  font-size: 12px;
  color: var(--danger);
}

.field.invalid .error-msg { display: block; }

/* Radio / checkbox groups */
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }

.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
}

.choice:hover { border-color: var(--brand); }

.choice input { accent-color: var(--brand); width: 16px; height: 16px; }

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  padding: 8px 0;
}

.check-line input { accent-color: var(--brand); width: 17px; height: 17px; margin-top: 2px; }

.check-line .hint { display: block; margin-top: 2px; }

/* ---------------------------------------------------------------- Upload */

.upload-box {
  border: 2px dashed var(--line);
  border-radius: 8px;
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.upload-box:hover { border-color: var(--brand); background: var(--brand-soft); }

.upload-box .u-icon { font-size: 22px; }
.upload-box .u-title { font-weight: 600; font-size: 14px; margin-top: 4px; }
.upload-box .u-hint { font-size: 12px; color: var(--muted); margin-top: 2px; }

.upload-box input[type="file"] { display: none; }

.upload-file {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  background: var(--brand-soft);
  border: 1px solid #c6dcf4;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
}

.upload-file.show { display: flex; }

.upload-file .f-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-file .f-remove {
  color: var(--danger);
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

/* -------------------------------------------------------------- Buttons */

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

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

.btn-primary:hover { background: var(--brand-dark); }

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }

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

/* ---------------------------------------------------------------- Home */

.hero {
  background: linear-gradient(135deg, #0b2c52 0%, #006ddc 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 52px 36px;
  margin-bottom: 24px;
}

.hero h1 { font-size: 34px; margin: 0 0 12px; line-height: 1.2; }

.hero p { font-size: 17px; max-width: 60ch; margin: 0 0 24px; opacity: 0.92; }

.hero .btn-primary { background: #fff; color: var(--brand-dark); font-size: 16px; padding: 14px 30px; }
.hero .btn-primary:hover { background: #e8f1fb; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.feature .f-icon { font-size: 24px; }
.feature h3 { margin: 10px 0 6px; font-size: 16px; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.info-list li:last-child { border-bottom: none; }
.info-list .tick { color: var(--ok); font-weight: 700; }

.steps-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 6px;
}

.steps-overview .so-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.steps-overview .so-step .so-num {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

/* -------------------------------------------------------------- Submit */

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 28px;
}

.summary-grid .s-item { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary-grid .s-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.summary-grid .s-value { font-weight: 600; }

.consent {
  background: var(--brand-soft);
  border: 1px solid #c6dcf4;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 6px;
}

.banner {
  text-align: center;
  padding: 48px 24px;
}

.banner .b-icon { font-size: 44px; }
.banner h1 { margin: 12px 0 8px; }

.note {
  font-size: 13px;
  color: var(--muted);
  background: #fbfcfe;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 18px;
}

/* ------------------------------------------------------------ Responsive */

@media (max-width: 860px) {
  .form-grid,
  .feature-grid,
  .summary-grid,
  .two-col { grid-template-columns: 1fr; }

  .steps-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hero { padding: 36px 22px; }
  .hero h1 { font-size: 27px; }

  .card { padding: 20px 16px; }

  .actions { flex-direction: column-reverse; align-items: stretch; }
  .actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .step { min-width: 72px; }
  .step-label { font-size: 11px; }
  .header-inner { padding: 12px 14px; }
  .page { padding: 20px 14px 48px; }
}
