/* Ajustes leves de responsividade, fluidez e animação de abertura */
html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

html.opening-lock,
html.opening-lock body {
  overflow: hidden;
}

.opening-animation {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background:
    radial-gradient(circle at 25% 20%, rgba(208, 162, 111, 0.15), transparent 42%),
    radial-gradient(circle at 75% 72%, rgba(208, 162, 111, 0.1), transparent 45%),
    linear-gradient(180deg, #070b12 0%, #0a121f 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.opening-animation.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.opening-content {
  text-align: center;
}

.opening-logo-wrap {
  width: clamp(90px, 18vw, 164px);
  margin: 0 auto;
  position: relative;
}

.opening-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -28%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(247, 204, 155, 0.48) 0%, rgba(247, 204, 155, 0.14) 34%, rgba(247, 204, 155, 0) 72%);
  filter: blur(8px);
  opacity: 0;
  transform: scale(0.82);
  pointer-events: none;
  animation: opening-halo-pulse 960ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards 180ms;
}

.opening-logo-wrap::after {
  content: "";
  position: absolute;
  top: -16%;
  left: -125%;
  width: 64%;
  height: 132%;
  /* brilho deslizante em branco */
  background: linear-gradient(112deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  filter: blur(1px);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: opening-logo-glint 760ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards 360ms;
}

.opening-logo {
  width: 100%;
  height: auto;
  display: block;
}

.opening-logo-base {
  opacity: 0;
  transform: scale(0.96);
  animation:
    opening-logo-show 360ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards 120ms,
    opening-logo-radiance 940ms ease-out forwards 220ms;
}

.opening-text {
  margin: 1rem auto 0;
  width: auto;
  white-space: normal;
  color: #f7cc9b;
  font-family: "Red Hat Display", "Inter", sans-serif;
  font-size: clamp(1.08rem, 3.4vw, 1.65rem);
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translate3d(0, 9px, 0);
  animation: opening-text-show 320ms ease forwards 300ms;
}

@keyframes opening-logo-show {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes opening-halo-pulse {
  0% {
    opacity: 0;
    transform: scale(0.82);
  }
  45% {
    opacity: 0.95;
    transform: scale(1.02);
  }
  100% {
    opacity: 0.38;
    transform: scale(1.18);
  }
}

@keyframes opening-logo-glint {
  0% {
    left: -125%;
    opacity: 0;
  }
  16% {
    opacity: 0.92;
  }
  100% {
    left: 148%;
    opacity: 0;
  }
}

@keyframes opening-logo-radiance {
  0% {
    filter: drop-shadow(0 0 0 rgba(247, 204, 155, 0));
  }
  42% {
    filter: drop-shadow(0 0 14px rgba(247, 204, 155, 0.62)) drop-shadow(0 0 28px rgba(247, 204, 155, 0.32));
  }
  100% {
    filter: drop-shadow(0 0 8px rgba(247, 204, 155, 0.4));
  }
}

@keyframes opening-text-show {
  from {
    opacity: 0;
    transform: translate3d(0, 9px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

/* Evita overflow em componentes com largura fixa no mobile */
@media (max-width: 640px) {
  .w-96,
  .w-80,
  .w-72,
  .w-64,
  .max-w-md,
  .max-w-lg {
    width: 100% !important;
    max-width: 100% !important;
  }

  .container,
  .max-w-7xl,
  .max-w-6xl,
  .max-w-4xl {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

@media (max-width: 1024px) {
  .container,
  .max-w-7xl,
  .max-w-6xl,
  .max-w-4xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Integra melhor o hero com o formulário na primeira dobra do mobile */
@media (max-width: 1023px) {
  .hero-mobile-banner,
  .min-h-screen.bg-white > .relative.min-h-\[50vh\].sm\:min-h-\[70vh\] {
    position: relative;
    overflow: visible;
    align-items: flex-end !important;
    padding-bottom: 3.25rem;
    min-height: clamp(22rem, 70vh, 34rem);
  }

  .hero-mobile-banner::after,
  .min-h-screen.bg-white > .relative.min-h-\[50vh\].sm\:min-h-\[70vh\]::after {
    content: none;
  }

  .hero-mobile-overlap,
  .min-h-screen.bg-white > .block.lg\:hidden {
    position: relative;
    z-index: 25;
    margin-top: -8.8rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .hero-mobile-overlap > .bg-white,
  .min-h-screen.bg-white > .block.lg\:hidden > .bg-white {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(6px) saturate(118%);
    -webkit-backdrop-filter: blur(6px) saturate(118%);
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
      0 20px 42px rgba(15, 23, 42, 0.24),
      0 3px 10px rgba(15, 23, 42, 0.12);
  }

  .hero-mobile-overlap h2,
  .min-h-screen.bg-white > .block.lg\:hidden h2 {
    color: #111827 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  }

  .hero-mobile-overlap .text-gray-700,
  .min-h-screen.bg-white > .block.lg\:hidden .text-gray-700 {
    color: #1f2937 !important;
  }

  .hero-mobile-overlap .text-gray-600,
  .min-h-screen.bg-white > .block.lg\:hidden .text-gray-600 {
    color: #334155 !important;
  }

  .hero-mobile-overlap .border-gray-300,
  .min-h-screen.bg-white > .block.lg\:hidden .border-gray-300 {
    border-color: rgba(71, 85, 105, 0.34) !important;
  }

  .hero-mobile-overlap input::placeholder,
  .min-h-screen.bg-white > .block.lg\:hidden input::placeholder {
    color: #64748b !important;
    opacity: 1;
  }
}

/* EP-17: preserva a posição antiga somente no mobile real.
   Em tablet/notebook estreito, a posição vertical deve obedecer ao campo desktop do admin. */
@media (max-width: 767px) {
  .hero-mobile-banner,
  .min-h-screen.bg-white > .relative.min-h-\[50vh\].sm\:min-h-\[70vh\] {
    background-position: center 34% !important;
  }
}

@media (max-width: 480px) {
  .hero-mobile-banner,
  .min-h-screen.bg-white > .relative.min-h-\[50vh\].sm\:min-h-\[70vh\] {
    min-height: clamp(21rem, 64vh, 30rem);
    padding-bottom: 2.75rem;
    background-position: center 30% !important;
  }

  .hero-mobile-overlap,
  .min-h-screen.bg-white > .block.lg\:hidden {
    margin-top: -7.6rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Reduz custo de animações em dispositivos com preferência por movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  .opening-logo-wrap::before,
  .opening-logo-wrap::after,
  .opening-logo-base,
  .opening-text {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .opening-logo-wrap::before,
  .opening-logo-wrap::after {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Botão flutuante do WhatsApp sempre circular */
a[href*="wa.me/5511915853292"][class*="fixed"][class*="bottom-6"][class*="right-6"] {
  width: 58px !important;
  height: 58px !important;
  padding: 0 !important;
  border-radius: 9999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28) !important;
}

a[href*="wa.me/5511915853292"][class*="fixed"][class*="bottom-6"][class*="right-6"] > .relative {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

@media (max-width: 640px) {
  a[href*="wa.me/5511915853292"][class*="fixed"][class*="bottom-6"][class*="right-6"] {
    width: 56px !important;
    height: 56px !important;
  }
}

/* Quote card synced with Admin Loc pricing */
[data-quote-admin="1"] {
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 198, 139, 0.2), transparent 40%),
    linear-gradient(148deg, #ffffff 0%, #f7f9fc 58%, #eef3f9 100%) !important;
  border: 1px solid rgba(100, 116, 139, 0.3) !important;
  border-radius: 20px !important;
  overflow: visible !important;
  height: auto !important;
  box-shadow:
    0 20px 44px rgba(15, 23, 42, 0.2),
    0 6px 16px rgba(15, 23, 42, 0.1) !important;
}

[data-quote-admin="1"].bg-white.shadow-lg.p-3.sm\:p-5.w-full.max-w-sm.mx-auto.lg\:mx-0 {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  position: relative;
  z-index: 70;
}

[data-quote-admin="1"]:focus-within {
  z-index: 1600 !important;
}

[data-quote-admin="1"] [data-google-place-wrapper="1"] {
  position: relative;
  z-index: 35;
  overflow: visible !important;
}

[data-quote-admin="1"] [data-google-place-wrapper="1"]:focus-within {
  z-index: 1800;
}

[data-quote-admin="1"] [data-google-place-element="1"],
[data-quote-admin="1"] gmp-place-autocomplete {
  overflow: visible !important;
}

[data-quote-admin="1"] gmp-place-autocomplete:focus-within {
  position: relative;
  z-index: 1850;
}

[data-quote-places-anchor="1"] {
  position: relative;
  z-index: 1;
}

[data-quote-places-anchor="1"][data-quote-places-active="1"] {
  z-index: 2600;
  isolation: isolate;
}

.quote-places-rest-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  z-index: 2100;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-height: min(22rem, 52dvh);
  border: 1px solid rgba(203, 213, 225, 0.98);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.quote-places-rest-option {
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  font: inherit;
  line-height: 1.35;
  padding: 0.78rem 0.88rem;
  cursor: pointer;
}

.quote-places-rest-option:last-of-type {
  border-bottom: 0;
}

.quote-places-rest-option:hover,
.quote-places-rest-option:focus-visible {
  background: #f8fafc;
  outline: 0;
}

.quote-places-rest-option-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  margin-top: 0.1rem;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
}

.quote-places-rest-option-icon svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
}

.quote-places-rest-option-copy {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
}

.quote-places-rest-option-title {
  display: block;
  overflow: hidden;
  color: #1f2937;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-places-rest-option-subtitle {
  display: block;
  overflow: hidden;
  margin-top: 0.14rem;
  color: #64748b;
  font-size: 0.79rem;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-places-rest-footer {
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem 0.85rem 0.6rem;
  border-top: 1px solid rgba(226, 232, 240, 0.92);
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: #f8fafc;
}

.min-h-screen.bg-white > .relative.min-h-\[50vh\].sm\:min-h-\[70vh\] {
  position: relative;
  z-index: 30;
  overflow: visible !important;
}

.min-h-screen.bg-white > .relative.min-h-\[50vh\].sm\:min-h-\[70vh\] > .relative.z-10.w-full.py-0.sm\:py-8,
.min-h-screen.bg-white > .relative.min-h-\[50vh\].sm\:min-h-\[70vh\] .grid.grid-cols-1.lg\:grid-cols-2,
.min-h-screen.bg-white > .block.lg\:hidden {
  overflow: visible !important;
}

.min-h-screen.bg-white > .block.lg\:hidden {
  position: relative;
  z-index: 35;
}

.min-h-screen.bg-white > .relative.min-h-\[50vh\].sm\:min-h-\[70vh\]:has([data-quote-admin="1"]:focus-within),
.min-h-screen.bg-white > .relative.min-h-\[50vh\].sm\:min-h-\[70vh\] > .relative.z-10.w-full.py-0.sm\:py-8:has([data-quote-admin="1"]:focus-within),
.min-h-screen.bg-white > .block.lg\:hidden:has([data-quote-admin="1"]:focus-within) {
  z-index: 1800 !important;
}

.pac-container {
  z-index: 2400 !important;
}

@media (max-width: 767px) {
  .pac-container {
    max-height: min(18rem, 42dvh) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px !important;
  }

  .pac-item,
  .pac-item-query {
    white-space: normal !important;
  }
}

form[data-quote-admin-bound="1"] {
  display: flex;
  flex-direction: column;
  overflow: visible !important;
  height: auto !important;
}

[data-quote-admin="1"] h2 {
  letter-spacing: 0.015em;
  font-weight: 800 !important;
}

[data-quote-admin="1"] > div:first-child button[type="button"] {
  border-radius: 999px !important;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.22);
}

[data-quote-admin="1"] input[type="text"],
[data-quote-admin="1"] input[type="email"],
[data-quote-admin="1"] input[type="tel"],
[data-quote-admin="1"] button[role="combobox"] {
  border-radius: 12px !important;
  border-color: rgba(71, 85, 105, 0.35) !important;
  background-color: rgba(255, 255, 255, 0.86) !important;
}

[data-quote-admin="1"] button[type="submit"] {
  margin-top: 0.75rem;
  flex-shrink: 0;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #0b1220 0%, #1d2b42 100%) !important;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.28);
  letter-spacing: 0.02em;
}

[data-quote-admin="1"] button[type="submit"]:disabled {
  background: #6b7280 !important;
  box-shadow: none !important;
}

.quote-admin-price-panel {
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  background: rgba(248, 250, 252, 0.88);
}

.quote-admin-price-head {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  color: #0f172a;
}

.quote-admin-price-status {
  margin-top: 0.35rem;
  font-size: 0.81rem;
  color: #334155;
}

.quote-admin-price-total {
  margin-top: 0.55rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.92);
}

.quote-admin-price-total span {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quote-admin-price-total strong {
  display: block;
  margin-top: 0.12rem;
  font-size: 1.35rem;
  line-height: 1.1;
  color: #0f172a;
}

.quote-admin-price-total small {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #475569;
}

.quote-admin-price-grid {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.quote-admin-price-item {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.86);
  padding: 0.45rem 0.48rem;
}

.quote-admin-price-item span {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.quote-admin-price-item strong {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.78rem;
  color: #0f172a;
  line-height: 1.2;
}

.quote-admin-price-route {
  margin-top: 0.48rem;
  padding-top: 0.42rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 0.72rem;
  color: #334155;
  line-height: 1.45;
}

.quote-admin-price-panel.is-found .quote-admin-price-total {
  border-color: rgba(16, 185, 129, 0.26);
}

.quote-admin-price-panel.is-miss .quote-admin-price-total {
  border-color: rgba(245, 158, 11, 0.28);
}

.quote-admin-price-panel.is-found {
  border-color: rgba(16, 185, 129, 0.38);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.82) 0%, rgba(248, 250, 252, 0.9) 100%);
}

.quote-admin-price-panel.is-miss {
  border-color: rgba(245, 158, 11, 0.42);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
}

.quote-admin-price-panel.is-error {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
}

.quote-admin-price-panel.is-loading .quote-admin-price-status::after {
  content: " ...";
  animation: quote-admin-dots 1.1s steps(3, end) infinite;
}

@keyframes quote-admin-dots {
  0% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.35;
  }
}

@media (max-width: 480px) {
  .quote-admin-price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

html.ep-reservation-lock,
html.ep-reservation-lock body {
  overflow: hidden;
}

[data-quote-admin="1"] [data-ep-reservation-hidden="1"] {
  display: none !important;
}

[data-quote-admin="1"] button[data-ep-reservation-button="1"] {
  margin-top: 0.9rem;
}

.ep-reservation-modal[hidden] {
  display: none;
}

.ep-reservation-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  font-family: "Inter", "Red Hat Display", sans-serif;
}

.ep-reservation-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 8, 14, 0.76), rgba(9, 14, 22, 0.86)),
    rgba(2, 6, 12, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ep-reservation-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: min(900px, calc(100dvh - 1.5rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: #f8fafc;
  color: #0f172a;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.46);
  contain: layout paint;
}

.ep-reservation-header,
.ep-reservation-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 2.4vw, 1.6rem);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(203, 213, 225, 0.78);
}

.ep-reservation-footer {
  border-top: 1px solid rgba(203, 213, 225, 0.78);
  border-bottom: 0;
}

.ep-reservation-kicker {
  margin: 0 0 0.2rem;
  color: #9a6a35;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ep-reservation-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1.1;
  font-weight: 850;
}

.ep-reservation-close {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.ep-reservation-body {
  flex: 1 1 auto;
  overflow: auto;
  overflow-x: visible;
  overflow-y: auto;
  padding: clamp(1rem, 2vw, 1.35rem);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.ep-reservation-section {
  position: relative;
  z-index: 1;
  overflow: visible;
  padding: clamp(0.9rem, 1.8vw, 1.15rem);
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
}

.ep-reservation-section[data-quote-places-layer="1"] {
  z-index: 3200;
  contain: none;
  content-visibility: visible;
}

.ep-reservation-section + .ep-reservation-section {
  margin-top: 0.9rem;
}

.ep-reservation-section-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.ep-reservation-section-head span {
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.ep-reservation-section-head h3 {
  margin: 0;
  color: #111827;
  font-size: clamp(0.98rem, 1.8vw, 1.12rem);
  line-height: 1.2;
  font-weight: 800;
}

.ep-reservation-route-grid,
.ep-reservation-date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  overflow: visible;
}

.ep-reservation-field {
  position: relative;
  display: grid;
  gap: 0.38rem;
  overflow: visible;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ep-reservation-field input,
.ep-reservation-field select {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid rgba(100, 116, 139, 0.42);
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  padding: 0.72rem 0.82rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  outline: none;
}

.ep-reservation-field input:focus,
.ep-reservation-field select:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}

.ep-reservation-field-compact {
  max-width: 18rem;
}

.ep-reservation-vehicles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.ep-reservation-vehicle {
  display: grid;
  gap: 0.4rem;
  padding: 0.72rem;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ep-reservation-vehicle:hover,
.ep-reservation-vehicle:focus-visible {
  border-color: rgba(15, 23, 42, 0.42);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.ep-reservation-vehicle.is-selected {
  border-color: rgba(16, 185, 129, 0.95);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}

.ep-reservation-vehicle-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(154, 106, 53, 0.14)),
    #e2e8f0;
}

.ep-reservation-vehicle-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 1;
  transition: opacity 180ms ease;
}

.ep-reservation-vehicle-image img:not([src]) {
  opacity: 0;
}

.ep-reservation-vehicle-name {
  margin-top: 0.2rem;
  color: #111827;
  font-size: 0.88rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.2;
}

.ep-reservation-vehicle-meta {
  color: #475569;
  font-size: 0.76rem;
  line-height: 1.25;
}

.ep-reservation-feedback {
  margin-top: 0.9rem;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #f8fafc;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
}

.ep-reservation-feedback.is-error {
  border-color: rgba(239, 68, 68, 0.38);
  background: #fef2f2;
  color: #991b1b;
}

.ep-reservation-feedback.is-warning {
  border-color: rgba(245, 158, 11, 0.4);
  background: #fffbeb;
  color: #92400e;
}

.ep-reservation-feedback.is-success {
  border-color: rgba(16, 185, 129, 0.36);
  background: #ecfdf5;
  color: #065f46;
}

.ep-reservation-feedback.is-loading {
  border-color: rgba(59, 130, 246, 0.32);
  background: #eff6ff;
  color: #1e3a8a;
}

.ep-reservation-estimate-card {
  display: grid;
  gap: 0.42rem;
  padding: 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.48);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.94)),
    #ffffff;
  color: #334155;
}

.ep-reservation-estimate-card p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.ep-reservation-estimate-card strong {
  color: #0f172a;
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  line-height: 1;
  font-weight: 950;
}

.ep-reservation-estimate-card small {
  display: block;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.ep-reservation-estimate-card.is-loading {
  border-color: rgba(59, 130, 246, 0.32);
  background: #eff6ff;
  color: #1e3a8a;
}

.ep-reservation-estimate-card.is-success {
  border-color: rgba(16, 185, 129, 0.34);
  background: #ecfdf5;
  color: #065f46;
}

.ep-reservation-estimate-card.is-warning {
  border-color: rgba(245, 158, 11, 0.4);
  background: #fffbeb;
  color: #92400e;
}

.ep-reservation-secondary,
.ep-reservation-primary {
  min-height: 2.8rem;
  border: 0;
  border-radius: 10px;
  padding: 0.72rem 1.05rem;
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.ep-reservation-secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.ep-reservation-primary {
  background: linear-gradient(135deg, #0b1220 0%, #1d2b42 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.24);
}

.ep-reservation-primary:disabled {
  cursor: not-allowed;
  background: #94a3b8;
  box-shadow: none;
}

@media (max-width: 880px) {
  .ep-reservation-dialog {
    max-height: calc(100dvh - 1rem);
    border-radius: 14px;
  }
}

@media (max-width: 640px) {
  .ep-reservation-modal {
    align-items: stretch;
    padding: 0;
  }

  .ep-reservation-dialog {
    width: 100%;
    max-height: 100dvh;
    border-radius: 0;
  }

  .ep-reservation-header {
    padding: 0.85rem max(0.85rem, env(safe-area-inset-right)) 0.85rem max(0.85rem, env(safe-area-inset-left));
  }

  .ep-reservation-footer {
    padding: 0.85rem max(0.85rem, env(safe-area-inset-right)) calc(0.85rem + env(safe-area-inset-bottom)) max(0.85rem, env(safe-area-inset-left));
  }

  .ep-reservation-body {
    padding: 0.75rem max(0.75rem, env(safe-area-inset-right)) 0.75rem max(0.75rem, env(safe-area-inset-left));
  }

  .ep-reservation-route-grid,
  .ep-reservation-date-grid,
  .ep-reservation-vehicles {
    grid-template-columns: 1fr;
  }

  .ep-reservation-field-compact {
    max-width: none;
  }

  .ep-reservation-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ep-reservation-secondary {
    order: 2;
  }

  .ep-reservation-primary {
    order: 1;
  }

  .ep-reservation-vehicle {
    grid-template-columns: 7.5rem 1fr;
    align-items: center;
    column-gap: 0.72rem;
  }

  .ep-reservation-vehicle-image {
    grid-row: span 4;
  }

  .ep-reservation-vehicle-name {
    margin-top: 0;
    text-align: left;
  }
}

@media (max-width: 390px) {
  .ep-reservation-vehicle {
    grid-template-columns: 6.25rem 1fr;
  }
}

/* EP-14: mantém a chamada "NOSSOS SERVIÇOS" visível na primeira dobra em desktop/notebook.
   O wrapper do hero usava min-height: 100vh e empurrava a seção de serviços para fora da tela
   em resoluções mais baixas. A altura visual continua preservando o formulário e a imagem. */
@media (min-width: 1024px) {
  .min-h-screen.bg-white {
    min-height: auto !important;
  }

  .min-h-screen.bg-white > .relative.min-h-\[50vh\].sm\:min-h-\[70vh\] {
    min-height: clamp(30rem, 62vh, 39rem) !important;
  }
}

@media (min-width: 1024px) and (max-height: 760px) {
  .min-h-screen.bg-white > .relative.min-h-\[50vh\].sm\:min-h-\[70vh\] {
    min-height: clamp(28rem, 58vh, 34rem) !important;
  }
}

/* EP-14 força final: a primeira seção depois do hero precisa aparecer imediatamente.
   Em algumas resoluções o content-visibility gerava área branca antes de pintar o título. */
.hero-mobile-banner + section,
.min-h-screen.bg-white > .relative.min-h-\[50vh\].sm\:min-h-\[70vh\] + section {
  content-visibility: visible !important;
  contain-intrinsic-size: auto !important;
  padding-top: 1.25rem !important;
}

.hero-mobile-banner + section > .max-w-7xl > .text-center,
.min-h-screen.bg-white > .relative.min-h-\[50vh\].sm\:min-h-\[70vh\] + section > .max-w-7xl > .text-center {
  margin-bottom: 2rem !important;
}

@media (min-width: 1024px) {
  .hero-mobile-banner,
  .min-h-screen.bg-white > .relative.min-h-\[50vh\].sm\:min-h-\[70vh\] {
    min-height: min(48vh, 31rem) !important;
    height: min(48vh, 31rem) !important;
    max-height: 31rem !important;
  }
}

@media (min-width: 1024px) and (max-height: 1050px) {
  .hero-mobile-banner,
  .min-h-screen.bg-white > .relative.min-h-\[50vh\].sm\:min-h-\[70vh\] {
    min-height: 28rem !important;
    height: 28rem !important;
    max-height: 28rem !important;
  }
}

/* EP-14 regra definitiva: em qualquer resolução horizontal/landscape,
   a seção "NOSSOS SERVIÇOS" deve aparecer na primeira dobra.
   Prioridade visual: Serviços visível > hero alto. */
@media (orientation: landscape) {
  .min-h-screen.bg-white {
    min-height: auto !important;
  }

  .hero-mobile-banner,
  .min-h-screen.bg-white > .relative.min-h-\[50vh\].sm\:min-h-\[70vh\] {
    min-height: 70vh !important;
    height: 70vh !important;
    max-height: none !important;
    padding-top: clamp(3rem, 6vh, 4.5rem) !important;
    padding-bottom: 0.75rem !important;
    overflow: visible !important;
    background-size: cover !important;
  }

  .hero-mobile-banner + section,
  .min-h-screen.bg-white > .relative.min-h-\[50vh\].sm\:min-h-\[70vh\] + section {
    content-visibility: visible !important;
    contain-intrinsic-size: auto !important;
    padding-top: 0.75rem !important;
    margin-top: 0 !important;
  }

  .hero-mobile-banner + section > .max-w-7xl > .text-center,
  .min-h-screen.bg-white > .relative.min-h-\[50vh\].sm\:min-h-\[70vh\] + section > .max-w-7xl > .text-center {
    margin-bottom: 1.5rem !important;
  }

  .hero-mobile-banner + section h2,
  .min-h-screen.bg-white > .relative.min-h-\[50vh\].sm\:min-h-\[70vh\] + section h2 {
    margin-bottom: 0.25rem !important;
  }
}

@media (orientation: landscape) and (max-height: 760px) {
  .hero-mobile-banner,
  .min-h-screen.bg-white > .relative.min-h-\[50vh\].sm\:min-h-\[70vh\] {
    min-height: 70vh !important;
    height: 70vh !important;
    max-height: none !important;
  }
}

@media (orientation: landscape) and (max-height: 620px) {
  .hero-mobile-banner,
  .min-h-screen.bg-white > .relative.min-h-\[50vh\].sm\:min-h-\[70vh\] {
    min-height: 10rem !important;
    height: 10rem !important;
    max-height: 10rem !important;
    padding-top: 3rem !important;
  }

  .hero-mobile-banner + section,
  .min-h-screen.bg-white > .relative.min-h-\[50vh\].sm\:min-h-\[70vh\] + section {
    padding-top: 0.35rem !important;
  }
}

/* EP-14 correção de visibilidade: a primeira seção de Serviços não pode aguardar reveal/animação. */
@media (orientation: landscape) {
  .hero-mobile-banner + section.ux-reveal,
  .min-h-screen.bg-white > .relative.min-h-\[50vh\].sm\:min-h-\[70vh\] + section.ux-reveal,
  .hero-mobile-banner + section.ux-reveal.ux-visible,
  .min-h-screen.bg-white > .relative.min-h-\[50vh\].sm\:min-h-\[70vh\] + section.ux-reveal.ux-visible {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    content-visibility: visible !important;
    contain-intrinsic-size: auto !important;
  }
}

/* EP-16: preserva o ajuste anterior só para mobile em landscape.
   Desktop fica livre para obedecer ao campo do admin: hero_position_desktop. */
@media (orientation: landscape) and (max-width: 767px) {
  .hero-mobile-banner,
  .min-h-screen.bg-white > .relative.min-h-\[50vh\].sm\:min-h-\[70vh\] {
    background-position: center 18% !important;
  }
}

/* EP-15: a home deve seguir a mesma altura-base do banner da página On Demand
   em todas as resoluções: 50vh abaixo de 640px e 70vh a partir de 640px. */
@media (max-width: 639px) {
  .hero-mobile-banner {
    min-height: 50vh !important;
    height: auto !important;
    max-height: none !important;
  }
}

@media (min-width: 640px) {
  .hero-mobile-banner {
    min-height: 70vh !important;
    height: 70vh !important;
    max-height: none !important;
    background-size: cover !important;
  }
}
