html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
/* ---------- Theme ---------- */
:root {
  --theme-navy: #14213d;
  --theme-navy-2: #1d3461;
  --theme-red: #e63946;
  --theme-red-dark: #c92f3b;
  --theme-cream: #f8f9fb;
}

body {
  background-color: var(--theme-cream);
}

.navbar-theme {
  background-color: var(--theme-navy);
  border-bottom: 3px solid var(--theme-red);
}

.navbar-theme .navbar-brand {
  font-weight: 700;
  letter-spacing: .3px;
}

.navbar-theme .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.navbar-theme .brand-sub {
  font-size: .72rem;
  font-weight: 500;
  opacity: .8;
  letter-spacing: .4px;
  white-space: normal;
}

@media (max-width: 575.98px) {
  .navbar-theme .navbar-brand {
    min-width: 0;
    flex: 1 1 auto;
    margin-right: .5rem;
  }

  .navbar-theme .brand-sub {
    font-size: .65rem;
    letter-spacing: .2px;
  }
}

.navbar-theme .nav-link {
  color: rgba(255, 255, 255, .8);
}

.navbar-theme .nav-link:hover,
.navbar-theme .nav-link.active {
  color: #fff;
}

.navbar-theme .nav-link.active {
  box-shadow: inset 0 -2px 0 var(--theme-red);
}

.footer-theme {
  background-color: var(--theme-navy);
  color: rgba(255, 255, 255, .7);
}

.footer-theme a {
  color: #fff;
}

.btn-theme {
  color: #fff;
  background-color: var(--theme-red);
  border-color: var(--theme-red);
}

.btn-theme:hover,
.btn-theme:focus {
  color: #fff;
  background-color: var(--theme-red-dark);
  border-color: var(--theme-red-dark);
}

/* Address autocomplete dropdown */
.address-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: .35rem 0;
  background: #fff;
  border-radius: .75rem;
  box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .25);
  text-align: left;
  max-height: 320px;
  overflow-y: auto;
}

.address-suggestions .suggestion {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .6rem 1rem;
  cursor: pointer;
  color: #212529;
}

.address-suggestions .suggestion.active {
  background: #f1f3f5;
}

.suggestion-icon {
  flex: 0 0 auto;
  opacity: .6;
}

.suggestion-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.suggestion-main {
  font-weight: 600;
}

.suggestion-secondary {
  font-size: .85rem;
  color: #6c757d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Blinking location pin ---------- */
.location-pin {
  position: relative;
  display: inline-block;
  animation: pin-blink 1.2s ease-in-out infinite;
}

.location-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 1.1em;
  height: 1.1em;
  margin-left: -.55em;
  border-radius: 50%;
  background: rgba(255, 138, 147, .55);
  z-index: -1;
  animation: pin-pulse 1.2s ease-out infinite;
}

@keyframes pin-blink {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: .35; transform: translateY(-3px); }
}

@keyframes pin-pulse {
  0% { transform: scale(.4); opacity: .9; }
  100% { transform: scale(1.8); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .location-pin, .location-pin::after { animation: none; }
}

.hero-or {
  display: flex;
  align-items: center;
  gap: .75rem;
  max-width: 420px;
  margin: 0 auto 1.25rem;
  color: rgba(255, 255, 255, .7);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero-or::before,
.hero-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .3);
}

/* ---------- Pick up location (Get A Ride) - plain form style ---------- */
.pickup-location-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--theme-navy-2);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pickup-location-link:hover {
  color: var(--theme-red);
}

.pickup-location-link:disabled {
  opacity: .6;
}

.form-or {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: .5rem 0;
  color: #6c757d;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.form-or::before,
.form-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dee2e6;
}

/* ---------- Disclaimer popup ---------- */
.disclaimer .modal-header {
  background: var(--theme-navy);
  color: #fff;
  border-bottom: 3px solid var(--theme-red);
}

.disclaimer .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.disclaimer-intro {
  color: #6c6f75;
  margin-bottom: 1rem;
}

.disclaimer-item {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: .9rem 0;
  border-top: 1px solid #eef0f3;
}

.disclaimer-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(230, 57, 70, .1);
  fill: none;
  stroke: var(--theme-red);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.disclaimer-item h6 {
  font-weight: 600;
  color: var(--theme-navy);
  margin-bottom: .25rem;
}

.disclaimer-item p {
  color: #4a4d53;
  font-size: .95rem;
  margin-bottom: 0;
}

.disclaimer-item .disclaimer-note {
  font-weight: 600;
  color: var(--theme-navy);
  margin-top: .6rem;
}

.disclaimer-list {
  color: #4a4d53;
  font-size: .9rem;
  padding-left: 1.1rem;
  margin: .25rem 0 0;
}

.disclaimer-list li + li {
  margin-top: .3rem;
}
