/* ========================================================================
   INOTELS — Shared styles (used by all pages: portal, driver, guide, signup)
   ======================================================================== */

:root {
  --brand-primary: #1e6fa8;
  --brand-primary-dark: #155488;
  --brand-accent: #2b8ecf;
  --bg-card: #ffffff;
  --text-primary: #0f2438;
  --text-secondary: #5a6b7d;
  --text-muted: #8a98a8;
  --border-soft: #e3e8ee;
  --border-input: #d8dee5;
  --shadow-card: 0 30px 60px -20px rgba(15, 36, 56, 0.18), 0 8px 20px -8px rgba(15, 36, 56, 0.08);
  --radius-card: 14px;
  --radius-input: 9px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  color: var(--text-primary);
  background: #094280;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============= PAGE BACKGROUND (matches the Inotels home page) ============= */
.page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #094280 0%, #3c8cc8 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9,64,126,0.35) 0%, rgba(9,64,126,0) 55%);
  z-index: 0;
}
.hero-bg::after { content: none; }
.skyline-strip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 110px;
  background: linear-gradient(180deg, rgba(9, 66, 128, 0) 0%, rgba(9, 66, 128, 0.26) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ============= TOP BAR ============= */
.top-bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 48px;
}
.brand { display: flex; flex-direction: column; gap: 2px; }
.brand-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.5px;
  color: var(--brand-primary);
  line-height: 1;
  text-decoration: none;
}
.brand-logo .i-dot { color: var(--brand-accent); }
/* Image logo (replaces the text wordmark on all public pages) */
.brand-logo-link { display: inline-flex; align-items: center; }
.brand-logo-img { height: 32px; width: auto; display: block; }
@media (max-width: 560px) { .brand-logo-img { height: 26px; } }
.brand-tagline {
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 4px;
}
/* ============= CARD (centered login) ============= */
.center-wrap {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 24px 80px;
  min-height: calc(100vh - 200px);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 44px 44px 36px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255,255,255,0.6);
  animation: cardIn .6s cubic-bezier(.22,1,.36,1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Icon shown at the top of role cards */
.role-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2b8ecf 0%, #1e6fa8 100%);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  box-shadow: 0 10px 24px -8px rgba(30, 111, 168, 0.45);
}
.role-icon svg { width: 30px; height: 30px; }

.card-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
}
.card-sub {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
  margin-bottom: 28px;
}
.card-foot {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 22px;
  line-height: 1.55;
}
.card-foot a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
}
.card-foot a:hover { text-decoration: underline; }

/* ============= FORM FIELDS ============= */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap svg.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}
.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 44px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-input);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: #fbfcfd;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.input-wrap textarea {
  height: auto;
  min-height: 92px;
  padding: 12px 14px 12px 44px;
  resize: vertical;
  line-height: 1.4;
}
.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
  outline: none;
  border-color: var(--brand-accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(43, 142, 207, 0.12);
}
.input-wrap input::placeholder,
.input-wrap textarea::placeholder { color: #b3bdc8; }
.input-wrap select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a98a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

.toggle-eye {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 6px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  transition: color .2s ease, background .2s ease;
}
.toggle-eye:hover { color: var(--brand-primary); background: rgba(30,111,168,0.06); }
.toggle-eye svg { width: 18px; height: 18px; }

/* ============= BUTTONS ============= */
.btn-primary {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: var(--radius-input);
  background: linear-gradient(135deg, #2b8ecf 0%, #1e6fa8 100%);
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .25s ease, filter .2s ease;
  box-shadow: 0 8px 20px -6px rgba(30, 111, 168, 0.45);
  letter-spacing: 0.2px;
}
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 12px 26px -6px rgba(30, 111, 168, 0.55); }
.btn-primary:active { transform: translateY(1px); }

/* ============= COPYRIGHT ============= */
.copyright {
  position: absolute;
  bottom: 14px;
  left: 24px;
  font-size: 12px;
  color: #4a5d70;
  z-index: 5;
}

/* ============= LOGIN STATES (used by all role pages) ============= */
.btn-primary:disabled {
  cursor: not-allowed;
  filter: grayscale(0.4) brightness(0.95);
  box-shadow: none;
}
.btn-primary .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -3px;
  margin-right: 8px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-error {
  display: none;
  margin: -4px 0 16px;
  padding: 10px 12px;
  background: #fdecec;
  border: 1px solid #f4b5b5;
  border-radius: 9px;
  color: #8c1f1f;
  font-size: 13px;
  line-height: 1.35;
}
.form-error[data-visible="true"] { display: block; }

/* ============= TOP-BAR NAV (content pages) ============= */
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  transition: color .2s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a.is-active { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.nav-links a.nav-cta {
  padding: 9px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2b8ecf 0%, #1e6fa8 100%);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(30, 111, 168, 0.5);
}
.nav-links a.nav-cta:hover { color: #fff; filter: brightness(1.05); }

/* ============= CONTENT / LEGAL PAGES ============= */
/* Shared layout for About Us, Privacy Policy, Terms & Conditions.
   Reuses .page / .hero-bg / .skyline-strip / .top-bar / .brand-logo. */
.legal-wrap {
  position: relative;
  z-index: 4;
  padding: 32px 24px 96px;
  display: flex;
  justify-content: center;
}
.legal-card {
  width: 100%;
  max-width: 880px;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 56px 60px 52px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255,255,255,0.6);
  animation: cardIn .6s cubic-bezier(.22,1,.36,1) both;
}
.legal-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 10px;
}
.legal-card h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text-primary);
}
.legal-updated {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.legal-lead {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.6;
  color: #2a4a6a;
}
.legal-card h2 {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
}
.legal-card h2:first-of-type { border-top: none; padding-top: 0; }
.legal-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 22px 0 8px;
}
.legal-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.legal-card ul {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
}
.legal-card ul li {
  position: relative;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  padding-left: 26px;
  margin-bottom: 10px;
}
.legal-card ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-accent);
}
.legal-card ul li strong { color: var(--text-primary); font-weight: 600; }
.legal-card a { color: var(--brand-primary); font-weight: 600; text-decoration: none; }
.legal-card a:hover { text-decoration: underline; }

/* Footer inside the content flow — cross-links + back to login */
.legal-foot {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.legal-foot .foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.legal-foot .foot-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
}
.legal-foot .foot-links a:hover { color: var(--brand-primary); }
.legal-foot .foot-copy {
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.7;
}
.powered-by { display: block; }
.powered-by a { color: var(--brand-primary); font-weight: 600; text-decoration: none; }
.powered-by a:hover { text-decoration: underline; }

/* ============= RESPONSIVE ============= */
@media (max-width: 768px) {
  .legal-card { padding: 40px 26px 36px; }
  .legal-card h1 { font-size: 32px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 560px) {
  .top-bar { padding: 16px 18px; }
  .auth-card { padding: 32px 24px 28px; }
  .copyright { left: 16px; font-size: 11px; }
  .legal-wrap { padding: 20px 14px 72px; }
  .legal-card { padding: 32px 20px 30px; }
  .legal-card h1 { font-size: 27px; }
  .legal-foot { flex-direction: column; align-items: flex-start; }
  .legal-foot .foot-copy { text-align: left; }
}

/* ============= CONTACT US ============= */
.contact-page { overflow: auto; }
.contact-wrap {
  position: relative;
  z-index: 4;
  width: min(1120px, calc(100% - 48px));
  margin: 28px auto 64px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}
.contact-intro {
  padding: 52px 46px;
  border-radius: 18px 0 0 18px;
  color: #fff;
  background: linear-gradient(145deg, #094280, #2b8ecf);
  box-shadow: var(--shadow-card);
}
.contact-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.contact-intro h1 { margin-top: 10px; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; }
.contact-intro > p:not(.contact-eyebrow) { margin-top: 18px; line-height: 1.7; color: rgba(255,255,255,.86); }
.contact-list { display: grid; gap: 10px; margin-top: 34px; font-style: normal; }
.contact-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  background: rgba(255,255,255,.08);
}
.contact-item span { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.82); }
.contact-item:hover,
.contact-item:focus-visible { outline: none; border-color: #fff; background: rgba(255,255,255,.15); }
.contact-card {
  padding: 48px;
  border-radius: 0 18px 18px 0;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.contact-card h2 { margin-bottom: 26px; font-size: 28px; }
.contact-card label { display: block; margin: 16px 0 7px; font-size: 13px; font-weight: 600; }
.contact-card label:first-of-type { margin-top: 0; }
.contact-card label span { color: var(--text-muted); font-weight: 400; }
.contact-card input,
.contact-card textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-input);
  background: #fbfcfd;
  color: var(--text-primary);
  font: inherit;
}
.contact-card textarea { min-height: 132px; resize: vertical; }
.contact-card input:focus,
.contact-card textarea:focus { outline: none; border-color: var(--brand-accent); box-shadow: 0 0 0 4px rgba(43,142,207,.12); background: #fff; }
.contact-trap { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contact-status { min-height: 22px; margin: 12px 0; font-size: 13px; line-height: 1.5; }
.contact-status[data-state="loading"] { color: var(--text-secondary); }
.contact-status[data-state="success"] { color: #087443; }
.contact-status[data-state="error"] { color: #9b1c1c; }
.contact-foot {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 28px;
  color: var(--text-secondary);
  font-size: 12px;
}
.contact-foot nav { display: flex; gap: 18px; }
.contact-foot a { color: var(--brand-primary); font-weight: 600; text-decoration: none; }
.contact-foot a:hover,
.contact-foot a:focus-visible { text-decoration: underline; }

@media (max-width: 768px) {
  .contact-wrap { width: min(calc(100% - 28px), 620px); grid-template-columns: 1fr; margin-top: 10px; }
  .contact-intro { padding: 36px 24px; border-radius: 16px 16px 0 0; }
  .contact-card { padding: 34px 22px; border-radius: 0 0 16px 16px; }
  .contact-foot { width: calc(100% - 32px); flex-direction: column; }
}
