/* Extracted from templates/fragments/booking-modal.html */
.bm-overlay {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 10000;
      background: rgba(0, 0, 0, 0.65);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      align-items: center;
      justify-content: center;
      padding: 20px;
      overflow-y: auto
    }

    .bm-overlay.open {
      display: flex
    }

    .bm-container {
      background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 20px;
      max-width: 640px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      padding: 0;
      position: relative;
      animation: bmSlideIn .35s ease
    }

    @keyframes bmSlideIn {
      from {
        opacity: 0;
        transform: translateY(30px) scale(.97)
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1)
      }
    }

    .bm-close {
      position: absolute;
      top: 16px;
      right: 18px;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #94a3b8;
      font-size: 1.4rem;
      cursor: pointer;
      z-index: 10;
      transition: all .2s
    }

    .bm-close:hover {
      background: rgba(248, 113, 113, 0.15);
      border-color: rgba(248, 113, 113, 0.3);
      color: #f87171
    }

    .bm-header {
      padding: 28px 32px 16px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06)
    }

    .bm-header h2 {
      font-family: var(--font-display, sans-serif);
      font-size: 1.4rem;
      color: #e2e8f0;
      margin: 0
    }

    .bm-header p {
      color: #64748b;
      font-size: 0.85rem;
      margin: 6px 0 0
    }

    #bookingForm, .bm-success {
      padding: 24px 32px 32px
    }

    .bm-field {
      margin-bottom: 1rem
    }

    .bm-field label {
      display: block;
      font-size: 0.8rem;
      font-weight: 600;
      color: #94a3b8;
      margin-bottom: 6px
    }

    .bm-hint {
      font-size: 0.7rem;
      font-weight: 400;
      color: #475569;
      margin-left: 6px
    }

    .bm-field input, .bm-field textarea, .bm-field select {
      width: 100%;
      padding: 10px 14px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      background: rgba(15, 23, 42, 0.6);
      color: #e2e8f0;
      font-size: 0.88rem;
      font-family: inherit;
      box-sizing: border-box;
      transition: border-color .2s
    }

    .bm-field input:focus, .bm-field textarea:focus {
      outline: none;
      border-color: rgba(6, 182, 212, 0.5)
    }

    .bm-field input::placeholder, .bm-field textarea::placeholder {
      color: #475569
    }

    .bm-row {
      display: grid;
      grid-template-columns:1fr 1fr;
      gap: 1rem
    }

    .bm-err {
      display: block;
      font-size: 0.72rem;
      color: #f87171;
      margin-top: 4px;
      min-height: 0
    }

    .bm-error {
      margin: 0 32px;
      padding: 0.75rem 1rem;
      background: rgba(248, 113, 113, 0.1);
      border: 1px solid rgba(248, 113, 113, 0.3);
      border-radius: 10px;
      color: #fca5a5;
      font-size: 0.85rem
    }

    .bm-success {
      text-align: center
    }

    .bm-success h3 {
      font-family: var(--font-display, sans-serif);
      font-size: 1.3rem;
      color: #e2e8f0;
      margin-bottom: 0.5rem
    }

    .bm-success p {
      color: #94a3b8;
      font-size: 0.88rem
    }

    .bm-btn-primary {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 24px;
      border: none;
      border-radius: 12px;
      background: linear-gradient(135deg, #1a56db, #06b6d4);
      color: #fff;
      font-size: 0.95rem;
      font-weight: 600;
      cursor: pointer;
      font-family: inherit;
      transition: all .2s
    }

    .bm-btn-primary:hover {
      box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
      transform: translateY(-1px)
    }

    .bm-btn-primary:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none
    }

    /* Chips */
    .bm-chips {
      display: grid;
      grid-template-columns:repeat(3, 1fr);
      gap: 0.6rem
    }

    .bm-chip {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
      padding: 0.65rem 0.5rem;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(15, 23, 42, 0.5);
      color: #94a3b8;
      cursor: pointer;
      transition: all .2s;
      text-align: center;
      font-family: inherit
    }

    .bm-chip i {
      font-size: 0.95rem;
      margin-bottom: 2px
    }

    .bm-chip span {
      font-size: 0.75rem;
      font-weight: 600;
      color: #cbd5e1;
      line-height: 1.2
    }

    .bm-chip small {
      font-size: 0.62rem;
      color: #475569
    }

    .bm-chip:hover {
      border-color: rgba(6, 182, 212, 0.35);
      background: rgba(6, 182, 212, 0.08)
    }

    .bm-chip.active {
      border-color: rgba(6, 182, 212, 0.6);
      background: rgba(6, 182, 212, 0.12);
      color: #06b6d4
    }

    .bm-chip.active span {
      color: #06b6d4
    }

    .bm-service-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem
    }

    .bm-svc-chip {
      padding: 6px 14px;
      border-radius: 20px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(15, 23, 42, 0.5);
      color: #94a3b8;
      font-size: 0.78rem;
      font-weight: 500;
      cursor: pointer;
      transition: all .18s;
      font-family: inherit;
      white-space: nowrap
    }

    .bm-svc-chip:hover {
      border-color: rgba(99, 102, 241, 0.45);
      background: rgba(99, 102, 241, 0.08);
      color: #a5b4fc
    }

    .bm-svc-chip.active {
      border-color: rgba(99, 102, 241, 0.7);
      background: rgba(99, 102, 241, 0.18);
      color: #a5b4fc
    }

    /* Calendar — same design, prefixed bm- */
    .bm-dt-picker {
      background: rgba(15, 23, 42, 0.6);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 14px;
      overflow: hidden
    }

    .bm-cal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.75rem 1rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06)
    }

    .bm-cal-nav {
      width: 30px;
      height: 30px;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(255, 255, 255, 0.04);
      color: #94a3b8;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      transition: all .15s
    }

    .bm-cal-nav:hover {
      background: rgba(6, 182, 212, 0.12);
      border-color: rgba(6, 182, 212, 0.3);
      color: #06b6d4
    }

    .bm-cal-nav:disabled {
      opacity: 0.25;
      cursor: not-allowed
    }

    .bm-cal-month {
      font-family: var(--font-display, sans-serif);
      font-size: 0.95rem;
      font-weight: 600;
      color: #e2e8f0
    }

    .bm-cal-dow {
      display: grid;
      grid-template-columns:repeat(7, 1fr);
      padding: 0.4rem 0.75rem 0
    }

    .bm-cal-dow span {
      text-align: center;
      font-size: 0.65rem;
      font-weight: 700;
      color: #475569;
      text-transform: uppercase
    }

    .bm-cal-grid {
      display: grid;
      grid-template-columns:repeat(7, 1fr);
      gap: 2px;
      padding: 0.4rem 0.75rem 0.75rem
    }

    .bm-cal-day {
      aspect-ratio: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      font-size: 0.8rem;
      font-weight: 500;
      cursor: pointer;
      color: #94a3b8;
      border: 1px solid transparent;
      transition: all .15s;
      background: none;
      font-family: inherit
    }

    .bm-cal-day:hover:not(.disabled):not(.empty) {
      background: rgba(6, 182, 212, 0.1);
      border-color: rgba(6, 182, 212, 0.25);
      color: #06b6d4
    }

    .bm-cal-day.today {
      color: #38bdf8;
      font-weight: 700;
      position: relative
    }

    .bm-cal-day.today::after {
      content: '';
      position: absolute;
      bottom: 3px;
      left: 50%;
      transform: translateX(-50%);
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: #38bdf8
    }

    .bm-cal-day.selected {
      background: linear-gradient(135deg, #1a56db, #06b6d4) !important;
      border-color: transparent !important;
      color: #fff !important;
      font-weight: 700
    }

    .bm-cal-day.disabled {
      color: #1e293b;
      cursor: not-allowed;
      pointer-events: none
    }

    .bm-cal-day.empty {
      pointer-events: none
    }

    .bm-time-section {
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      padding: 0.75rem
    }

    .bm-time-label {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 0.75rem;
      color: #64748b;
      margin-bottom: 0.55rem;
      font-weight: 600;
      text-transform: uppercase
    }

    .bm-time-label i {
      color: #06b6d4
    }

    .bm-time-slots {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem
    }

    .bm-time-slot {
      padding: 5px 12px;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(255, 255, 255, 0.03);
      color: #94a3b8;
      font-size: 0.78rem;
      font-weight: 600;
      cursor: pointer;
      transition: all .15s;
      font-family: inherit
    }

    .bm-time-slot:hover:not(.disabled) {
      background: rgba(6, 182, 212, 0.1);
      border-color: rgba(6, 182, 212, 0.3);
      color: #06b6d4
    }

    .bm-time-slot.selected {
      background: linear-gradient(135deg, #1a56db, #06b6d4);
      border-color: transparent;
      color: #fff
    }

    .bm-time-slot.disabled {
      color: #1e293b;
      cursor: not-allowed;
      text-decoration: line-through
    }

    .bm-dt-summary {
      border-top: 1px solid rgba(74, 222, 128, 0.15);
      background: rgba(74, 222, 128, 0.06);
      padding: 0.6rem 0.75rem;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.82rem;
      color: #86efac;
      font-weight: 600
    }

    .bm-dt-summary span {
      flex: 1
    }

    .bm-dt-clear {
      background: none;
      border: none;
      color: #475569;
      font-size: 1.1rem;
      cursor: pointer
    }

    /* Invoice */
    .bm-invoice-toggle {
      border: 1px solid rgba(6, 182, 212, 0.18);
      border-radius: 14px;
      overflow: hidden;
      margin-bottom: 1rem;
      background: rgba(6, 182, 212, 0.04)
    }

    .bm-invoice-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 0.85rem 1rem;
      cursor: pointer;
      user-select: none
    }

    .bm-invoice-left {
      display: flex;
      align-items: center;
      gap: 0.75rem
    }

    .bm-invoice-title {
      display: block;
      font-size: 0.85rem;
      font-weight: 600;
      color: #e2e8f0
    }

    .bm-invoice-sub {
      display: block;
      font-size: 0.7rem;
      color: #64748b;
      margin-top: 2px
    }

    .bm-toggle {
      position: relative;
      flex-shrink: 0
    }

    .bm-toggle input {
      position: absolute;
      opacity: 0;
      width: 0;
      height: 0
    }

    .bm-toggle-track {
      display: block;
      width: 44px;
      height: 24px;
      border-radius: 12px;
      background: rgba(71, 85, 105, 0.5);
      border: 1px solid rgba(255, 255, 255, 0.08);
      transition: background .25s;
      position: relative;
      cursor: pointer
    }

    .bm-toggle-thumb {
      position: absolute;
      top: 3px;
      left: 3px;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: #94a3b8;
      transition: transform .25s, background .25s
    }

    .bm-toggle input:checked + .bm-toggle-track {
      background: linear-gradient(135deg, #1a56db, #06b6d4)
    }

    .bm-toggle input:checked + .bm-toggle-track .bm-toggle-thumb {
      transform: translateX(20px);
      background: #fff
    }

    .bm-invoice-panel {
      max-height: 0;
      overflow: hidden;
      transition: max-height .4s ease
    }

    .bm-invoice-panel.open {
      max-height: 500px
    }

    .bm-invoice-inner {
      padding: 0 1rem 1rem;
      border-top: 1px solid rgba(6, 182, 212, 0.12)
    }

    .bm-invoice-inner .bm-field:first-child {
      padding-top: 0.75rem
    }

    .bm-check {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      margin-bottom: 0.5rem;
      font-size: 0.78rem;
      color: #94a3b8
    }

    .bm-check input {
      margin-top: 3px;
      flex-shrink: 0
    }

    .bm-check a {
      color: #06b6d4
    }

    @media (max-width: 640px) {
      .bm-container {
        max-height: 95vh;
        border-radius: 16px
      }

      .bm-header {
        padding: 20px 20px 12px
      }

      #bookingForm, .bm-success {
        padding: 16px 20px 24px
      }

      .bm-chips {
        grid-template-columns:1fr 1fr
      }

      .bm-chips .bm-chip:last-child {
        grid-column: 1/-1
      }

      .bm-row {
        grid-template-columns:1fr
      }

      .bm-close {
        top: 12px;
        right: 12px
      }
    }
