/* Vet2Home — experiência de pré-marcação por etapas */

body.booking-modal-open {
  overflow: hidden;
}

.booking-entry {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 88px);
  scroll-margin-top: 88px;
}

.booking-entry::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -180px;
  top: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,18,.16), transparent 68%);
  pointer-events: none;
}

.booking-entry-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1080px);
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
}

.booking-reviews-preview,
.booking-start-card {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
  box-shadow: 0 24px 60px rgba(0,0,0,.24);
}

.booking-reviews-preview {
  padding: clamp(22px, 3vw, 30px);
}

.booking-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.booking-kicker {
  display: none;
  padding: 7px 11px;
  border: 1px solid rgba(255,122,18,.3);
  border-radius: 999px;
  color: #ff9a4b;
  background: rgba(255,122,18,.08);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.booking-stars {
  color: #ffb23f;
  letter-spacing: .12em;
  font-size: 1.05rem;
}

.booking-reviews-preview h3,
.booking-start-card h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.12;
}

.booking-review-score {
  margin: 10px 0 16px;
  color: rgba(255,255,255,.7);
}

.booking-review-score strong {
  margin-right: 6px;
  color: #fff;
  font-size: 1.5rem;
}

.booking-review-placeholders,
.booking-review-track {
  display: grid;
  grid-template-columns: 1fr;
}

.booking-review-carousel {
  position: relative;
}

.booking-review-carousel .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.booking-review-track {
  position: relative;
  height: 292px;
  overflow: hidden;
}

.booking-review-placeholder {
  grid-area: 1 / 1;
  min-height: 96px;
  padding: 17px 18px;
  border: 1px dashed rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(0,0,0,.16);
}

.booking-review-placeholder:not(:first-child) {
  display: none;
}

.booking-review-track .booking-review-placeholder {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-18px);
  transition: opacity .42s ease, transform .42s ease, visibility 0s linear .42s;
}

.booking-review-track .booking-review-placeholder.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.booking-review-track .booking-review-placeholder.is-leaving {
  z-index: 1;
  opacity: 0;
  visibility: visible;
  transform: translateY(18px);
}

.booking-review-placeholder strong {
  display: block;
  margin-bottom: 9px;
  color: rgba(255,255,255,.86);
  font-size: .95rem;
}

.booking-review-placeholder p {
  margin: 0;
  color: rgba(255,255,255,.48);
  font-size: .88rem;
  line-height: 1.6;
}

.booking-review-filter-note {
  margin: 12px 0 0;
  color: rgba(255,255,255,.58);
  font-size: .75rem;
  line-height: 1.45;
}

.booking-review-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.booking-review-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.9);
  text-decoration: none;
}

.booking-review-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.booking-review-avatar {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #2c94a5, #ff7a12);
  font-size: .86rem;
  font-weight: 900;
}

.booking-review-author-copy {
  display: grid;
  gap: 2px;
}

.booking-review-author strong {
  margin: 0;
}

.booking-review-author-details {
  color: rgba(255,255,255,.46);
  font-size: .72rem;
  line-height: 1.35;
}

.booking-review-google-source {
  flex: 0 0 auto;
  padding-top: 2px;
  color: rgba(255,255,255,.46);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.booking-review-card {
  border-style: solid;
  color: inherit;
  background: rgba(0,0,0,.22);
  text-decoration: none;
  cursor: pointer;
}

.booking-review-card:hover,
.booking-review-card:focus-visible {
  border-color: rgba(255,154,75,.46);
  background: rgba(255,122,18,.07);
  outline: none;
}

.booking-review-placeholder .booking-review-meta {
  margin: 8px 0 6px;
  color: #ffb23f;
  font-size: .8rem;
}

.booking-review-placeholder .booking-review-tag {
  margin: 0 0 7px;
  color: rgba(255,255,255,.5);
  font-size: .72rem;
}

.booking-review-source {
  display: inline-block;
  margin-top: 10px;
  color: #ff9a4b;
  font-size: .76rem;
  font-weight: 800;
}

.booking-review-placeholder .booking-review-text {
  max-height: 9.6em;
  overflow: hidden;
  color: rgba(255,255,255,.72);
  white-space: normal;
}

.booking-review-note {
  margin: 14px 0 0;
  color: rgba(255,255,255,.46);
  font-size: .78rem;
  line-height: 1.5;
}

.booking-review-link {
  min-height: 44px;
  margin-top: 14px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: rgba(255,255,255,.44);
  background: rgba(255,255,255,.035);
  font: inherit;
  font-size: .85rem;
  font-weight: 800;
  cursor: not-allowed;
}

.booking-review-link[href] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.76);
  cursor: pointer;
  text-decoration: none;
}

.booking-review-link[href]:hover {
  color: #fff;
  border-color: rgba(255,154,75,.42);
  background: rgba(255,122,18,.08);
}

.booking-start-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.booking-start-card h3,
.booking-start-card > p,
.booking-start-card .booking-benefits,
.booking-start-card .booking-mini-contact {
  display: none;
}

.booking-benefits {
  display: grid;
  gap: 12px;
  margin: 18px 0 28px;
  padding: 0;
  list-style: none;
}

.booking-benefits li {
  display: flex;
  gap: 11px;
  color: rgba(255,255,255,.78);
  line-height: 1.45;
}

.booking-benefits li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  color: #0d1718;
  background: #ff7a12;
  font-size: .75rem;
  font-weight: 900;
}

.booking-open-button {
  width: min(100%, 360px);
  min-height: 56px;
  margin: 0 auto;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #ff7410, #ff8f27);
  box-shadow: 0 15px 32px rgba(255,116,16,.24);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease;
}

.booking-open-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 19px 40px rgba(255,116,16,.32);
}

.booking-mobile-nudge {
  display: none;
}

.booking-mini-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  color: rgba(255,255,255,.48);
  font-size: .82rem;
}

.booking-mini-contact a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
}

.booking-modal[hidden],
.booking-step[hidden],
.booking-conditional[hidden] {
  display: none !important;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,8,10,.82);
  backdrop-filter: blur(12px);
}

.booking-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  width: min(940px, 100%);
  max-height: min(900px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 26px;
  background: #111416;
  box-shadow: 0 32px 100px rgba(0,0,0,.6);
}

.booking-dialog__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(18,102,110,.22), rgba(255,122,18,.06));
}

.booking-dialog__eyebrow {
  margin: 0 0 5px;
  color: #ff8d38;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.booking-dialog__header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.booking-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.045);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.booking-close:hover {
  border-color: rgba(255,122,18,.45);
  background: rgba(255,122,18,.1);
}

.booking-progress-wrap {
  grid-column: 1 / -1;
}

.booking-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: rgba(255,255,255,.56);
  font-size: .78rem;
}

.booking-progress-label strong {
  color: rgba(255,255,255,.86);
}

.booking-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.booking-progress span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7410, #ffb14d);
  transition: width .22s ease;
}

.booking-form {
  display: block !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px;
}

.booking-step {
  padding: 0;
  background: transparent;
  animation: booking-step-in .2s ease both;
}

@keyframes booking-step-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.booking-step__intro {
  margin-bottom: 24px;
}

.booking-step__intro h3 {
  margin: 0 0 7px;
  color: #fff;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
}

.booking-step__intro p {
  margin: 0;
  color: rgba(255,255,255,.58);
  line-height: 1.55;
}

.booking-step__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.booking-form .field {
  min-width: 0;
}

.booking-form .field.full,
.booking-form .booking-full {
  grid-column: 1 / -1;
}

.booking-form .field > label,
.booking-form .booking-choice-group > legend {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.68);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.booking-form .field input,
.booking-form .field textarea,
.booking-form .custom-select-trigger {
  background: #1a1d1f;
}

.booking-form .field textarea {
  min-height: 112px;
}

.booking-form .address-no-number {
  grid-column: 1 / -1;
}

.booking-choice-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.booking-choice-grid--fallback {
  display: none !important;
}

.booking-radio-select {
  width: 100%;
}

.booking-form .booking-radio-select .custom-select-trigger span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.booking-form .booking-radio-select .custom-select-arrow {
  color: #e8a85b;
  font-size: 1.05rem;
}

.booking-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  justify-content: start;
  gap: 10px;
}

.booking-choice {
  position: relative;
  cursor: pointer;
}

.booking-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.booking-choice span {
  display: grid;
  place-items: center;
  min-width: 108px;
  min-height: 46px;
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 13px;
  color: rgba(255,255,255,.72);
  background: #1a1d1f;
  text-align: center;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .015em;
  text-transform: none;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.booking-form .field .booking-choice span {
  font-size: .86rem;
  letter-spacing: .015em;
  text-transform: none;
}

.booking-choice input:focus-visible + span {
  outline: 3px solid rgba(255,122,18,.3);
  outline-offset: 2px;
}

.booking-choice input:checked + span {
  border-color: #ff7a12;
  color: #fff;
  background: rgba(255,122,18,.14);
}

.booking-choice-group.is-invalid .booking-choice span {
  border-color: #ff7a12;
}

.booking-conditional {
  grid-column: 1 / -1;
  padding: 16px;
  border-left: 3px solid #ff7a12;
  border-radius: 0 14px 14px 0;
  background: rgba(255,122,18,.055);
}

.booking-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.booking-actions--first {
  justify-content: flex-end;
}

.booking-back,
.booking-next {
  min-height: 50px;
  padding: 0 24px;
  border-radius: 13px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.booking-back {
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.78);
  background: transparent;
}

.booking-next {
  min-width: 170px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #ff7410, #ff8f27);
}

.booking-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.booking-summary-card {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}

.booking-summary-card h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
}

.booking-edit-step {
  padding: 0;
  border: 0;
  color: #ff9b50;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
}

.booking-summary-card dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.booking-summary-row {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 10px;
}

.booking-summary-row dt {
  color: rgba(255,255,255,.42);
  font-size: .8rem;
}

.booking-summary-row dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: rgba(255,255,255,.8);
  font-size: .86rem;
}

.booking-review-consent {
  margin-top: 18px;
}

.booking-form .form-status {
  margin-top: 18px;
}

@media (max-width: 820px) {
  .booking-entry-grid,
  .booking-review-grid {
    grid-template-columns: 1fr;
  }

  .booking-entry-grid {
    gap: 18px;
  }

  .booking-modal {
    display: block;
    padding: 0;
  }

  .booking-modal .booking-dialog {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100svh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .booking-dialog__header {
    padding: 18px 18px 15px;
  }

  .booking-form {
    padding: 22px 18px calc(28px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 620px) {
  .booking-mobile-nudge {
    position: fixed;
    left: 50%;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    color: #ff9a4b;
    background: transparent;
    box-shadow: none;
    font: inherit;
    font-size: .88rem;
    font-weight: 850;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 14px);
    transition: opacity .2s ease, transform .2s ease;
  }

  .booking-mobile-nudge.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .booking-mobile-nudge__arrow {
    font-size: 1.55rem;
    line-height: 1;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,.72));
    animation: booking-mobile-nudge-arrow 1.15s ease-in-out infinite;
  }

  body.booking-modal-open .booking-mobile-nudge {
    opacity: 0;
    pointer-events: none;
  }

  .booking-review-placeholders,
  .booking-step__grid,
  .booking-choice-grid {
    grid-template-columns: 1fr;
  }

  .booking-review-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .booking-choice-grid {
    gap: 8px;
  }

  .booking-choice span {
    justify-content: flex-start;
    min-height: 48px;
    text-align: left;
  }

  .booking-actions {
    position: sticky;
    bottom: calc(-28px - env(safe-area-inset-bottom));
    z-index: 3;
    margin-right: -18px;
    margin-left: -18px;
    padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(17,20,22,.82), #111416 24%);
  }

  .booking-back,
  .booking-next {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 15px;
  }

  .booking-summary-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-step,
  .booking-progress span,
  .booking-open-button,
  .booking-review-placeholder,
  .booking-mobile-nudge,
  .booking-mobile-nudge__arrow {
    animation: none;
    transition: none;
  }
}

@keyframes booking-mobile-nudge-arrow {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}
