/* Smooth Scroll & Canvas Behavior */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Heebo', system-ui, Arial, sans-serif;
  overflow-x: hidden;
  width: 100%;
}

/* Accessible Skip Link */
.skip-link {
  position: absolute;
  top: -999px;
  right: 1rem;
  z-index: 100;
  background: #0b1f3a;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

/* Focus Visible Standard */
:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Inline Validation Classes */
.inline-name-error,
.inline-tel-error,
.inline-email-error {
  display: none;
  color: #dc2626;
  font-size: 12px;
  font-weight: 700;
  margin-top: 0.25rem;
}

.inline-name-error.is-visible,
.inline-tel-error.is-visible,
.inline-email-error.is-visible {
  display: block;
}

/* Anti-Spam Honeypot Field */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form Wrapper & Inline Success Overlay */
.form-wrapper {
  position: relative;
}

.form-success-overlay {
  position: absolute;
  inset: 0;
  background: #ffffff;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  border-radius: inherit;
  z-index: 10;
  direction: rtl !important;
}

.form-success-overlay.is-active {
  display: flex;
}

/* Horizontal Carousel Track */
.carousel-track {
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track > * {
  scroll-snap-align: start;
}

/* FAQ Accordion Elements */
details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

details[open] .faq-chevron {
  transform: rotate(180deg);
}

/* Input Range Theming */
input[type="range"] {
  accent-color: #f59e0b;
}

/* Mobile Bottom Spacing Rule for Cookie Banner */
@media (max-width: 767px) {
  body:has(#cookie-banner:not(.hidden)) {
    padding-bottom: 125px;
  }
}