/* Three illustrated pages; the appointment card keeps its original dialog. */
#booking-story-dialog {
  width: min(900px, calc(100% - 28px));
  height: min(690px, calc(100dvh - 28px));
  max-height: calc(100dvh - 28px);
  border: 1px solid #dca2a3;
  border-radius: 26px;
  background: #fff9f1;
  box-shadow: 0 22px 80px #51352955, 0 0 0 4px #fff1e9;
  overflow: auto;
}
#booking-story-dialog::backdrop { background: #51382c80; backdrop-filter: blur(6px); }
.booking-story { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 100%; height: 100%; }
.story-close { z-index: 3; background: #fffaf0ed; border: 1px solid #dcb5a0; color: #714b40; box-shadow: 0 2px 6px #79524815; }
.story-scene { position: relative; min-width: 0; min-height: 0; margin: 0; overflow: hidden; background: #f8e5d7; isolation: isolate; }
.story-scene::before { content: ''; position: absolute; inset: -24px; z-index: -1; background: var(--story-art) center / cover; filter: blur(18px); opacity: .45; }
.story-scene img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: opacity .16s ease; }
.story-scene[aria-busy="true"] img { opacity: 0; }
.story-scene-label { display: flex; align-items: center; gap: 7px; position: absolute; left: 16px; top: 16px; padding: 10px 13px; border: 1px solid #fff9f0; border-radius: 99px; background: #fffaf0e8; color: #795345; font-size: 12px; letter-spacing: .08em; }
.story-scene-label svg { width: 17px; height: 17px; fill: #c98788; }
.story-image-status { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 30px; text-align: center; color: #795345; }
.story-image-status p { max-width: 240px; line-height: 1.8; font-size: 14px; }
.story-image-status button { min-height: 44px; padding: 9px 18px; border: 1px solid #b57c76; border-radius: 99px; background: #fff8ef; font-size: 14px; }
.story-page { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 56px 32px 32px; background: radial-gradient(ellipse at 100% 0, #fce7df80, transparent 60%), #fff9f1; }
.story-heading { margin-bottom: 28px; }
.story-eyebrow { margin: 0 0 16px; font-size: 13px; letter-spacing: .15em; color: #9a605e; }
.story-eyebrow span { margin-left: 7px; color: #d69498; }
.story-progress { display: flex; gap: 7px; list-style: none; padding: 0; margin: 0; }
.story-progress li { width: 24px; height: 5px; border-radius: 99px; background: #eed9cf; }
.story-progress li[aria-current] { width: 38px; background: #c7798b; }
.story-words { min-width: 0; }
#story-title { margin: 0 0 22px; font-size: clamp(24px, 2.8vw, 30px); font-weight: 700; color: #6b4039; letter-spacing: .025em; line-height: 1.6; outline: none; }
#story-copy { color: #76574b; font-size: 16px; line-height: 2; overflow-wrap: anywhere; }
#story-copy p { margin: 0 0 16px; }
#story-copy p:last-child { margin-bottom: 0; }
#story-copy strong { color: #a64c65; font-weight: 700; }
.story-footer { padding-top: 24px; }
.story-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.story-actions button { min-height: 48px; border-radius: 99px; padding: 12px 16px; font-size: 14px; line-height: 1.5; }
.story-back { border: 1px solid #dcb5a4; background: #fffaf3; color: #825f52; }
.story-next { margin-left: auto; border: 1px solid #b7677a; background: linear-gradient(160deg, #df9aa7, #c9778c); color: #fff; box-shadow: inset 0 0 0 2px #efb8c155, 0 3px 5px #b0756218; font-weight: 700; }
.story-next:hover { filter: brightness(1.04); }
.story-next:active, .story-back:active { transform: translateY(1px); }
@media (max-width: 699px) {
  #booking-story-dialog { width: min(440px, calc(100% - 20px)); height: min(860px, calc(100dvh - 20px)); max-height: calc(100dvh - 20px); border-radius: 22px; }
  .booking-story { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(185px, 1fr) auto; }
  .story-scene-label { left: 12px; top: 12px; font-size: 11px; padding: 8px 11px; }
  .story-page { padding: 19px 24px max(20px, env(safe-area-inset-bottom)); border-top: 1px solid #f0d4c3; }
  .story-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
  .story-eyebrow { margin: 0; font-size: 11px; }
  .story-eyebrow span { display: none; }
  .story-progress { gap: 5px; }
  .story-progress li { width: 14px; height: 4px; }
  .story-progress li[aria-current] { width: 24px; }
  #story-title { font-size: 23px; line-height: 1.5; margin-bottom: 9px; }
  #story-copy { font-size: 14px; line-height: 1.85; }
  #story-copy p { margin-bottom: 12px; }
  .story-footer { padding-top: 18px; }
  .story-actions { gap: 7px; }
  .story-actions button { min-height: 44px; padding: 10px 13px; font-size: 13px; }
}
@media (max-width: 359px) {
  .story-page { padding-left: 18px; padding-right: 18px; }
  .story-actions { flex-wrap: nowrap; }
  .story-actions button { padding-left: 10px; padding-right: 10px; }
  .story-back { flex-shrink: 0; }
  #story-title { font-size: 21px; }
  #story-copy { font-size: 13px; }
}
@media (max-width: 699px) and (max-height: 650px) {
  .booking-story { grid-template-rows: minmax(136px, 1fr) auto; }
}
@media (min-width: 700px) and (max-height: 530px) {
  .story-page { padding: 22px 26px 18px; }
  .story-heading { margin-bottom: 6px; }
  .story-eyebrow { margin-bottom: 8px; }
  #story-title { font-size: 22px; margin-bottom: 8px; }
  #story-copy { font-size: 13px; line-height: 1.65; }
  #story-copy p { margin-bottom: 10px; }
  .story-footer { padding-top: 8px; }
  .story-actions button { min-height: 44px; padding: 9px 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .story-scene img { transition: none; }
  .story-next:active, .story-back:active { transform: none; }
}
