/* ========================================
   BOOKING PAGE LAYOUT
   ======================================== */

.booking-page {
  min-height: 100svh;
  padding: 120px 24px 80px;
}

.booking-container {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.booking-header {
  text-align: center;
  margin-bottom: 60px;
}

.booking-header .section-label {
  margin-bottom: 15px;
}

/* Heading tier matches .section-title on the homepage: same clamp
   range and the same manually tuned opsz axis (see css/style.css). */
.booking-header h1 {
  margin: 0;
  font-family: "Bodoni Moda", serif;
  font-weight: 400;
  font-variation-settings: "opsz" 12;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1;
}

/* Intro paragraph tier matches .hero-copy on the homepage. */
.booking-header p {
  max-width: 520px;
  margin: 22px auto 0;
  color: var(--ink);
  font-family: "Bodoni Moda", serif;
  font-size: 18px;
  line-height: 1.7;
  font-variation-settings: "opsz" 5;
}

/* ========================================
   ALORA BOOKING CALENDAR
   ======================================== */

.booking-calendar {
  padding: 45px 24px 90px;
}

.cal16 {
  width: 100%;
  display: flex;
  justify-content: center;
  color: var(--burgundy);
}

.cal16__stage {
  position: relative;
  width: 500px;
  height: 500px;
  max-width: 90vw;
  max-height: 90vw;

  /* Diameter of a single day button. Read by js/booking.js to keep the
     circular layout free of overlap at every viewport width -- see the
     getDayRadius() comment there. */
  --cal-day-size: 42px;

  animation: cal16-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ========================================
   INTRO ANIMATION
   ======================================== */

@keyframes cal16-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========================================
   DECORATIVE RINGS
   ======================================== */

.cal16__ring {
  position: absolute;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  border-radius: 50%;
  border: 1px solid rgba(130, 22, 22, 0.16);
}

.cal16__ring--1 {
  width: 76%;
  height: 76%;
}

.cal16__ring--2 {
  width: 52%;
  height: 52%;

  border-style: dashed;
  border-color: rgba(130, 22, 22, 0.13);
}

.cal16__ring--3 {
  width: 30%;
  height: 30%;

  border-color: rgba(130, 22, 22, 0.16);
}

/* ========================================
   ROTATING TICKS
   ======================================== */

@keyframes cal16-spin-ring {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.cal16__ticks {
  position: absolute;

  width: 0;
  height: 0;

  top: 50%;
  left: 50%;

  animation: cal16-spin-ring 160s linear infinite;
}

.cal16__tick {
  position: absolute;

  top: 0;
  left: 0;

  width: 1px;
  height: 6px;

  background: rgba(130, 22, 22, 0.20);

  transform-origin: 0 0;
}

/* ========================================
   DAYS
   ======================================== */

.cal16__day {
  position: absolute;

  top: 50%;
  left: 50%;

  width: var(--cal-day-size);
  height: var(--cal-day-size);

  margin: calc(var(--cal-day-size) * -0.5) 0 0 calc(var(--cal-day-size) * -0.5);

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 50%;

  background: transparent;

  color: var(--burgundy);

  font-family: "Bodoni Moda", serif;
  font-size: 15px;
  font-weight: 400;
  font-variation-settings: "opsz" 5;

  cursor: pointer;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.cal16__day:hover:not(.disabled) {
  background: rgba(130, 22, 22, 0.06);
}

/* minulý deň */

.cal16__day.disabled {
  opacity: 0.22;
  cursor: not-allowed;
  pointer-events: none;
}

/* dnešný deň */

.cal16__day.today {
  background: var(--burgundy);
  color: var(--cream);

  font-weight: 500;

  box-shadow:
    0 0 0 5px rgba(130, 22, 22, 0.06);
}

/* vybraný deň */

.cal16__day.selected:not(.today) {
  background: var(--cream);

  color: var(--burgundy);

  box-shadow:
    0 0 0 1px var(--burgundy),
    0 5px 15px rgba(76, 32, 32, 0.08);

  font-weight: 500;
}

/* ========================================
   CENTER
   ======================================== */

.cal16__center {
  position: absolute;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  width: 38%;

  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cal16__center-month {
  font-family: "Bodoni Moda", serif;

  font-size: 48px;
  font-weight: 400;
  font-variation-settings: "opsz" 12;

  line-height: 0.95;

  color: var(--burgundy);

  letter-spacing: -0.02em;
}

.cal16__center-year {
  margin-top: 9px;

  font-family: "Montserrat", sans-serif;

  font-size: 9px;
  font-weight: 500;

  letter-spacing: 0.38em;

  color: rgba(130, 22, 22, 0.45);
}

.cal16__center-divider {
  width: 36px;
  height: 1px;

  margin: 15px 0;

  background: var(--burgundy);

  opacity: 0.35;
}

.cal16__center-selected {
  font-family: "Bodoni Moda", serif;

  font-size: 17px;
  font-style: italic;
  font-variation-settings: "opsz" 7;

  color: var(--ink);
}

.cal16__center-hint {
  margin-top: 7px;

  font-family: "Montserrat", sans-serif;

  font-size: 7px;

  letter-spacing: 0.22em;

  text-transform: uppercase;

  color: rgba(130, 22, 22, 0.45);
}

/* ========================================
   NAVIGATION
   ======================================== */

.cal16__nav {
  position: absolute;

  bottom: -18px;
  left: 50%;

  transform: translateX(-50%);

  display: flex;
  gap: 12px;
}

.cal16__nav-btn {
  width: 38px;
  height: 38px;

  border-radius: 50%;

  border: 1px solid rgba(130, 22, 22, 0.20);

  background: var(--cream);

  color: var(--burgundy);

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: "Bodoni Moda", serif;
  font-size: 17px;

  cursor: pointer;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.cal16__nav-btn:hover {
  background: var(--burgundy);
  color: var(--cream);

  transform: translateY(-2px);
}

/* ========================================
   SELECTED DATE
   ======================================== */

.calendar-selected {
  width: min(760px, 100%);

  margin: 45px auto 0;

  padding-top: 24px;

  border-top: 1px solid var(--line);

  text-align: center;
}

.calendar-selected-label {
  display: block;

  margin-bottom: 10px;

  font-family: "Montserrat", sans-serif;

  font-size: 8px;

  letter-spacing: 0.28em;

  text-transform: uppercase;

  opacity: 0.55;
}

.calendar-selected strong {
  font-family: "Bodoni Moda", serif;

  font-size: 23px;
  font-weight: 400;
  font-variation-settings: "opsz" 8;
}

/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 760px) {

  .booking-calendar {
    padding: 25px 12px 70px;
  }

  .cal16__stage {
    width: min(420px, 94vw);
    height: min(420px, 94vw);

    /* Below 500px of stage width the desktop 42px button no longer
       leaves 31 days (worst-case month length) room on the ring
       without overlapping -- see getDayRadius() in js/booking.js. */
    --cal-day-size: 34px;
  }

  .cal16__center-month {
    font-size: 38px;
  }

  .cal16__center-year {
    font-size: 8px;
  }

  .cal16__center-selected {
    font-size: 15px;
  }

  .cal16__day {
    font-size: 13px;
  }

  .cal16__nav {
    bottom: -15px;
  }

  .calendar-selected {
    margin-top: 35px;
  }
}

/* Narrow phones: shrink the day button further so a 31-day month still
   fits the ring without overlapping (worked out against the stage's
   min(420px, 94vw) width -- see getDayRadius() in js/booking.js). */
@media (max-width: 420px) {
  .cal16__stage {
    --cal-day-size: 28px;
  }

  .cal16__day {
    font-size: 11px;
  }
}

@media (max-width: 340px) {
  .cal16__stage {
    --cal-day-size: 20px;
  }

  .cal16__day {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cal16__ticks,
  .cal16__stage {
    animation: none !important;
  }
}
/* ========================================
   BOOKING SERVICES
   ======================================== */

.booking-services {
  max-width: 760px;
  margin: 55px auto 0;
  padding-top: 35px;
  border-top: 1px solid var(--line);
}

.booking-services-label {
  margin-bottom: 24px;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.booking-service-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.booking-service {
  width: 100%;
  padding: 20px 22px;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.booking-service:hover {
  background: rgba(255, 255, 255, 0.18);
}

.booking-service.selected {
  border: 1px solid var(--burgundy);
  background: rgba(255, 255, 255, 0.22);
}

.booking-service-name {
  font-family: "Bodoni Moda", serif;
  font-size: 18px;
  line-height: 1.3;
  font-variation-settings: "opsz" 5;
}

.booking-service-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.booking-service-duration {
  font-family: "Montserrat", sans-serif;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
}

.booking-service-price {
  min-width: 68px;
  padding: 6px 10px;
  border: 1px solid rgba(130, 22, 22, 0.28);
  border-radius: 999px;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 760px) {
  .booking-services {
    margin-top: 40px;
    padding-top: 28px;
  }

  .booking-service {
    padding: 17px 8px;
    gap: 12px;
  }

  .booking-service-name {
    font-size: 15px;
  }

  .booking-service-meta {
    gap: 8px;
  }

  .booking-service-duration {
    font-size: 8px;
  }

  .booking-service-price {
    min-width: 60px;
    padding: 5px 8px;
    font-size: 10px;
  }
}

/* ========================================
   BOOKING TIMES
   ======================================== */

.booking-times {
  max-width: 760px;
  margin: 45px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.booking-times-label {
  margin-bottom: 20px;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.booking-time-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.booking-time {
  padding: 13px 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--burgundy);
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  transition: 0.2s ease;
}

.booking-time:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.booking-time.selected {
  background: var(--burgundy);
  color: var(--cream);
}

.booking-time-error,
.booking-service-error {
  color: var(--ink);
  font-family: "Bodoni Moda", serif;
  font-size: 15px;
  font-variation-settings: "opsz" 5;
}


/* ========================================
   BOOKING NOTE
   ======================================== */

.booking-note {
  max-width: 760px;
  margin: 40px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.booking-note-label {
  margin-bottom: 15px;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.booking-note-label span {
  margin-left: 8px;
  opacity: 0.45;
  letter-spacing: 0.1em;
}

.booking-note textarea {
  width: 100%;
  height: 100px;
  min-height: 100px;
  max-height: 100px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
  resize: none;
  font-family: "Bodoni Moda", serif;
  font-size: 16px;
  line-height: 1.6;
  font-variation-settings: "opsz" 5;
  outline: none;
}

.booking-note textarea:focus {
  border-color: var(--burgundy);
}

.booking-note textarea::placeholder {
  color: var(--ink);
  opacity: 0.45;
}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 760px) {

  .booking-time-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .booking-time {
    padding: 12px 6px;
  }

  .booking-note {
    margin-top: 32px;
  }

}

/* ========================================
   BOOKING STEP REVEAL
   ======================================== */

@keyframes booking-reveal {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.booking-services,
.booking-times,
.booking-note {
  animation: booking-reveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ========================================
   BOOKING CONTACT
   ======================================== */

.booking-contact {
  max-width: 760px;
  margin: 45px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  animation: booking-reveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.booking-contact-label {
  margin-bottom: 24px;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.booking-contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.booking-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.booking-field label {
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.65;
}

.booking-field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
  font-family: "Bodoni Moda", serif;
  font-size: 16px;
  font-variation-settings: "opsz" 5;
  outline: none;
  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}

.booking-field input:focus {
  border-color: var(--burgundy);
  background: rgba(255, 255, 255, 0.2);
}

.booking-field input::placeholder {
  color: var(--ink);
  opacity: 0.4;
}


/* ========================================
   CONFIRM BUTTON
   ======================================== */

.booking-confirm {
  width: 100%;
  margin-top: 30px;
  padding: 17px 24px;
  border: 1px solid var(--burgundy);
  background: var(--burgundy);
  color: var(--cream);
  font-family: "Montserrat", sans-serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.booking-confirm:hover {
  transform: translateY(-2px);
}


/* ========================================
   OVERLAY
   ======================================== */

.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(76, 32, 32, 0.48);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  animation: booking-overlay-in 0.45s ease both;
}

@keyframes booking-overlay-in {
  from {
    opacity: 0;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
  }

  to {
    opacity: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}


/* ========================================
   LOADER
   ======================================== */

.booking-loader-box {
  width: min(380px, 100%);
  padding: 45px 30px;

  text-align: center;

  border: 1px solid rgba(130, 22, 22, 0.2);
  background: var(--cream);
}

.booking-loader {
  width: 32px;
  height: 32px;
  margin: 0 auto 25px;

  border: 1px solid rgba(130, 22, 22, 0.2);
  border-top-color: var(--burgundy);
  border-radius: 50%;

  animation: booking-spin 1s linear infinite;
}

@keyframes booking-spin {
  to {
    transform: rotate(360deg);
  }
}

.booking-loader-title {
  font-family: "Bodoni Moda", serif;
  font-size: 22px;
  font-variation-settings: "opsz" 8;
}

.booking-loader-text {
  margin-top: 10px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}


/* ========================================
   SUCCESS
   ======================================== */

.booking-success-box {
  width: min(460px, 100%);
  padding: 50px 35px;

  text-align: center;

  border: 1px solid rgba(130, 22, 22, 0.2);
  background: var(--cream);

  box-shadow: 0 20px 70px rgba(76, 32, 32, 0.16);

  animation: booking-success-in 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes booking-success-in {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.booking-success-mark {
  width: 42px;
  height: 42px;
  margin: 0 auto 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--burgundy);
  border-radius: 50%;

  font-size: 17px;
}

.booking-success-label {
  margin-bottom: 14px;

  font-size: 8px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.booking-success-box h2 {
  margin: 0;

  font-family: "Bodoni Moda", serif;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 400;
  font-variation-settings: "opsz" 10;
  line-height: 1.15;
}

.booking-success-box p {
  max-width: 340px;
  margin: 20px auto 0;

  color: var(--ink);

  font-family: "Bodoni Moda", serif;
  font-size: 16px;
  line-height: 1.7;
  font-variation-settings: "opsz" 5;
}

.booking-number {
  margin-top: 28px;
  padding-top: 22px;

  border-top: 1px solid var(--line);

  display: flex;
  flex-direction: column;
  gap: 7px;
}

.booking-number span {
  font-size: 8px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.55;
}

.booking-number strong {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.booking-success-close {
  margin-top: 30px;

  padding: 13px 25px;

  border: 1px solid var(--burgundy);
  background: transparent;
  color: var(--burgundy);

  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.booking-success-close:hover {
  background: var(--burgundy);
  color: var(--cream);
}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 760px) {

  .booking-contact {
    margin-top: 35px;
  }

  .booking-field input {
    height: 50px;
  }

  .booking-success-box {
    padding: 40px 24px;
  }
}
