/* Partner Demo Booking — Plaready branding */

.demo-booking-page {
  min-height: 100vh;
}

/* Partner header — matches partner-landing.html */
.demo-partner-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #0a0c10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.demo-partner-header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.demo-partner-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  background: transparent;
  border-radius: 0.55rem;
  padding: 0.35rem 0.55rem;
  transition: transform 0.2s ease;
}
.demo-partner-logo:hover { transform: scale(1.02); }
.demo-partner-logo-full {
  height: 3.75rem;
  width: auto;
  max-width: min(18rem, 42vw);
  object-fit: contain;
  object-position: left center;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}
@media (min-width: 768px) {
  .demo-partner-logo-full { height: 3.75rem; max-width: 18rem; }
}
.demo-partner-nav {
  display: flex;
  gap: 1.5rem;
}
.demo-partner-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.demo-partner-nav a:hover { color: #fff; }
.demo-partner-cta {
  align-items: center;
  padding: 0.48rem 1rem;
  border-radius: 6px;
  background: #b8f500;
  color: #0a0c10;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.demo-partner-cta:hover { background: #a4e000; }
.demo-main {
  padding: 6rem 1rem 4rem;
}

/* Logo grid (3×3 lime dots) */
.demo-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  gap: 3px;
  width: 18px;
  height: 18px;
}
.demo-logo-grid::before {
  content: '';
  display: contents;
}
.demo-logo-grid {
  background:
    radial-gradient(circle, #b8f500 2px, transparent 2px) 0 0 / 7px 7px;
  width: 21px;
  height: 21px;
}

/* Animations */
@keyframes demoFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.demo-fade-in {
  animation: demoFadeIn 0.45s ease both;
}
.demo-delay-1 { animation-delay: 0.08s; }
.demo-delay-2 { animation-delay: 0.16s; }

@keyframes demoCheckDraw {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}
.demo-check-draw {
  stroke-dasharray: 24;
  animation: demoCheckDraw 0.6s ease 0.3s both;
}
.demo-success-icon {
  animation: demoFadeIn 0.5s ease both;
}
.demo-success-title {
  animation: demoFadeIn 0.5s ease 0.15s both;
}
.demo-success-card {
  animation: demoFadeIn 0.5s ease 0.25s both;
}

/* Stepper */
.demo-stepper ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.demo-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.demo-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid #e5e7eb;
  color: #9ca3af;
  background: #fff;
  transition: all 0.25s ease;
}
.demo-step-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: #9ca3af;
  text-align: center;
  max-width: 90px;
  line-height: 1.2;
}
@media (min-width: 640px) {
  .demo-step-label { font-size: 0.72rem; max-width: 110px; }
}
.demo-step--active .demo-step-num {
  background: #b8f500;
  border-color: #b8f500;
  color: #0a0c10;
}
.demo-step--active .demo-step-label {
  color: #0a0c10;
  font-weight: 600;
}
.demo-step--done .demo-step-num {
  background: #0a0c10;
  border-color: #0a0c10;
  color: #b8f500;
}
.demo-step-line {
  flex: 1;
  max-width: 48px;
  height: 2px;
  background: #e5e7eb;
  margin-bottom: 1.25rem;
}

/* Calendar */
.demo-cal-nav {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.demo-cal-nav:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}
.demo-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.demo-cal-grid > span {
  font-size: 0.65rem;
  font-weight: 600;
  color: #6b7280;
  padding: 0.35rem 0;
}
.demo-cal-days .demo-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #1f2937;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.demo-cal-day:hover:not(:disabled) {
  background: #f3f4f6;
}
.demo-cal-day--empty {
  visibility: hidden;
  pointer-events: none;
}
.demo-cal-day--past,
.demo-cal-day--weekend {
  color: #d1d5db;
  cursor: not-allowed;
}
.demo-cal-day--available {
  color: #1f2937;
}
.demo-cal-day--available::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b8f500;
}
.demo-cal-day {
  position: relative;
}
.demo-cal-day--selected {
  background: #b8f500 !important;
  color: #0a0c10 !important;
  font-weight: 700;
  box-shadow: 0 0 0 2px #b8f500;
}
.demo-cal-day--selected::after {
  display: none;
}

/* Legend */
.demo-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.demo-legend-dot--available { background: #b8f500; }
.demo-legend-dot--unavailable { background: #d1d5db; }
.demo-legend-dot--selected {
  background: transparent;
  border: 2px solid #b8f500;
}

/* Time slots */
.demo-slot-btn {
  padding: 0.55rem 0.5rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.15s ease;
}
.demo-slot-btn:hover {
  border-color: #b8f500;
  background: #f9ffe0;
}
.demo-slot-btn--selected {
  background: #b8f500;
  border-color: #b8f500;
  color: #0a0c10;
}

/* Buttons */
.demo-btn-primary {
  background: #b8f500;
  color: #0a0c10;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.demo-btn-primary:hover:not(:disabled) {
  background: #a4e000;
  transform: translateY(-1px);
}
.demo-btn-secondary {
  background: #fff;
  color: #1f2937;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: background 0.2s;
}
.demo-btn-secondary:hover {
  background: #f9fafb;
}

/* Form fields */
.demo-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
}
.demo-field input,
.demo-field select,
.demo-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #1f2937;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.demo-field input:focus,
.demo-field select:focus,
.demo-field textarea:focus {
  outline: none;
  border-color: #b8f500;
  box-shadow: 0 0 0 3px rgba(183, 245, 0, 0.25);
}
.demo-field-error {
  font-size: 0.72rem;
  color: #dc2626;
  margin-top: 0.25rem;
}
.demo-field--invalid input,
.demo-field--invalid select,
.demo-field--invalid textarea {
  border-color: #fca5a5;
}

/* Spinner */
.demo-spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.demo-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e5e7eb;
  border-top-color: #b8f500;
  border-radius: 50%;
  animation: demoSpin 0.7s linear infinite;
}
.demo-spinner--sm {
  width: 18px;
  height: 18px;
  border-width: 2px;
}
@keyframes demoSpin {
  to { transform: rotate(360deg); }
}

/* Info bar */
.demo-info-bar {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.demo-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
}
.demo-info-icon {
  font-size: 1.25rem;
  line-height: 1;
}
.demo-info-item strong {
  display: block;
  font-size: 0.8rem;
  color: #1f2937;
  margin-bottom: 0.15rem;
}
.demo-info-item p {
  font-size: 0.72rem;
  color: #6b7280;
  margin: 0;
}

/* mobile partner nav */
@media (max-width: 767px) {
  .demo-partner-header-inner {
    padding: 0.55rem 0.85rem;
    gap: 0.5rem;
  }
  .demo-partner-nav {
    display: flex;
    gap: 0.65rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 42vw;
  }
  .demo-partner-nav a {
    font-size: 0.68rem;
    white-space: nowrap;
  }
  .demo-partner-logo-full { height: 2.5rem; max-width: 9.5rem; }
  .demo-partner-cta {
    display: inline-flex !important;
    padding: 0.4rem 0.65rem;
    font-size: 0.65rem;
  }
  .demo-main {
    padding-top: 4.75rem;
  }
}
