/* =========================================================
   File: PrivateV(2).css
   Description: Unified Premium Dark Theme & Booking Flow
   ========================================================= */


/* =========================================================
   1. THEME TOKENS
   ========================================================= */

:root {
  --bg-dark: #0b0f16;
  --bg-charcoal: #101722;
  --surface-muted: rgba(16, 23, 34, 0.88);
  --surface-soft: rgba(14, 19, 29, 0.96);

  --text-main: #e8e9eb;
  --text-muted: #8d95a1;
  --text-soft: #b0b8c4;

  --accent-blue: #4da6ff;
  --accent-blue-hover: #75bdff;
  --glow-effect: 0 0 15px #773509;

  --available-green: #4caf50;
  --available-color: #4caf50;
  --available-bg: rgba(76, 175, 80, 0.05);
  --available-border: rgba(76, 175, 80, 0.22);
  --available-rgb: 76, 175, 80;

  --border-soft: rgba(255, 255, 255, 0.08);

  --font-serif: "Times New Roman", Times, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}


/* =========================================================
   2. GLOBAL RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  width: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
.headline-xl {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-main);
}


/* =========================================================
   3. BACKGROUND EFFECT
   ========================================================= */

body.minimal-dark-theme::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: -1;
  background: radial-gradient(circle, rgba(18, 21, 26, 0.8) 0%, #090b0e 70%);
  opacity: 0.6;
}


/* =========================================================
   4. HERO SECTION
   ========================================================= */

.headline-xl {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  line-height: 1.1;
}

.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  padding: 0 20px;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  opacity: 1;
}

.hero-headline,
.headline-xl {
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subheading {
  margin: 0 0 2rem;
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 40rem;
}


/* =========================================================
   5. SHARED BUTTONS
   ========================================================= */

.nav-control {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 40px auto 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  font-size: 1rem;
  font-family: var(--font-sans);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--bg-charcoal);
  color: var(--accent-blue);
  border: 1px solid rgba(77, 166, 255, 0.2);
}

.btn-primary:hover {
  color: var(--accent-blue-hover);
  border-color: rgba(77, 166, 255, 0.4);
  box-shadow: var(--glow-effect);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.btn-secondary:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.03);
}


/* =========================================================
   6. BOOKING STREAM
   ========================================================= */

.main-booking-stream {
  width: min(1100px, calc(100% - 2rem));
  min-height: 100vh;
  margin: 0 auto;
  padding: 2rem 0 4rem;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-charcoal) 100%);
}

.main-booking-stream.instructor-leon {
  --available-color: #773509;
  --available-rgb: 119, 53, 9;
  --available-bg: rgba(119, 53, 9, 0.08);
  --available-border: rgba(119, 53, 9, 0.35);
}

.main-booking-stream.instructor-colleen {
  --available-color: #d88cff;
  --available-rgb: 216, 140, 255;
  --available-bg: rgba(216, 140, 255, 0.08);
  --available-border: rgba(216, 140, 255, 0.35);
}


/* =========================================================
   7. STREAM HEADER
   ========================================================= */

.stream-header {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.stream-intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.stream-eyebrow,
.stream-subtitle,
.active-step-kicker {
    display: none;
}

.stream-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  font-weight: 800;
  color: #ffffff;
}

.stream-subtitle {
  margin: 0.9rem auto 0;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #b9c0cb;
  text-align: center;
}


/* =========================================================
   8. HYBRID PROGRESS BAR
   ========================================================= */

.booking-progress {
  display: grid;
  grid-template-columns: auto minmax(36px, 1fr) auto minmax(36px, 1fr) auto;
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.75rem;
  max-width: 760px;
  margin: 0 auto;
}

.progress-step {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.progress-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.progress-number {
  font-size: 0.95rem;
  font-weight: 700;
  color: #9ca3af;
}

.progress-copy {
  min-width: 0;
}

.progress-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: #96a0ad;
}

.progress-line {
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.progress-step.is-active .progress-marker {
  border-color: rgba(255, 255, 255, 0.32);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.progress-step.is-active .progress-number {
  color: #111827;
}

.progress-step.is-active .progress-label {
  color: #ffffff;
}


/* =========================================================
   9. ACTIVE STEP HEADING
   ========================================================= */

.active-step-panel {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 2rem;
}

.active-step-heading {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.active-step-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
}

.active-step-title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.15;
  font-weight: 700;
  color: #ffffff;
}


/* =========================================================
   10. INSTRUCTOR SELECTION
   ========================================================= */

.instructor-selection-panel {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-instructor {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 220px;
  gap: 1rem;
  padding: 1.4rem 1.4rem 1.25rem;
  margin: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-instructor:hover,
.btn-instructor.instructor-selected,
.instructor-selected {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-blue);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.btn-instructor:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}

.instructor-portrait {
  width: 118px;
  height: 118px;
  object-fit: contain;
  border-radius: 24px;
  /* border: 2px solid rgba(255, 255, 255, 0.14); */
}

.btn-instructor span {
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: none;
}

.btn-instructor:hover span,
.btn-instructor.instructor-selected span,
.instructor-selected span {
  color: var(--accent-blue);
}


/* =========================================================
   11. CALENDAR FRAME
   ========================================================= */

.inline-calendar-component {
  max-width: 550px;
  margin: 2rem auto 1rem;
  padding: 1.5rem;
  background: rgba(14, 19, 29, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
}

.calendar-nav {
  display: grid;
  grid-template-columns: 76px 1fr 76px;
  align-items: center;
  gap: 16px;
}

.month-year-title {
  min-width: 0;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.btn-cal-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 0.45rem 0.7rem;
  background: linear-gradient(180deg, #1b2230 0%, #121722 100%);
  color: #d5dbe4;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-cal-nav:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.08);
}

.inline-calendar-ui {
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.calendar-days-header {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}

.calendar-days-header div {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #97a2af;
}

.inline-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 0.85rem;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 500;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease;
}

/* Available dates */
.calendar-day.day-available {
  color: #f2f4f7;
  background-color: transparent;
  border-color: transparent;
  cursor: pointer;
}

.calendar-day.day-available:hover {
  border-color: var(--available-color);
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(var(--available-rgb), 0.12),
    0 8px 18px rgba(var(--available-rgb), 0.16);
  background-color: color-mix(in srgb, var(--available-color) 14%, transparent);
}

/* Unavailable dates */
.calendar-day.day-unavailable {
  color: color-mix(in srgb, var(--text-soft) 58%, #6b7280);
  background-color: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.03);
  opacity: 0.5;
  cursor: default;
}

/* Past dates */
.calendar-day.day-past {
  color: color-mix(in srgb, var(--text-soft) 42%, #6b7280);
  background-color: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.025);
  opacity: 0.32;
  cursor: default;
}

/* Selected date */
.calendar-day.is-selected {
  background-color: var(--available-color) !important;
  color: var(--bg-dark) !important;
  font-weight: 700;
  transform: translateY(-1px);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(var(--available-rgb), 0.16),
    0 8px 18px rgba(var(--available-rgb), 0.22);
  border-color: var(--available-color) !important;
  opacity: 1;
}

/*Today - outlined but not stronger than selected */
.day-today {
  color: var(--available-color);
  border-color: var(--available-color);
}

.day-pad {
  visibility: hidden;
}


/* =========================================================
   12. CALENDAR LEGEND
   ========================================================= */

.calendar-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
  text-align: center;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #c4ccd6;
  font-size: 0.92rem;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-available {
  background-color: var(--available-green);
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.35);
}

.dot-unavailable {
  background-color: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.dot-past {
  background-color: rgba(141, 149, 161, 0.45);
}


/* =========================================================
   13. TIME SLOTS
   ========================================================= */

.time-slots-grid {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.time-slots-title {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.chips-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.time-chip {
  padding: 0.9rem 0.75rem;
  background: transparent;
  color: var(--text-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.01rem;
  cursor: pointer;
  transition: 
    transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease,
    color 0.18s ease;
}

.time-chip:hover {
  border-color: var(--available-color);
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--available-color) 14%, var(--surface-soft));
  color: #ffffff;
  /*color: var(--bg-dark);*/
  box-shadow: 
    0 10px 18px color-mix(in srgb, var(--available-color) 18%, transparent);
}

.time-chip.is-selected {
  /*background: var(--accent-blue);*/
  background-color: var(--available-color);
  color: var(--bg-dark);
  box-shadow: 
    0 12px 22px color-mix(in srgb, var(--available-color) 26%, transparent);
  font-weight: 700;
}


/* =========================================================
   14. FOOTER
   ========================================================= */

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  margin-bottom: 12px;
  text-align: center;
}


/* =========================================================
   15. RESPONSIVE
   ========================================================= */

@media (max-width: 860px) {
  .booking-progress {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    max-width: 420px;
  }

  .progress-line {
    display: none;
  }

  .progress-step {
    justify-content: flex-start;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .progress-marker {
    width: 2rem;
    height: 2rem;
  }

  .progress-number {
    font-size: 0.88rem;
  }

  .progress-label {
    white-space: normal;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .stream-title {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }

  .calendar-nav {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .month-year-title {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .main-booking-stream {
    width: min(100% - 1rem, 100%);
    padding: 1.5rem 0 3rem;
  }

  .stream-subtitle {
    font-size: 0.95rem;
  }

  .active-step-title {
    font-size: 1.25rem;
  }

  .btn-instructor {
    width: 100%;
    max-width: 320px;
    min-height: 200px;
  }

  .instructor-portrait {
    width: 104px;
    height: 104px;
    border-radius: 22px;
  }

  .month-year-title {
    font-size: 1.3rem;
  }

  .inline-calendar-component {
    padding: 1rem;
    border-radius: 20px;
  }

  .chips-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
    .chips-wrapper {
        grid-template-columns: 1fr;
    }
}