/*
 * Booking Section Styles — DobryGabinet Integration
 * Modern, accessible, mobile-first design for /umow-wizyte page
 * Date: 2025-11-12
 */

/* ========================================
   Container & Layout
   ======================================== */

.booking.container {
  max-width: 980px;
  margin-inline: auto;
  padding: 24px 16px;
}

/* ========================================
   Header & Typography
   ======================================== */

.booking__head {
  text-align: center;
  margin-bottom: 2rem;
}

.booking__title {
  font-family: 'Quicksand', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  margin: 0 0 0.25rem;
  color: var(--fg, #2c4a5e);
  word-break: keep-all;
  hyphens: none;
}

.booking__lede {
  color: var(--fg-secondary, #5d6b7a);
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  margin: 0 0 1rem;
  max-width: 42rem;
  margin-inline: auto;
}

/* ========================================
   CTA Button
   ======================================== */

.booking__actions {
  margin: 0 0 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  cursor: pointer;
}

.btn--primary {
  background: var(--accent, #f5b841);
  color: white;
}

.btn--primary:hover {
  opacity: 0.9;
}

.btn--primary:focus-visible {
  outline: 2px solid var(--accent-hover, #e6a532);
  outline-offset: 2px;
}

.btn--primary:active {
  transform: translateY(1px);
}

/* Ensure touch targets are at least 44x44px on mobile */
@media (max-width: 768px) {
  .btn {
    min-width: 44px;
    min-height: 44px;
    padding: 1rem 1.25rem;
  }
}

/* ========================================
   iframe Container
   ======================================== */

.booking__frame {
  position: relative;
  border: 1px solid var(--border, #e8e0d5);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface, #ffffff);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.booking__frame iframe {
  display: block;
  width: 100%;
  min-height: 900px; /* Fixed height prevents CLS */
  border: 0;
}

/* Subtle hover effect (only if user prefers motion) */
@media (prefers-reduced-motion: no-preference) {
  .booking__frame {
    transition:
      box-shadow 0.25s ease,
      transform 0.25s ease;
  }

  .booking__frame:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  }
}

/* Mobile: reduce iframe height for better mobile UX */
@media (max-width: 768px) {
  .booking__frame iframe {
    min-height: 700px;
  }
}

/* ========================================
   Privacy Notice
   ======================================== */

.booking__privacy {
  font-size: 0.95rem;
  color: var(--fg-muted, #7b8590);
  margin: 0.75rem 0 0;
  text-align: center;
  line-height: 1.6;
}

.booking__privacy a {
  color: var(--accent, #f5b841);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.booking__privacy a:hover {
  color: var(--accent-hover, #e6a532);
}

.booking__privacy a:focus-visible {
  outline: 2px solid var(--accent, #f5b841);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ========================================
   Accessibility Enhancements
   ======================================== */

/* Ensure all interactive elements have visible focus */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent, #f5b841);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .booking__frame {
    border-width: 2px;
    border-color: currentColor;
  }

  .btn--primary {
    border: 2px solid currentColor;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   Responsive Adjustments
   ======================================== */

/* Small mobile (360px - 480px) */
@media (max-width: 480px) {
  .booking.container {
    padding: 16px 12px;
  }

  .booking__title {
    font-size: 1.5rem;
  }

  .booking__lede {
    font-size: 0.9rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.9rem 1rem;
  }
}

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .booking.container {
    padding: 32px 24px;
  }

  .booking__frame iframe {
    min-height: 850px;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .booking.container {
    padding: 40px 32px;
  }

  .booking__head {
    margin-bottom: 2.5rem;
  }

  .booking__actions {
    margin-bottom: 2rem;
  }

  .booking__frame iframe {
    min-height: 950px;
  }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
  .booking__frame {
    display: none;
  }

  .booking__actions {
    display: none;
  }

  .booking__privacy::after {
    content: ' (https://rejestracja.dobrygabinet.com/testowygabinet-7987)';
    font-size: 0.8rem;
  }
}

/* ========================================
   Visit Detail Cards — Gentle Yellow with Minimal Gradient
   ======================================== */

.visit-detail-card {
  position: relative;
  /* Minimal gradient - very subtle from warm honey to slightly lighter */
  background: linear-gradient(135deg, #fff9e6 0%, #fffcf0 100%);
  border: 2px solid #f5b841; /* Yellow accent border like trust section */
  overflow: hidden;
  transition: all 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Very subtle radial overlay - even gentler */
.visit-detail-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top, rgba(245, 184, 65, 0.08) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 350ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

/* Show overlay on hover */
.visit-detail-card:hover::before {
  opacity: 1;
}

/* Enhance hover with subtle shadow */
.visit-detail-card:hover {
  box-shadow: 0 4px 20px rgba(245, 184, 65, 0.15);
  transform: translateY(-2px);
}

/* Ensure content is above overlay */
.visit-detail-card > * {
  position: relative;
  z-index: 1;
}

/* Accessibility — Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .visit-detail-card,
  .visit-detail-card::before {
    transition: none !important;
  }

  .visit-detail-card:hover {
    transform: none !important;
  }
}
