/* Headline lines slide up the way the live site does, even before hydration.
   animation !important overrides the captured inline translateY. */
@keyframes coloch-line-in {
  from { transform: translateY(110%); }
  to { transform: none; }
}

@keyframes coloch-line-in-105 {
  from { transform: translateY(105%); }
  to { transform: none; }
}

[style*="translateY(110%)"] {
  animation: coloch-line-in 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both !important;
}

[style*="translateY(105%)"] {
  animation: coloch-line-in-105 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both !important;
}

h1 > :nth-child(2) [style*="translateY(1"],
h1 > :nth-child(2)[style*="translateY(1"] { animation-delay: 0.15s; }
h1 > :nth-child(3) [style*="translateY(1"],
h1 > :nth-child(3)[style*="translateY(1"] { animation-delay: 0.25s; }
h1 > :nth-child(4) [style*="translateY(1"],
h1 > :nth-child(4)[style*="translateY(1"] { animation-delay: 0.35s; }
h1 > :nth-child(5) [style*="translateY(1"],
h1 > :nth-child(5)[style*="translateY(1"] { animation-delay: 0.45s; }

.modal-backdrop[hidden] {
  display: none !important;
}

/* The captured tiles hide a 1px radio. iOS paints :hover as the orange outline
   and never checks that radio, then the keyboard drops the hover. A full-size
   radio receives the tap, and :checked keeps the outline after the keyboard opens. */
.ct-service-choice > input {
  opacity: 0 !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  z-index: 2;
}
.ct-service-choice:has(input:checked) > span,
.ct-service-choice.is-selected > span {
  background: #fff8f2 !important;
  border-color: #ff861c !important;
  box-shadow: 0 0 0 2px #ff861c;
}
.ct-service-choice:has(input:checked) > span > svg,
.ct-service-choice.is-selected > span > svg {
  color: #ff861c !important;
}
.ct-form-error {
  color: #9a3412;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 12px;
}

/* iOS Safari: a fixed layer with backdrop-filter steals taps from the whole page,
   so quote buttons and form steps never receive the touch. Keep the solid background. */
header.scrolled,
.site-header.scrolled,
.mobile-action-bar,
.modal-backdrop {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .ab-line > span { animation: none; transform: none !important; }
}
