/* ============================================================
   eCarPass — Global Design System
   Apple + CRED inspired minimal premium aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* -----------------------------------------------------------
   CSS Custom Properties
   ----------------------------------------------------------- */
:root {
  /* Colors */
  --navy: #000000;
  --navy-800: #000000;
  --navy-700: #111111;
  --navy-600: #1a1a1a;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-dark: #a8873a;
  --surface: #000000;
  --surface-2: #111111;
  --surface-3: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #c7c7c7;
  --text-muted: #8f8f8f;
  --border: rgba(255, 255, 255, 0.16);
  --border-focus: #c9a84c;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .04);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .12), 0 4px 16px rgba(0, 0, 0, .06);
  --shadow-xl: 0 32px 80px rgba(0, 0, 0, .16), 0 8px 24px rgba(0, 0, 0, .08);

  /* Designation */
  --advocate-color: #1a1a2e;
  --advocate-bg: rgba(26, 26, 46, .08);
  --employee-color: #c0392b;
  --employee-bg: rgba(192, 57, 43, .08);

  /* Status */
  --pending-color: #92400e;
  --pending-bg: #fffbeb;
  --approved-color: #065f46;
  --approved-bg: #ecfdf5;
  --rejected-color: #991b1b;
  --rejected-bg: #fef2f2;

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --max-w: 1200px;
  --transition: 200ms cubic-bezier(.4, 0, .2, 1);
}

/* -----------------------------------------------------------
   Reset & Base
   ----------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: #000000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-wrapper,
.verify-page,
.admin-wrapper,
.landing-page {
  background: #000000;
}

a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color var(--transition);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* -----------------------------------------------------------
   Typography
   ----------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-muted {
  color: var(--text-muted);
}

.text-secondary {
  color: var(--text-secondary);
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

/* -----------------------------------------------------------
   Layout
   ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -----------------------------------------------------------
   Cards
   ----------------------------------------------------------- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-body {
  padding: 32px;
}

.card-body-sm {
  padding: 24px;
}

/* -----------------------------------------------------------
   Buttons
   ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--navy-800);
  color: var(--gold);
  border-color: var(--navy-800);
}

.btn-primary:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: var(--gold-light);
  box-shadow: 0 4px 20px rgba(26, 26, 46, .3);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-800);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 4px 20px rgba(201, 168, 76, .4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, .28);
}

.btn-outline:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--surface-2);
}

.btn-danger {
  background: #000000;
  color: #f87171;
  border-color: #991b1b;
}

.btn-danger:hover {
  background: #111111;
  border-color: #f87171;
}

.btn-success {
  background: #000000;
  color: #4ade80;
  border-color: #166534;
}

.btn-success:hover {
  background: #111111;
  border-color: #4ade80;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* -----------------------------------------------------------
   Form Elements
   ----------------------------------------------------------- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.form-label .required {
  color: #f87171;
  margin-left: 2px;
}

.form-control {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-control:hover {
  border-color: rgba(26, 26, 46, .20);
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .08);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control.error {
  border-color: #000000;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6b8a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-error {
  font-size: 0.8125rem;
  color: #f87171;
  margin-top: 6px;
  display: none;
}

.form-error.show {
  display: block;
}

/* -----------------------------------------------------------
   Badge
   ----------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

/* -----------------------------------------------------------
   Alerts / Flash
   ----------------------------------------------------------- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  border-left: 4px solid;
  margin-bottom: 20px;
}

.alert-success {
  background: #000000;
  color: #4ade80;
  border-color: #4ade80;
}

.alert-error {
  background: #000000;
  color: #f87171;
  border-color: #f87171;
}

.alert-info {
  background: #000000;
  color: #93c5fd;
  border-color: #93c5fd;
}

.alert-warning {
  background: #000000;
  color: #facc15;
  border-color: #facc15;
}

/* -----------------------------------------------------------
   Site Header (Public)
   ----------------------------------------------------------- */
.site-header {
  background: var(--navy-800);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(20px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo img {
  height: 38px;
  width: auto;
}

.site-logo-text {
  display: flex;
  flex-direction: column;
}

.site-logo-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.05em;
  line-height: 1;
}

.site-logo-sub {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, .5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .75);
  transition: all var(--transition);
}

.site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.site-nav a.active {
  color: var(--gold);
}

/* -----------------------------------------------------------
   Site Footer (Public)
   ----------------------------------------------------------- */
.site-footer {
  background: var(--navy-800);
  color: rgba(255, 255, 255, .45);
  text-align: center;
  padding: 24px;
  font-size: 0.8125rem;
  margin-top: auto;
}

.site-footer a {
  color: rgba(255, 255, 255, .6);
}

.site-footer a:hover {
  color: var(--gold);
}

/* -----------------------------------------------------------
   Page Wrapper
   ----------------------------------------------------------- */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
  padding: 48px 0;
}

/* -----------------------------------------------------------
   Page Header
   ----------------------------------------------------------- */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.page-header h1 {
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* -----------------------------------------------------------
   Loading Spinner
   ----------------------------------------------------------- */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}

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

/* -----------------------------------------------------------
   Utility
   ----------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mt-auto {
  margin-top: auto;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.text-center {
  text-align: center;
}

.w-100 {
  width: 100%;
}

/* -----------------------------------------------------------
   Responsive
   ----------------------------------------------------------- */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .container-narrow {
    padding: 0 16px;
  }

  .card-body {
    padding: 24px;
  }

  .page-main {
    padding: 32px 0;
  }

  .btn-lg {
    padding: 14px 28px;
  }
}