/* Agenda premium com composição desktop e fluxo prioritário em telas menores. */
.booking {
  position: relative;
  isolation: isolate;
  min-height: 0;
  overflow: hidden;
  padding: clamp(38px,4.2vw,68px) 0 clamp(44px,5vw,76px);
  scroll-margin-top: 76px;
  background: #080706;
}
.booking-atmosphere {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg,rgba(3,3,3,.18),rgba(4,4,4,.42) 39%,rgba(4,4,4,.72) 100%),
              linear-gradient(0deg,rgba(4,3,2,.34),rgba(4,3,2,.17)),
              url('./assets/concept-ambiente.jpg') center/cover no-repeat;
  filter: saturate(.9) contrast(1.06);
}
.booking-layout {
  display: grid;
  grid-template-columns: minmax(340px,.76fr) minmax(0,1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "visual intro" "visual panel" "visual catalog";
  align-items: center;
  gap: 10px clamp(20px,2.5vw,48px);
  width: min(100% - 32px,1800px);
  margin-inline: auto;
}
.booking-visual {
  position: relative;
  grid-area: visual;
  align-self: stretch;
  display: flex;
  align-items: end;
  justify-content: center;
  min-width: 0;
  min-height: 740px;
  overflow: hidden;
  isolation: isolate;
  -webkit-mask-image: linear-gradient(90deg,transparent 0%,#000 5%,#000 94%,transparent 100%);
  mask-image: linear-gradient(90deg,transparent 0%,#000 5%,#000 94%,transparent 100%);
}
.booking-visual::before {
  position: absolute;
  z-index: -1;
  inset: 5% 0 5%;
  background: radial-gradient(ellipse at 50% 42%,rgba(246,176,75,.2),transparent 62%);
  content: '';
}
.booking-portrait {
  display: block;
  width: min(124%,780px);
  height: min(100%,880px);
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 8px 28px rgba(0,0,0,.38)) brightness(.96) saturate(.96);
  -webkit-mask-image: linear-gradient(180deg,#000 0%,#000 88%,rgba(0,0,0,.7) 96%,transparent 100%);
  mask-image: linear-gradient(180deg,#000 0%,#000 88%,rgba(0,0,0,.7) 96%,transparent 100%);
}
.booking-intro {
  grid-area: intro;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 8px;
  text-align: center;
}
.booking-title-mobile { display: none; }
.booking-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 11px;
  color: #e8bb58;
  font: 500 12px/1.2 var(--sans);
  letter-spacing: .22em;
}
.booking-eyebrow span { width: clamp(20px,3vw,52px); height: 1px; background: linear-gradient(90deg,transparent,#e8bb58); }
.booking-eyebrow span:last-child { transform: rotate(180deg); }
.booking :is(h1,h2) {
  margin: 0;
  color: #fff;
  font: 800 clamp(37px,3.45vw,64px)/.99 var(--sans);
  letter-spacing: -.04em;
  text-shadow: 0 4px 18px rgba(0,0,0,.7);
}
.booking :is(h1,h2) em { color: #f4c65d; font-style: normal; }
.booking-intro>p:last-child { margin: 10px 0 0; color: #f3f0eb; font-size: clamp(14px,1.1vw,18px); text-shadow: 0 2px 10px #000; }
.booking-panel {
  position: relative;
  z-index: 1;
  grid-area: panel;
  display: block;
  width: 100%;
  max-width: 1040px;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(15px,1.5vw,24px);
  border: 1px solid #c99a36;
  border-radius: 20px;
  background: linear-gradient(125deg,rgba(13,14,14,.975),rgba(5,6,6,.97));
  box-shadow: 0 18px 55px rgba(0,0,0,.62),0 0 0 1px rgba(255,255,255,.04) inset;
  scroll-margin-top: 90px;
}
.booking-panel .booking-stage { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.booking-date-bar { display: grid; grid-template-columns: 42px minmax(0,1fr) 42px; align-items: center; gap: 8px; }
.booking-date-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 44px;
  margin: 0 !important;
  border: 1px solid #454545;
  border-radius: 50%;
  background: linear-gradient(#222,#131414);
  color: #fff;
  font: 30px/1 var(--sans);
}
.booking-date-arrow:hover { border-color: #efc45e; color: #efc45e; }
.booking-date-arrow:disabled { opacity: .35; cursor: not-allowed; }
.booking-day-choices { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 7px; min-width: 0; margin: 0; }
.booking-day-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  width: 100%;
  height: 76px;
  margin: 0 !important;
  padding: 5px 2px;
  border: 1px solid #484848;
  border-radius: 8px;
  background: linear-gradient(150deg,#171819,#0e0f10);
  color: #d7d7d7;
  font-size: 10px;
  line-height: 1.1;
  box-shadow: 0 8px 14px rgba(0,0,0,.2);
}
.booking-day-choice b { color: #f6f6f6; font: 700 24px/1 var(--sans); }
.booking-day-choice small { font-size: 10px; }
.booking-day-choice[aria-pressed=true] { border-color: #ffda75; background: linear-gradient(145deg,#ffda79,#e8af42); color: #0e0c08; box-shadow: 0 0 18px rgba(243,185,65,.27); }
.booking-day-choice[aria-pressed=true] b { color: #0e0c08; }
.booking-status { margin: 9px 0 0; color: #ddd; font-size: 12px; line-height: 1.45; text-align: center; }
.booking-status:empty { display: none; }
#booking-stage-agenda:has(#booking-status:not(:empty)) .booking-legend { display: none; }
.booking-periods:not(:has(.booking-slot-grid button)) { display: none !important; }
.booking-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin: 8px 0 13px; padding: 0; }
.booking-legend span { display: inline-flex; align-items: center; gap: 7px; color: #e6e6e6 !important; font-size: 11px; font-weight: 400; }
.booking-legend i { width: 13px; height: 13px; border-radius: 50%; }
.legend-free { background: #20b763; }.legend-busy { background: #f23f4c; }.legend-pending { background: #f5c65a; }.legend-unavailable { background: #797d83; }
.booking-periods { display: grid; grid-template-columns: minmax(0,1fr) 82px minmax(0,1fr); gap: 12px; margin: 0; padding: 13px 0 0; border-top: 1px solid #333; }
.booking-period { display: block; min-width: 0; }
.booking-period-heading { display: flex; align-items: center; gap: 10px; min-height: 38px; margin: 0 0 9px; list-style: none; cursor: pointer; }
.booking-period-heading::-webkit-details-marker { display: none; }
.booking-period-heading>span:first-child { color: #fac857; font-size: 31px; line-height: 1; }
.booking-period-label { display: block; min-width: 0; flex: 1; }
.booking-period-label strong { display: block; font: 700 16px/1.1 var(--sans); }
.booking-period-label small { display: block; margin-top: 3px; color: #aaa; font-size: 11px; }
.booking-period-heading>b { display: none; }
.booking-slot-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.booking-slot-grid .slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 100%; min-width: 0; min-height: 58px; margin: 0; padding: 5px 2px; border: 1px solid #18c36f; border-radius: 8px; background: linear-gradient(145deg,#123525,#091e17); color: #fff; box-shadow: inset 0 0 18px rgba(0,95,49,.16); font-size: 11px; cursor: pointer; }
.booking-slot-grid .slot strong { font: 700 15px/1.1 var(--sans); }
.booking-slot-grid .slot small { color: #78e9a2; font-size: 10px; font-weight: 500; }
.booking-slot-grid .slot-pending { border-color: #e9b738; background: linear-gradient(145deg,#3d2c0f,#241d0d); }.booking-slot-grid .slot-pending small { color: #ffd36d; }
.booking-slot-grid .slot-blocked,.booking-slot-grid .slot-confirmed { border-color: #ed364b; background: linear-gradient(145deg,#3b131b,#220b10); }.booking-slot-grid .slot-blocked small,.booking-slot-grid .slot-confirmed small { color: #ff7280; }
.booking-slot-grid .slot-unavailable { border-color: #696969; background: linear-gradient(145deg,#262626,#151515); }.booking-slot-grid .slot-unavailable strong,.booking-slot-grid .slot-unavailable small { color: #aaa; }
.booking-slot-grid .slot:disabled { cursor: not-allowed; opacity: 1; }.booking-slot-grid .slot:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 0 16px rgba(29,186,99,.3); }
.booking-lunch { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 205px; padding: 9px 4px; border: 1px solid #323232; border-radius: 9px; background: linear-gradient(#171819,#101112); text-align: center; }
.booking-lunch>span { color: #a5a8ac; font-size: 34px; line-height: 1; }.booking-lunch strong { color: #d7d7d7; font: 400 14px/1.28 var(--sans); }.booking-lunch small { color: #f2f2f2; font-size: 9px; line-height: 1.35; }
.booking-progress { display: flex; align-items: center; gap: 14px; min-height: 58px; margin-top: 13px; padding: 8px 12px; border: 1px solid #323232; border-radius: 9px; background: #090a0a; }
.booking-progress>strong { flex: 0 0 auto; font: 600 13px/1.2 var(--sans); letter-spacing: .035em; }.booking-progress ol { display: flex; justify-content: space-between; gap: 6px; flex: 1; margin: 0; padding: 0; list-style: none; }
.booking-progress li { display: flex; align-items: center; gap: 6px; color: #aaa; white-space: nowrap; font-size: 10px; }.booking-progress li b { display: grid; flex: 0 0 29px; place-items: center; height: 29px; border: 1px solid #777; border-radius: 50%; background: #222; color: #f6f6f6; font-size: 13px; }
.booking-progress li.current { color: #f7c657; }.booking-progress li.current b { border-color: #f7cc67; background: #f7cc67; color: #090909; }
.booking-progress li[hidden] { display: none !important; }
.booking-benefits { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; margin-top: 7px; }.booking-benefits>div { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 58px; padding: 8px; border: 1px solid #2f2f2f; border-radius: 8px; background: linear-gradient(#1b1c1c,#141515); }
.booking-benefits b { flex: 0 0 22px; color: #f6c45a; font-size: 24px; font-weight: 400; text-align: center; }.booking-benefits span { color: #f4f4f4; font-size: 9px; line-height: 1.35; }.booking-benefits small { display: block; margin-top: 3px; color: #aaa; font-size: 9px; }
.booking-catalog-link { grid-area: catalog; display: block; width: 100%; max-width: 1040px; margin: 0 auto; color: #eac15d; font: 700 10px/1.3 var(--sans); letter-spacing: .14em; text-align: right; }.booking-catalog-link:hover { text-decoration: underline; }
.booking-panel #booking-stage-service,.booking-panel #booking-stage-confirm { min-height: 350px; padding: 20px; }.booking-panel #booking-stage-service h3,.booking-panel #booking-stage-confirm h3 { font-family: var(--sans); }.booking-panel #booking-stage-service .booking-status,.booking-panel #booking-stage-confirm .booking-status { text-align: left; }.booking-panel .booking-result:not(:empty) { margin: 18px 0; }
@media (min-width: 1101px) {
  .booking-layout {
    grid-template-columns: minmax(420px,.78fr) minmax(0,1fr);
    grid-template-rows: auto auto auto;
    align-items: start;
    gap: 16px clamp(24px,2.5vw,48px);
  }
  .booking-visual { min-height: clamp(700px,88vh,840px); }
  .booking-intro { align-self: end; }
  .booking-panel { padding: clamp(16px,1.3vw,22px); }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .booking-layout { grid-template-columns: minmax(250px,.65fr) minmax(0,1.35fr); width: calc(100% - 40px); gap: 8px 18px; }
  .booking-visual { min-height: 600px; }
  .booking-panel { padding: 15px 12px; }
  .booking-periods { grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-areas: "morning afternoon" "lunch lunch"; gap: 10px; }
  .booking-period:first-child { grid-area: morning; }.booking-period:last-child { grid-area: afternoon; }
  .booking-lunch { grid-area: lunch; min-height: 54px; flex-direction: row; gap: 12px; }
  .booking-slot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
  .booking-progress { display: block; }.booking-progress>strong { display: block; margin-bottom: 7px; }
  .booking-progress li { white-space: normal; font-size: 9px; }
  .booking-benefits { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1000px) {
  .booking { padding: 0 0 45px; }
  .booking-atmosphere { background-position: 38% center; }
  .booking-layout {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: minmax(280px,34vw) auto auto;
    grid-template-areas: "intro" "panel" "catalog";
    align-items: start;
    gap: 0;
    width: 100%;
  }
  .booking-visual,.booking-intro { grid-area: intro; }
  .booking-visual { min-height: 0; height: 100%; width: 100%; justify-content: end; -webkit-mask-image: none; mask-image: none; }
  .booking-visual::after { position: absolute; z-index: 0; inset: 42% 0 0; background: linear-gradient(0deg,#080706 0%,rgba(8,7,6,.72) 21%,transparent 100%); content: ''; }
  .booking-portrait { position: absolute; right: clamp(2px,4vw,38px); bottom: 0; width: auto; height: 105%; max-width: 64%; object-fit: contain; object-position: right bottom; -webkit-mask-image: linear-gradient(90deg,transparent 0%,rgba(0,0,0,.4) 10%,#000 32%,#000 90%,rgba(0,0,0,.65) 100%); mask-image: linear-gradient(90deg,transparent 0%,rgba(0,0,0,.4) 10%,#000 32%,#000 90%,rgba(0,0,0,.65) 100%); }
  .booking-intro { position: relative; z-index: 2; align-self: center; width: min(60%,570px); margin: 0; padding: 22px clamp(22px,5vw,62px); text-align: left; }
  .booking-eyebrow { justify-content: flex-start; gap: 9px; margin-bottom: 10px; font-size: 10px; letter-spacing: .16em; }
  .booking-eyebrow span { width: 20px; }
  .booking :is(h1,h2) { font-size: clamp(34px,5.4vw,56px); line-height: 1.01; }
  .booking-intro>p:last-child { max-width: 350px; margin-top: 10px; font-size: clamp(13px,1.8vw,17px); line-height: 1.4; }
  .booking-panel { width: min(100% - 28px,920px); margin: -22px auto 0; padding: 18px; border-radius: 22px; }
  .booking-date-bar { grid-template-columns: 40px minmax(0,1fr) 40px; gap: 6px; }
  .booking-date-arrow { width: 40px; }
  .booking-day-choices { gap: 5px; }
  .booking-day-choice { height: 72px; }
  .booking-periods { grid-template-columns: minmax(0,1fr) 68px minmax(0,1fr); gap: 8px; }
  .booking-slot-grid { gap: 5px; }
  .booking-slot-grid .slot { min-height: 57px; }
  .booking-progress { gap: 8px; padding-inline: 9px; }.booking-progress>strong { font-size: 11px; }
  .booking-progress li { gap: 4px; font-size: 9px; }.booking-progress li b { flex-basis: 27px; height: 27px; }
  .booking-benefits { gap: 5px; }.booking-benefits>div { gap: 5px; padding: 6px; }
  .booking-catalog-link { width: min(100% - 28px,920px); margin: 8px auto 0; }
}
@media (max-width: 760px) {
  .booking { padding-bottom: 32px; }
  .booking-layout { grid-template-rows: clamp(270px,74vw,340px) auto auto; }
  .booking-visual::before { inset: 0; background: radial-gradient(ellipse at 77% 38%,rgba(239,157,55,.24),transparent 54%); }
  .booking-portrait { right: -3%; height: 103%; max-width: 70%; }
  .booking-intro { width: min(69%,390px); padding: 18px 0 26px 20px; }
  .booking-title-desktop { display: none; }.booking-title-mobile { display: inline; }
  .booking :is(h1,h2) { font-size: clamp(26px,7.3vw,35px); line-height: 1.01; letter-spacing: -.035em; }
  .booking-intro>p:last-child { max-width: 240px; margin-top: 9px; font-size: 13px; }
  .booking-panel { width: calc(100% - 16px); margin-top: -20px; padding: 15px 12px 13px; border-radius: 24px; }
  .booking-date-bar { grid-template-columns: 36px minmax(0,1fr) 36px; gap: 5px; }
  .booking-date-arrow { width: 36px; height: 44px; font-size: 26px; }
  .booking-day-choices { gap: 4px; }
  .booking-day-choice { height: 72px; padding: 4px 1px; font-size: 9px; }
  .booking-day-choice b { font-size: clamp(16px,4.6vw,21px); }
  .booking-day-choice small { font-size: 9px; }
  .booking-legend { justify-content: space-around; gap: 7px 10px; margin: 9px 0 11px; }
  .booking-legend span { gap: 5px; font-size: 10px; }.booking-legend i { width: 11px; height: 11px; }
  .booking-periods { grid-template-columns: minmax(0,1fr); gap: 9px; padding-top: 10px; }
  .booking-period { padding: 0 10px 10px; border: 1px solid #333; border-radius: 12px; background: rgba(20,21,21,.62); }
  .booking-period-heading { min-height: 61px; margin: 0; gap: 12px; }
  .booking-period-heading>span:first-child { font-size: 34px; }
  .booking-period-label strong { font-size: 17px; }.booking-period-label small { font-size: 12px; }
  .booking-period-heading>b { display: block; margin-left: auto; width: 34px; height: 34px; border: 1px solid #76613d; border-radius: 50%; color: #f4cb69; font: 22px/30px var(--sans); text-align: center; }
  .booking-period:not([open]) .booking-period-heading>b { transform: rotate(180deg); }
  .booking-slot-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; padding-bottom: 2px; }
  .booking-slot-grid .slot { min-height: 58px; border-radius: 9px; }.booking-slot-grid .slot strong { font-size: 13px; }.booking-slot-grid .slot small { font-size: 10px; }
  .booking-lunch { min-height: 58px; flex-direction: row; gap: 10px; border-radius: 11px; }.booking-lunch>span { font-size: 26px; }.booking-lunch strong { font-size: 12px; white-space: nowrap; }.booking-lunch small { max-width: none; font-size: 9px; }
  .booking-progress { position: relative; display: block; min-height: 0; margin: 9px -12px -13px; padding: 15px 10px 10px; border-width: 1px 0 0; border-radius: 0 0 22px 22px; background: transparent; }
  .booking-progress>strong { display: none; }
  .booking-progress ol { position: relative; gap: 3px; }
  .booking-progress ol::before { position: absolute; z-index: 0; top: 14px; right: 11%; left: 11%; height: 1px; background: #4c4c4c; content: ''; }
  .booking-progress li { position: relative; z-index: 1; flex: 1; flex-direction: column; gap: 5px; text-align: center; white-space: normal; font-size: 9px; }
  .booking-progress li b { flex: none; width: 30px; height: 30px; border-color: #aaa; background: #151515; font-size: 13px; }
  .booking-progress li.current b { box-shadow: 0 0 14px rgba(247,198,87,.28); }
  .booking-progress li span { max-width: 70px; font-size: 9px; line-height: 1.2; }
  .booking-benefits { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; margin-top: 8px; }
  .booking-benefits>div { flex-direction: column; justify-content: center; gap: 3px; min-height: 80px; padding: 6px 3px; text-align: center; }
  .booking-benefits b { flex-basis: auto; font-size: 23px; }.booking-benefits span { font-size: 9px; }.booking-benefits small { font-size: 8px; }
  .booking-catalog-link { width: calc(100% - 22px); margin-top: 8px; }
  .booking-panel #booking-stage-service,.booking-panel #booking-stage-confirm { min-height: 0; padding: 10px 0; }
}
@media (max-width: 390px) {
  .booking-layout { grid-template-rows: 258px auto auto; }
  .booking-intro { width: 70%; padding-left: 15px; }
  .booking :is(h1,h2) { font-size: clamp(26px,7.7vw,30px); }
  .booking-eyebrow { font-size: 8px; letter-spacing: .12em; }
  .booking-panel { width: calc(100% - 12px); padding: 13px 8px 11px; }
  .booking-date-bar { grid-template-columns: 32px minmax(0,1fr) 32px; gap: 3px; }
  .booking-date-arrow { width: 32px; height: 42px; }
  .booking-day-choices { gap: 3px; }
  .booking-day-choice { height: 66px; font-size: 8px; }.booking-day-choice b { font-size: 15px; }.booking-day-choice small { font-size: 8px; }
  .booking-legend { gap: 6px 7px; }.booking-legend span { font-size: 9px; }
  .booking-slot-grid { gap: 5px; }.booking-slot-grid .slot { min-height: 54px; }.booking-slot-grid .slot strong { font-size: 12px; }.booking-slot-grid .slot small { font-size: 9px; }
  .booking-lunch { gap: 7px; }.booking-lunch small { font-size: 8px; }
  .booking-benefits>div { min-height: 76px; }
}
@media (max-width: 340px) {
  .booking-period { padding-inline: 7px; }
  .booking-slot-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .booking-progress li span { font-size: 8px; }
  .booking-benefits { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .booking-benefits>div { min-height: 56px; flex-direction: row; text-align: left; }
  .booking-benefits span,.booking-benefits small { font-size: 9px; }
}

/* Keep the booking scene focused on the schedule and its barbershop background. */
.booking-visual { display: none !important; }
.booking-layout {
  grid-template-columns: minmax(0,1100px);
  grid-template-rows: auto auto auto;
  grid-template-areas: "intro" "panel" "catalog";
  justify-content: center;
  align-items: start;
  gap: 16px;
  width: min(100% - 32px,1100px);
}
.booking-intro { position: static; grid-area: intro; align-self: auto; width: 100%; margin: 0; padding: 0 8px; text-align: center; }
.booking-eyebrow { justify-content: center; }
.booking-intro>p:last-child { margin-inline: auto; }
.booking-panel { grid-area: panel; width: 100%; max-width: none; margin: 0; }
.booking-catalog-link { width: 100%; max-width: none; }
@media (max-width: 1000px) {
  .booking-layout { grid-template-rows: auto auto auto; gap: 14px; width: calc(100% - 28px); }
  .booking-intro { padding: 24px 10px 4px; text-align: center; }
  .booking-eyebrow { justify-content: center; }
  .booking :is(h1,h2) { font-size: clamp(30px,5.4vw,46px); }
  .booking-intro>p:last-child { max-width: 430px; margin: 9px auto 0; }
  .booking-panel { margin: 0 auto; }
}
@media (max-width: 760px) {
  .booking { padding-top: 14px; }
  .booking-layout { grid-template-rows: auto auto auto; gap: 12px; width: calc(100% - 16px); }
  .booking-intro { width: 100%; padding: 20px 12px 4px; }
  .booking :is(h1,h2) { font-size: clamp(28px,7.3vw,35px); }
  .booking-intro>p:last-child { max-width: 310px; font-size: 13px; }
  .booking-panel { width: 100%; margin: 0 auto; }
}
@media (max-width: 390px) {
  .booking-layout { width: calc(100% - 12px); }
  .booking-intro { padding-inline: 8px; }
}
