/* carnivaltransportation.app | public/assets/css/main.css */
/* MCM VERSION: v2.4.1-20260428 */
/* responsive global design system for header, footer, and shared ui */

:root {
  --MCM-blue: #225aa7;
  --MCM-purple: #9932cc;
  --MCM-gradient: linear-gradient(135deg, #225aa7, #9932cc);
  --MCM-light-gray: #f7f8fb;
  --MCM-mid-gray: #e5e7eb;
  --MCM-dark-text: #1f2937;
  --MCM-body-text: #374151;
  --MCM-muted: #6b7280;
  --MCM-white: #ffffff;
  --MCM-border: #e5e7eb;
  --MCM-brand: #225aa7;
  --MCM-accent: #9932cc;
  --MCM-header-blue: #0b3f91;
  --MCM-radius-sm: 8px;
  --MCM-radius-md: 12px;
  --MCM-radius-lg: 16px;
  --MCM-radius-xl: 22px;
  --MCM-radius-pill: 999px;
  --MCM-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --MCM-shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
  --MCM-shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.12);
  --MCM-font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --MCM-font-head: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --MCM-transition: 0.16s ease;
}

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

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--MCM-light-gray);
  color: var(--MCM-dark-text);
  font-family: var(--MCM-font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
}

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button, input, textarea, select {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button { cursor: pointer; }

:focus-visible {
  outline: 3px solid rgba(34, 90, 167, 0.35);
  outline-offset: 3px;
  border-radius: 8px;
}

.MCM-safe-top { padding-top: env(safe-area-inset-top, 0px); }
.MCM-safe-bottom { padding-bottom: env(safe-area-inset-bottom, 0px); }

.MCM-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.MCM-menu-open { overflow: hidden; }

.MCM-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 0 calc(40px + env(safe-area-inset-bottom, 0px));
}

.MCM-container {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px;
}

.MCM-card {
  background: var(--MCM-white);
  border: 1px solid var(--MCM-border);
  border-radius: var(--MCM-radius-lg);
  padding: 20px;
  box-shadow: var(--MCM-shadow-sm);
}

.MCM-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 13px 20px;
  border: 0;
  border-radius: var(--MCM-radius-md);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: opacity var(--MCM-transition), transform 0.1s ease;
  user-select: none;
  touch-action: manipulation;
}

.MCM-btn:active:not(:disabled) {
  transform: scale(0.98);
  opacity: 0.86;
}

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

.MCM-btn-primary { background: var(--MCM-brand); color: var(--MCM-white); }
.MCM-btn-gradient { background: var(--MCM-gradient); color: var(--MCM-white); }
.MCM-btn-secondary { background: var(--MCM-white); color: var(--MCM-dark-text); border: 1px solid var(--MCM-border); }
.MCM-btn-full { width: 100%; }

.MCM-h1 {
  font-family: var(--MCM-font-head);
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.MCM-h2 {
  font-family: var(--MCM-font-head);
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.MCM-label {
  color: var(--MCM-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.MCM-field { display: flex; flex-direction: column; gap: 6px; }
.MCM-field label { color: var(--MCM-body-text); font-size: 13px; font-weight: 700; }

.MCM-field-inner {
  display: flex;
  align-items: center;
  min-height: 44px;
  overflow: hidden;
  background: var(--MCM-white);
  border: 1.5px solid var(--MCM-border);
  border-radius: var(--MCM-radius-md);
  transition: border-color var(--MCM-transition), box-shadow var(--MCM-transition);
}

.MCM-field-inner:focus-within {
  border-color: var(--MCM-brand);
  box-shadow: 0 0 0 4px rgba(34, 90, 167, 0.1);
}

.MCM-field-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 12px 0 14px;
  color: var(--MCM-muted);
}

.MCM-field-icon svg { width: 16px; height: 16px; }

.MCM-input, .MCM-textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--MCM-dark-text);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.MCM-input { padding: 12px 14px 12px 0; }
.MCM-textarea { min-height: 88px; padding: 12px 14px; resize: none; line-height: 1.55; }
.MCM-input::placeholder, .MCM-textarea::placeholder { color: #9ca3af; }

.MCM-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 400px) { .MCM-row { grid-template-columns: 1fr; } }

.MCM-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: var(--MCM-radius-pill);
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 800;
}

.MCM-badge-blue { background: #dbeafe; color: #1e40af; }
.MCM-badge-purple { background: #f3e8ff; color: #6b21a8; }
.MCM-badge-green { background: #dcfce7; color: #166534; }
.MCM-badge-gray { background: #f3f4f6; color: #4b5563; }
.MCM-badge-amber { background: #fef3c7; color: #92400e; }
.MCM-badge-red { background: #fee2e2; color: #991b1b; }

@keyframes MCM-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.MCM-skeleton {
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  border-radius: var(--MCM-radius-md);
  animation: MCM-shimmer 1.4s infinite;
}

.MCM-error-state {
  padding: 40px 20px;
  color: var(--MCM-muted);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

/* global header */
.MCM-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--MCM-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.MCM-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: 76px;
  margin: 0 auto;
  padding: 10px 14px;
  gap: 10px;
}

.MCM-header-brand-area {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  max-width: 100%;
  gap: 10px;
}

.MCM-header-logo-link,
.MCM-header-title-link {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.MCM-header-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 2px solid rgba(17, 24, 39, 0.08);
  border-radius: 50%;
  background: #eef2f7;
  box-shadow: var(--MCM-shadow-sm);
}

.MCM-header-logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.MCM-header-logo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 58%;
  height: 58%;
  color: var(--MCM-brand);
}

.MCM-header-logo-fallback svg {
  width: 100%;
  height: 100%;
}

.MCM-logo-fallback-active .MCM-header-logo-fallback { display: inline-flex; }
.MCM-header-logo-wrap:not(.MCM-logo-fallback-active) .MCM-header-logo-fallback { display: none; }

.MCM-header-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  gap: 2px;
}

.MCM-header-title {
  display: block;
  width: min-content;
  max-width: 100%;
  color: var(--MCM-header-blue);
  font-family: var(--MCM-font-head);
  font-size: clamp(22px, 6.2vw, 27px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.MCM-header-title-line { display: block; }

.MCM-header-byline {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  width: fit-content;
  max-width: 100%;
  gap: 4px;
  color: var(--MCM-body-text);
  font-size: clamp(12px, 3.6vw, 14px);
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
}

.MCM-header-byline-prefix,
.MCM-header-byline-link-wrap {
  display: inline-flex;
  min-width: 0;
}

.MCM-header-byline-link {
  color: var(--MCM-header-blue);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.MCM-header-actions {
  display: none;
}

.MCM-header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.1s ease, opacity var(--MCM-transition), background var(--MCM-transition), color var(--MCM-transition);
  user-select: none;
  touch-action: manipulation;
}

.MCM-header-login svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.MCM-header-login:active {
  transform: scale(0.98);
  opacity: 0.88;
}

.MCM-header-login-outline {
  background: var(--MCM-white);
  border: 1.5px solid var(--MCM-brand);
  color: var(--MCM-brand);
}

.MCM-header-login-filled {
  background: var(--MCM-brand);
  border: 1.5px solid var(--MCM-brand);
  color: var(--MCM-white);
  box-shadow: 0 8px 18px rgba(34, 90, 167, 0.18);
}

.MCM-header-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--MCM-border);
  border-radius: 14px;
  background: var(--MCM-white);
  color: var(--MCM-dark-text);
  box-shadow: var(--MCM-shadow-sm);
}

.MCM-header-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.MCM-header-menu-btn.MCM-menu-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.MCM-header-menu-btn.MCM-menu-open span:nth-child(2) { opacity: 0; }
.MCM-header-menu-btn.MCM-menu-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.MCM-header-mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--MCM-border);
  border-bottom: 1px solid var(--MCM-border);
  box-shadow: var(--MCM-shadow-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.MCM-header-mobile-menu.MCM-mobile-menu-open { display: flex; }
.MCM-header-mobile-menu[hidden] { display: none !important; }

.MCM-mobile-link,
.MCM-mobile-cta {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 750;
  line-height: 1;
}

.MCM-mobile-link { color: var(--MCM-dark-text); }
.MCM-mobile-link-active { color: var(--MCM-brand); background: rgba(34, 90, 167, 0.08); }
.MCM-mobile-link:active { background: rgba(34, 90, 167, 0.08); }

.MCM-mobile-divider {
  display: block;
  height: 1px;
  margin: 6px 4px;
  background: var(--MCM-border);
}

.MCM-mobile-cta {
  justify-content: center;
  margin-top: 4px;
  background: var(--MCM-brand);
  color: var(--MCM-white);
}

/* global footer */
.MCM-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 34px 20px calc(34px + env(safe-area-inset-bottom, 0px));
  background: var(--MCM-white);
  border-top: 1px solid var(--MCM-border);
  text-align: center;
}

.MCM-footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 6px;
}

.MCM-footer-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 8px;
  border-radius: var(--MCM-radius-sm);
  color: var(--MCM-brand);
  font-size: 13px;
  font-weight: 650;
  transition: background var(--MCM-transition), color var(--MCM-transition);
}

.MCM-footer-brand-link {
  color: var(--MCM-dark-text);
  font-weight: 850;
}

.MCM-footer-nav-link:active { background: rgba(34, 90, 167, 0.08); }

.MCM-footer-dot {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1;
  user-select: none;
}

.MCM-footer-desc {
  max-width: 520px;
  color: var(--MCM-muted);
  font-size: 14px;
  line-height: 1.5;
}

.MCM-footer-desc-link {
  color: var(--MCM-brand);
  font-weight: 750;
}

.MCM-footer-legal {
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.5;
}

.MCM-footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: 4px;
  border: 1.5px solid var(--MCM-border);
  border-radius: 50%;
  color: var(--MCM-brand);
  transition: border-color var(--MCM-transition), background var(--MCM-transition), transform 0.1s ease;
}

.MCM-footer-social svg {
  width: 20px;
  height: 20px;
}

.MCM-footer-social:active {
  transform: scale(0.97);
  background: rgba(34, 90, 167, 0.08);
}

.MCM-toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 999;
  max-width: min(92vw, 420px);
  transform: translateX(-50%);
  padding: 12px 16px;
  border-radius: 14px;
  background: #111827;
  color: #ffffff;
  box-shadow: var(--MCM-shadow-lg);
  font-size: 14px;
  font-weight: 700;
}

.MCM-toast-success { background: #166534; }
.MCM-toast-error { background: #991b1b; }
.MCM-toast-warning { background: #92400e; }
.MCM-toast-hide { opacity: 0; transition: opacity 0.18s ease; }

@media (max-width: 360px) {
  .MCM-header-inner {
    min-height: 68px;
    padding: 9px 10px;
    gap: 8px;
  }

  .MCM-header-brand-area { gap: 8px; }

  .MCM-header-logo-wrap {
    width: 44px;
    height: 44px;
  }

  .MCM-header-title {
    font-size: 20px;
    letter-spacing: -0.05em;
  }

  .MCM-header-byline {
    font-size: 12px;
  }

  .MCM-header-menu-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
}

@media (min-width: 700px) {
  .MCM-header-inner {
    min-height: 86px;
    padding: 14px 22px;
    gap: 16px;
  }

  .MCM-header-brand-area { gap: 14px; }

  .MCM-header-logo-wrap {
    width: 60px;
    height: 60px;
  }

  .MCM-header-title {
    width: auto;
    font-size: clamp(25px, 3.4vw, 32px);
    line-height: 1.03;
  }

  .MCM-header-title-line { display: inline; }
  .MCM-header-title-line + .MCM-header-title-line::before { content: " "; }

  .MCM-header-byline { font-size: 14px; }
}

@media (min-width: 901px) {
  .MCM-header-inner {
    max-width: 1280px;
    min-height: 96px;
    padding: 14px clamp(22px, 3vw, 36px);
    gap: clamp(18px, 4vw, 44px);
  }

  .MCM-header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    gap: 10px;
  }

  .MCM-header-menu-btn { display: none !important; }

  .MCM-header-mobile-menu,
  .MCM-header-mobile-menu.MCM-mobile-menu-open {
    display: none !important;
  }
}

@media (min-width: 1180px) {
  .MCM-header-inner {
    max-width: none;
    min-height: 148px;
    padding: 18px clamp(28px, 4vw, 48px);
  }

  .MCM-header-brand-area { gap: clamp(18px, 2.5vw, 28px); }

  .MCM-header-logo-wrap {
    width: clamp(92px, 8vw, 112px);
    height: clamp(92px, 8vw, 112px);
  }

  .MCM-header-title {
    width: min-content;
    max-width: 460px;
    font-size: clamp(38px, 4vw, 48px);
    line-height: 0.98;
  }

  .MCM-header-title-line { display: block; }
  .MCM-header-title-line + .MCM-header-title-line::before { content: none; }

  .MCM-header-byline {
    font-size: clamp(18px, 2.1vw, 25px);
    line-height: 1.1;
  }

  .MCM-header-actions {
    flex-direction: column;
    align-items: stretch;
    width: clamp(260px, 24vw, 310px);
    gap: 12px;
  }

  .MCM-header-login {
    width: 100%;
    min-height: 62px;
    padding: 12px 22px;
    border-radius: 16px;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 850;
    gap: 14px;
  }

  .MCM-header-login svg {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --MCM-light-gray: #111827;
    --MCM-mid-gray: #293241;
    --MCM-dark-text: #f9fafb;
    --MCM-body-text: #d1d5db;
    --MCM-muted: #9ca3af;
    --MCM-white: #161f2e;
    --MCM-border: #2b3648;
    --MCM-header-blue: #8ab4ff;
  }

  .MCM-header,
  .MCM-header-mobile-menu {
    background: rgba(17, 24, 39, 0.96);
  }

  .MCM-header-login-outline {
    background: transparent;
  }

  .MCM-header-logo-wrap {
    background: #1f2937;
  }

  .MCM-footer {
    background: #111827;
  }

  .MCM-skeleton {
    background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%);
    background-size: 200% 100%;
  }
}
