/* Colbcast — Cars-themed site lock (garage closed) */
html.site-locked body > :not(#site-lock-overlay) {
  visibility: hidden;
}

html.site-locked,
html.site-locked body {
  overflow: hidden;
  height: 100%;
}

#site-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  padding-top: calc(1.25rem + env(safe-area-inset-top));
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, #87ceeb 0%, #e8c88a 38%, #c9956a 62%, #a67c52 100%);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: #1a2332;
}

#site-lock-overlay[hidden] {
  display: none !important;
}

.site-lock__scenery {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 35% at 50% 12%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(180deg, transparent 55%, rgba(80, 50, 30, 0.15) 100%);
}

.site-lock__road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: #4a4a4a;
  border-top: 4px solid #e8c040;
}

.site-lock__road::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(
    90deg,
    #e8e040 0,
    #e8e040 24px,
    transparent 24px,
    transparent 48px
  );
}

.site-lock__card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1.5rem;
  background: rgba(255, 252, 245, 0.96);
  border: 3px solid #1e4d6b;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(26, 35, 50, 0.25);
  text-align: center;
}

.site-lock__light {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.site-lock__bulb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.2);
  background: #555;
}

.site-lock__bulb--red {
  background: #c0392b;
  box-shadow: 0 0 12px rgba(192, 57, 43, 0.7);
}

.site-lock__bulb--amber {
  background: #555;
}

.site-lock__bulb--green {
  background: #555;
}

.site-lock__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c75b2a;
}

.site-lock__title {
  margin: 0 0 0.5rem;
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1e4d6b;
}

.site-lock__lead {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #5c6b7f;
}

.site-lock__proceed {
  margin: 0 0 1.1rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  color: #1e4d6b;
  background: #eef6ff;
  border: 1px solid #b8d4f0;
  border-radius: 8px;
}

.site-lock__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.site-lock__label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a2332;
}

.site-lock__input {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border: 1px solid #c5ced9;
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  -webkit-appearance: none;
}

.site-lock__input:focus {
  outline: 2px solid #1e4d6b;
  outline-offset: 2px;
}

.site-lock__btn {
  min-height: 48px;
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #c75b2a 0%, #a84a22 100%);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.site-lock__btn:hover {
  background: linear-gradient(180deg, #d96a38 0%, #b85328 100%);
}

.site-lock__error {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b42318;
  text-align: center;
}

.site-lock__quote {
  margin: 1.1rem 0 0;
  font-size: 0.8rem;
  font-style: italic;
  color: #8b9aaf;
}

@media (max-width: 380px) {
  .site-lock__card {
    padding: 1.35rem 1.1rem 1.1rem;
  }

  .site-lock__title {
    font-size: 1.4rem;
  }
}
