/**
 * Restaurant de Kolk - Reservation Form
 * OriginUI / COSS Style - Dark Theme with Hero Layout
 * 
 * Color tokens (dark mode):
 * --background: dark bg
 * --foreground: light text
 * --muted-foreground: dimmed text
 * --border/input: border color
 * --ring: focus ring
 * --primary: accent color
 */

:root {
  /* Dark theme colors - Restaurant de Kolk */
  --background: #1d2127;
  --foreground: #fafafa;
  --card: #2a2f38;
  --card-foreground: #fafafa;
  --muted: #343a45;
  --muted-foreground: #a1a1aa;
  --border: #3d4451;
  --input: #3d4451;
  --ring: #d4d4d8;
  --primary: #c7b299;
  --primary-foreground: #1d2127;
  --destructive: #ef4444;
  --radius: 0.5rem;
}

/* ============================================
   Hero Layout
   ============================================ */
.kolk-reserveren-hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  font-family: ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--foreground);
}

.kolk-reserveren-hero *,
.kolk-reserveren-hero *::before,
.kolk-reserveren-hero *::after {
  box-sizing: border-box;
  border-color: var(--border);
}

/* Hero Background Image */
.reserveren-hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/wp-content/themes/kolk/images/2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(75%) contrast(0.7) brightness(0.5);
  z-index: 0;
}

/* Radial Overlay */
.reserveren-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
}

/* Pill Navigation */
.reserveren-nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(26, 30, 33, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(199, 178, 153, 0.25);
  border-radius: 9999px;
  box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.45);
}

.reserveren-nav-logo {
  display: flex;
  align-items: center;
}

.reserveren-nav-logo img {
  height: 2rem;
  width: auto;
  filter: brightness(0) invert(1);
}

.reserveren-nav-logo span {
  font-weight: 600;
  color: white;
  font-size: 0.875rem;
}

.reserveren-nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.reserveren-nav-links a {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-radius: 9999px;
  transition: all 0.15s;
}

.reserveren-nav-links a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* Main Content Area */
.reserveren-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0rem;
}

.text-center h2 {
  margin-top:10px;
}

/* Mobile nav adjustments */
@media (max-width: 640px) {
  .reserveren-nav {
    top: 1rem;
    padding: 0.5rem 1rem;
    gap: 1rem;
  }
  
  .reserveren-nav-logo img {
    height: 1.5rem;
  }
  
  .reserveren-nav-links {
    gap: 0.25rem;
    padding-left: 0.75rem;
  }
  
  .reserveren-nav-links a {
    padding: 0.375rem 0.5rem;
    font-size: 0.625rem;
  }
  
  .reserveren-content {
    padding-top: 4rem;
  }
}

/* ============================================
   Base (legacy support)
   ============================================ */
.kolk-reserveren {
  font-family: ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* background-color: var(--background); */
  color: var(--foreground);
}

.kolk-reserveren *,
.kolk-reserveren *::before,
.kolk-reserveren *::after {
  box-sizing: border-box;
  border-color: var(--border);
}

/* ============================================
   Card (OriginUI style)
   ============================================ */
.kolk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(199, 178, 153, 0.2);
  background-color: rgba(42, 47, 56, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-clip: padding-box;
  padding: 1.5rem;
  color: var(--card-foreground);
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.5);
  min-height: 560px; /* Voorkom verspringen bij wisselende content */
}

/* Subtle inner glow effect like OriginUI */
.kolk-card::before {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: calc(1rem - 1px);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

/* ============================================
   Inputs (OriginUI style)
   ============================================ */
.kolk-input {
  display: flex;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--input);
  background-color: transparent;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--foreground);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  transition: box-shadow 0.15s, border-color 0.15s;
}

.kolk-input::placeholder {
  color: var(--muted-foreground);
}

.kolk-input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(212, 212, 216, 0.2);
}

.kolk-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.kolk-input.error {
  border-color: var(--destructive);
}

.kolk-input.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Select */
.kolk-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Textarea */
.kolk-textarea {
  min-height: 80px;
  resize: vertical;
}

/* Checkbox (OriginUI style) */
.kolk-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--input);
  border-radius: 0.25rem;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.kolk-checkbox:checked {
  background-color: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%2309090b' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

.kolk-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 212, 216, 0.2);
}

.kolk-checkbox.error {
  border-color: var(--destructive);
}

.kolk-choice {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  position: relative;
}

.kolk-choice-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.kolk-choice-copy {
  min-width: 0;
}

/* ============================================
   Buttons (OriginUI style)
   ============================================ */
.kolk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  padding: 0.5rem 1rem;
  transition: all 0.15s;
  cursor: pointer;
  border: 1px solid transparent;
  outline: none;
}

.kolk-btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.kolk-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 212, 216, 0.3);
}

/* Primary button */
.kolk-btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.kolk-btn-primary:hover:not(:disabled) {
  opacity: 0.9;
}

/* Outline button */
.kolk-btn-outline {
  border-color: var(--input);
  background-color: var(--background);
  color: var(--foreground);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.kolk-btn-outline:hover:not(:disabled) {
  background-color: var(--muted);
}

/* Ghost button */
.kolk-btn-ghost {
  color: var(--muted-foreground);
  background: transparent;
}

.kolk-btn-ghost:hover:not(:disabled) {
  background-color: var(--muted);
  color: var(--foreground);
}

/* ============================================
   Selection Summary (Breadcrumb style)
   ============================================ */
.selection-summary {
  min-height: 2rem;
}

.summary-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
  background-color: rgba(42, 47, 56, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(199, 178, 153, 0.2);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s;
}

/* Skeleton/placeholder state */
.summary-item.is-skeleton {
  color: var(--muted-foreground);
  opacity: 0.5;
  pointer-events: none;
}

.summary-item.is-skeleton svg {
  color: var(--muted-foreground);
}

.summary-item.is-skeleton .summary-lofd-badge {
  background-color: rgba(52, 58, 69, 0.8);
  color: var(--muted-foreground);
}

/* Filled state */
.summary-item.is-filled {
  opacity: 1;
  pointer-events: auto;
}

.summary-item.is-filled:hover {
  background-color: rgba(52, 58, 69, 0.9);
  border-color: var(--primary);
}

.summary-item svg {
  color: var(--primary);
}

.summary-lofd-badge {
  font-size: 0.75rem;
  padding: 0.125rem 0.375rem;
  background-color: rgba(199, 178, 153, 0.15);
  color: var(--primary);
  border-radius: 9999px;
}

.summary-arrow {
  color: var(--muted-foreground);
  transition: opacity 0.15s;
}

.summary-arrow.is-skeleton {
  opacity: 0.3;
}

/* ============================================
   Time Sections (Lunch/Diner) - Collapsible
   ============================================ */
.time-section {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.time-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  padding: 0.75rem 1rem;
  background-color: var(--muted);
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}

.time-section-header:hover {
  background-color: rgba(52, 58, 69, 0.8);
  color: var(--foreground);
}

.time-section.is-expanded .time-section-header {
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}

.time-section-header .section-icon {
  color: var(--primary);
}

.time-section-header .chevron-icon {
  color: var(--muted-foreground);
  transition: transform 0.2s ease;
}

.time-section.is-expanded .chevron-icon {
  transform: rotate(180deg);
}

.time-section-content {
  padding: 1rem;
  background-color: var(--background);
}

.time-section-content.hidden {
  display: none;
}

/* ============================================
   Lunch/Diner Selection Buttons
   ============================================ */
.lofd-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex: 1;
  width: 100%;
  max-width: none;
  padding: 1rem 1.5rem;
  background-color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
  transform: translateY(12px);
  animation: lofd-enter 0.45s ease forwards;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lofd-btn:nth-child(2) {
  animation-delay: 0.1s;
}

@keyframes lofd-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lofd-btn-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #111;
}

.lofd-btn-time {
  font-size: 0.75rem;
  font-weight: 400;
  color: #666;
}

.lofd-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
}

.lofd-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--primary) 35%, transparent);
}

.lofd-btn.active .lofd-btn-label {
  color: var(--primary-foreground);
}

.lofd-btn.active .lofd-btn-time {
  color: color-mix(in srgb, var(--primary-foreground) 80%, transparent);
}

@media (min-width: 640px) {
  .lofd-btn {
    max-width: 12rem;
  }
}

/* ============================================
   Person Selector Buttons
   ============================================ */
.persons-selector {
  max-width: 320px;
}

.person-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  background-color: var(--background);
  border: 1px solid var(--input);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}

.person-btn:hover {
  background-color: var(--muted);
  border-color: var(--primary);
}

.person-btn.active,
.person-btn[data-active="true"] {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.person-btn-more {
  width: auto;
  padding: 0 1rem;
  font-size: 0.875rem;
}

.persons-selector-wrapper {
  max-width: 320px;
  min-height: 5rem;
}

.custom-persons-input {
  animation: fadeIn 0.2s ease-out;
}

.custom-persons-input .kolk-input {
  font-size: 1.25rem;
  font-weight: 600;
  min-width: 120px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Time Slot Buttons
   ============================================ */
.time-slot-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  background-color: var(--background);
  border: 1px solid var(--input);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.time-slot-btn:hover:not(:disabled):not(.active) {
  background-color: var(--muted);
}

.time-slot-btn:focus-visible {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(212, 212, 216, 0.2);
}

.time-slot-btn.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.time-slot-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Period Toggle (Lunch/Diner) */
.period-toggle {
  display: inline-flex;
  border-radius: var(--radius);
  border: 1px solid var(--input);
  padding: 0.25rem;
  gap: 0.25rem;
  background-color: var(--muted);
}

.period-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: transparent;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: all 0.15s;
}

.period-toggle-btn:hover:not([data-active="true"]) {
  color: var(--foreground);
}

.period-toggle-btn[data-active="true"] {
  background-color: var(--background);
  color: var(--foreground);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

/* ============================================
   Step Tabs
   ============================================ */
.step-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  background-color: var(--muted);
  border-radius: 9999px;
}

.step-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: transparent;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s;
}

.step-tab:hover:not(:disabled):not([data-active="true"]) {
  color: var(--foreground);
}

.step-tab[data-active="true"] {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.step-tab:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   Labels
   ============================================ */
.kolk-label {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  color: var(--foreground);
}

.kolk-label-muted {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.field-error-msg {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kolk-field,
.kolk-choice {
  position: relative;
}

.kolk-field > .field-error-msg,
.kolk-choice > .field-error-msg {
  margin-top: 0;
}

.field-error-popover {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  max-width: min(18rem, calc(100vw - 1.5rem));
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 0.625rem;
  background: rgba(32, 17, 17, 0.96);
  color: #fecaca;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 14px 32px rgba(9, 9, 11, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.25rem);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.field-error-popover::after {
  content: "";
  position: absolute;
  left: 1rem;
  width: 0.625rem;
  height: 0.625rem;
  background: inherit;
  border-right: inherit;
  border-bottom: inherit;
  transform: rotate(45deg);
}

.field-error-popover.is-visible {
  opacity: 1;
}

.field-error-popover[data-placement="top"] {
  transform: translateY(-0.25rem);
}

.field-error-popover[data-placement="top"].is-visible {
  transform: translateY(0);
}

.field-error-popover[data-placement="top"]::after {
  bottom: -0.375rem;
}

.field-error-popover[data-placement="bottom"] {
  transform: translateY(0.25rem);
}

.field-error-popover[data-placement="bottom"].is-visible {
  transform: translateY(0);
}

.field-error-popover[data-placement="bottom"]::after {
  top: -0.375rem;
}

/* ============================================
   Datepicker Overrides (OriginUI style)
   Note: !important is required throughout this section because
   vanillajs-datepicker uses inline styles and high-specificity selectors.
   This is unavoidable when customizing third-party datepicker libraries.
   ============================================ */
.datepicker-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.datepicker {
  background-color: rgba(42, 47, 56, 0.9) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-radius: 0.75rem !important;
  font-family: inherit !important;
  width: 100% !important;
}

.datepicker-grid {
  width: 100% !important;
}

.datepicker-controls {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 1px solid var(--border) !important;
}

.datepicker-controls .button {
  background: transparent !important;
  border: none !important;
  color: var(--muted-foreground) !important;
  width: 2rem !important;
  height: 2rem !important;
  padding: 0 !important;
  border-radius: var(--radius) !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1rem !important;
}

.datepicker-controls .button:hover {
  background-color: var(--muted) !important;
  color: var(--foreground) !important;
}

.datepicker-controls .view-switch {
  font-weight: 600 !important;
  color: var(--foreground) !important;
  font-size: 0.9375rem !important;
  letter-spacing: -0.01em !important;
}

.datepicker .days-of-week {
  margin-bottom: 0.25rem !important;
}

.datepicker .dow {
  color: var(--muted-foreground) !important;
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 0.5rem 0 !important;
  width: calc(100% / 7) !important;
}

.datepicker-cell {
  color: var(--foreground) !important;
  border-radius: var(--radius) !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  width: calc(100% / 7) !important;
  aspect-ratio: 1 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
}

.datepicker-cell:hover:not(.disabled):not(.selected):not(.prev):not(.next) {
  background-color: var(--muted) !important;
}

.datepicker-cell.prev,
.datepicker-cell.next {
  color: var(--muted-foreground) !important;
  opacity: 0.4 !important;
}

.datepicker-cell.disabled {
  color: var(--muted-foreground) !important;
  opacity: 0.25 !important;
  cursor: not-allowed !important;
  text-decoration: line-through !important;
}

.datepicker-cell.today:not(.selected) {
  background-color: transparent !important;
  box-shadow: inset 0 0 0 1px var(--primary) !important;
  color: var(--primary) !important;
  font-weight: 600 !important;
}

.datepicker-cell.selected,
.datepicker-cell.selected:hover {
  background-color: var(--primary) !important;
  color: var(--primary-foreground) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.datepicker-cell.focused:not(.selected) {
  background-color: var(--muted) !important;
}

/* Hide footer / today button */
.datepicker-footer {
  display: none !important;
}

/* ============================================
   Modal (OriginUI style)
   ============================================ */
.kolk-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.kolk-modal.show {
  opacity: 1;
  visibility: visible;
}

.kolk-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.kolk-modal-content {
  position: relative;
  width: 100%;
  max-width: 28rem;
  background-color: rgba(29, 33, 39, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(199, 178, 153, 0.2);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
  transform: scale(0.95);
  transition: transform 0.2s;
}

.kolk-modal.show .kolk-modal-content {
  transform: scale(1);
}

.kolk-modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.kolk-modal-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ============================================
   Status Badges
   ============================================ */
.status-confirmed {
  background-color: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.status-awaiting {
  background-color: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

/* ============================================
   Toast
   ============================================ */
.kolk-toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  animation: slideIn 0.3s ease;
}

.kolk-toast.hiding {
  animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}

/* ============================================
   Alerts / Messages
   ============================================ */
.kolk-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.kolk-alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.kolk-alert-success {
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.kolk-alert-info {
  background-color: var(--muted);
  border: 1px solid var(--border);
  color: var(--foreground);
}

/* ============================================
   Badge
   ============================================ */
.kolk-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  background-color: rgba(199, 178, 153, 0.15);
  color: var(--primary);
}

/* ============================================
   Loading Spinner
   ============================================ */
.kolk-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--muted);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ============================================
   Step Cards
   ============================================ */
.step-card {
  animation: fadeIn 0.3s ease;
}

.step-card.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Summary / Result Tables
   ============================================ */
.kolk-table tr {
  border-bottom: 1px solid var(--border);
}

.kolk-table tr:last-child {
  border-bottom: none;
}

.kolk-table td {
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.kolk-table td:first-child {
  color: var(--muted-foreground);
  padding-right: 1rem;
}

/* ============================================
   Utilities
   ============================================ */
.text-muted {
  color: var(--muted-foreground);
}

.text-primary {
  color: var(--primary);
}

.text-destructive {
  color: var(--destructive);
}

.text-success {
  color: #22c55e;
}

/* Spacing pattern from OriginUI */
.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-5 > * + * {
  margin-top: 1.25rem;
}

/* Field pattern: *:not-first:mt-2 */
.kolk-field > *:not(:first-child) {
  margin-top: 0.5rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 640px) {
  .kolk-card {
    padding: 1rem;
  }
  
  .datepicker {
    width: 100% !important;
    max-width: 320px;
  }
}
