/* ============================================
   BOOKING WIDGET V3 - PROFESSIONAL DESIGN
   ============================================ */

/* ============ DESIGN VARIABLES (from widgetd) ============ */
.widget-step-mode-desktop,
.tw-widget-v3,
.widget-step-mode {
  --taxi-bg: #fafafa;
  --taxi-card-bg: #ffffff;
  --taxi-brand: #ffcc00;
  --taxi-brand-dark: #ffaa00;
  --taxi-text-main: #1a1a1a;
  --taxi-text-body: #666666;
  --taxi-text-muted: #888888;
  --taxi-border: #e0e0e0;
  --taxi-border-light: #e8e8e8;
  --taxi-radius-lg: 24px;
  --taxi-radius-pill: 999px;
  --taxi-shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.09);
  --taxi-shadow-strong: 0 24px 60px rgba(0, 0, 0, 0.16);
  --taxi-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Backwards compatibility */
  --primary-bg: #ffffff;
  --secondary-bg: #f9f9f9;
  --tertiary-bg: #f5f5f5;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-tertiary: #888888;
  --border-color: #e0e0e0;
  --accent-yellow: #ffcc00;
  --accent-yellow-dark: #ffaa00;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ============ CHECKMARK ANIMATION ============ */

@keyframes drawCircle {
  from {
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
  }
  to {
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
  }
}

@keyframes drawCheckmark {
  from {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    opacity: 0;
  }
  to {
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.checkmark-animation {
  filter: drop-shadow(0 2px 8px rgba(37, 211, 102, 0.2));
}

.checkmark-circle {
  animation: drawCircle 0.6s ease-in-out forwards;
}

.checkmark-check {
  animation: drawCheckmark 0.5s ease-in-out 0.5s forwards;
}

/* ============ ANIMATIONS ============ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   DESKTOP MODE - WIDGET-STEP-MODE-DESKTOP
   ============================================ */

/* Ambient Gradients - Background */
.widget-step-mode-desktop-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 400px;
  z-index: 10;
  pointer-events: auto;
}

.widget-step-mode-desktop-wrapper::before,
.widget-step-mode-desktop-wrapper::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(255, 204, 0, 0.15),
    transparent 65%
  );
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.widget-step-mode-desktop-wrapper::before {
  width: 400px;
  height: 400px;
  top: -20%;
  left: -20%;
  transform: none;
}

.widget-step-mode-desktop-wrapper::after {
  width: 350px;
  height: 350px;
  bottom: -30%;
  right: -30%;
  top: auto;
  left: auto;
  transform: none;
}

/* Base: Desktop widget always visible */
.widget-step-mode-desktop {
  display: block;
  background: var(--taxi-card-bg);
  border-radius: var(--taxi-radius-lg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04), var(--taxi-shadow-soft);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  overflow: visible;
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

/* Base: All desktop steps visible by default */
.desktop-step-section {
  display: block;
}

/* Widget Title and Icons Row - Same Line */
.widget-title-icons-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px 24px;
  gap: 20px;
}

/* Widget Title Section */
.widget-title-section {
  flex: 1;
}

.widget-title-section h3 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: var(--taxi-text-main);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Vehicle Section - Icons + Capacity Text */
.vehicle-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* Vehicle Selector Icons */
.vehicle-selector {
  display: flex;
  gap: 12px;
  padding: 4px;
  border-radius: 16px;
  background: #f3f3f3;
  border: 1px solid var(--taxi-border-light);
  align-items: center;
  justify-content: center;
}

.vehicle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: all 200ms var(--taxi-ease);
  font-size: 0;
  line-height: 0;
}

.vehicle-icon:hover:not(.active) {
  background: rgba(255, 204, 0, 0.1);
}

.vehicle-icon.active {
  background: var(--taxi-brand);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16),
    0 0 0 2px rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.vehicle-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.vehicle-icon .icon-inactive {
  display: block !important;
}

.vehicle-icon .icon-active {
  display: none !important;
}

.vehicle-icon.active .icon-inactive {
  display: none !important;
}

.vehicle-icon.active .icon-active {
  display: block !important;
}

/* Capacity Info - Below Icons */
.capacity-info {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--taxi-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.capacity-info span {
  display: inline-block;
}

/* Desktop Header - Step Indicators */
.desktop-step-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 28px 16px;
  margin-bottom: 0;
  position: relative;
}

/* Step Indicator Container */
.desktop-step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 12px;
}

/* Stepper Progress Line (zwischen den Steps) */
.desktop-step-indicator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--taxi-border-light);
  z-index: 0;
  transform: translateY(-50%);
}

/* Step Circle */
.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f5f5;
  border: 1px solid var(--taxi-border);
  color: var(--taxi-text-muted);
  font-weight: 600;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 180ms var(--taxi-ease);
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  margin: 0 6px;
}

/* Active Step */
.step-circle.active {
  background: var(--taxi-brand);
  border-color: #f4c200;
  color: #000;
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.4), 0 10px 20px rgba(0, 0, 0, 0.15);
  font-weight: 600;
}

/* Completed Step - Yellow */
.step-circle.completed {
  background: var(--taxi-brand);
  border-color: #f4c200;
  color: #000;
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* Desktop Content */
.desktop-step-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.desktop-step-section {
  display: block;
  padding: 24px 28px 28px 28px;
  overflow: visible !important;
  position: relative;
}

.desktop-step-section.hidden {
  display: none !important;
}

.desktop-step-section h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: #444444;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Address Input Groups */
.desktop-address-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  overflow: visible;
}

.desktop-address-input-group:first-of-type {
  position: relative;
  z-index: 100;
}

.desktop-address-input-group:last-child {
  position: relative;
  z-index: 0;
  margin-bottom: 0;
}

.desktop-address-input-group label {
  font-size: 13px;
  font-weight: 600;
  color: #444444;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.desktop-address-input-group:first-of-type .desktop-address-wrapper {
  position: relative;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.desktop-address-input-group:last-of-type .desktop-address-wrapper {
  position: relative;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.desktop-address-input {
  width: 100%;
  padding: 0 12px 0 40px;
  font-size: 14px;
  min-height: 48px;
  border: 1px solid var(--taxi-border);
  border-radius: 14px;
  background: #f5f5f5;
  color: var(--taxi-text-main);
  transition: all 160ms var(--taxi-ease);
  font-family: inherit;
  box-sizing: border-box;
  position: relative;
  padding-left: 40px;
}

.desktop-address-input:hover:not(:focus) {
  border-color: var(--taxi-border);
  background: #f8f8f8;
}

.desktop-address-input:focus {
  outline: none;
  border-color: var(--taxi-brand);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 204, 0, 0.6),
    0 0 0 4px rgba(255, 204, 0, 0.22), 0 12px 28px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

.desktop-address-input::placeholder {
  color: #aaaaaa;
}

/* Mobile Suggestions Container */
#step1Suggestions,
#step2Suggestions {
  max-height: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--taxi-border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 100;
  margin-top: -1px;
  transition: max-height 200ms ease-out, opacity 200ms ease-out;
  opacity: 0;
  pointer-events: none;
}

#step1Suggestions.active,
#step2Suggestions.active {
  max-height: 280px;
  opacity: 1;
  pointer-events: auto;
}

.address-suggestion-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--taxi-border-light);
  cursor: pointer;
  font-size: 14px;
  color: var(--taxi-text-main);
  transition: background 160ms var(--taxi-ease);
}

.address-suggestion-item:last-child {
  border-bottom: none;
}

.address-suggestion-item:hover {
  background: #f9f9f9;
}

.address-suggestion-item:focus {
  outline: 2px solid var(--taxi-brand);
  outline-offset: -1px;
}

/* Desktop Suggestions */
.desktop-suggestions {
  max-height: 0;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  background: #ffffff;
  border: 1px solid var(--taxi-brand);
  border-top: none;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.8);
  z-index: 9999;
  margin-top: -1px;
  transition: max-height 150ms ease-out, opacity 150ms ease-out;
  opacity: 0;
  pointer-events: none;
  /* Transform-based positioning for better scroll handling */
  will-change: transform;
}

.desktop-suggestions.open {
  max-height: 260px;
  opacity: 1;
  pointer-events: auto;
}

/* Override z-index for specific suggestion containers - both equally high */
#desktopStep1FromSuggestions {
  z-index: 9999 !important;
}

#desktopStep1ToSuggestions {
  z-index: 9999 !important;
}

/* Loading Animation */
.desktop-suggestion-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: var(--taxi-text-secondary);
  font-size: 13px;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--taxi-border-light);
  border-top-color: var(--taxi-brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.desktop-suggestion-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--taxi-border-light);
  cursor: pointer;
  font-size: 13px;
  color: var(--taxi-text-main);
  transition: background 160ms var(--taxi-ease);
}

.desktop-suggestion-item:last-child {
  border-bottom: none;
}

.desktop-suggestion-item:hover {
  background: #f9f9f9;
}

/* Desktop Form Groups */
.desktop-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.desktop-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.desktop-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #444444;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.desktop-form-group input[type="text"],
.desktop-form-group input[type="tel"],
.desktop-form-group input[type="email"],
.desktop-form-group input[type="date"],
.desktop-form-group input[type="time"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  min-height: 48px;
  border: 1px solid var(--taxi-border);
  border-radius: 14px;
  background: #f5f5f5;
  color: var(--taxi-text-main);
  transition: all 160ms var(--taxi-ease);
  font-family: inherit;
  box-sizing: border-box;
}

.desktop-form-group input:hover:not(:focus) {
  border-color: #d0d0d0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.desktop-form-group input:focus {
  outline: none;
  border-color: var(--accent-yellow);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 214, 10, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05);
}

.desktop-form-group input::placeholder {
  color: #999;
}

/* Privacy Checkbox */
.desktop-form-group input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  cursor: pointer;
}

.desktop-form-group label {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Error Messages */
.desktop-input-error {
  font-size: 0.8rem;
  color: #d32f2f;
  display: none;
}

.desktop-input-error.active {
  display: block;
}

/* Summary Card */
.desktop-summary-card {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  display: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.desktop-summary-card.active {
  display: flex;
}

/* Summary Sections (Cards) */
.desktop-summary-section {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.desktop-summary-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  padding: 0;
}

/* Route Card Special Layout */
.desktop-summary-row-card {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.desktop-summary-location {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.desktop-summary-arrow {
  color: var(--taxi-brand);
  font-weight: bold;
  font-size: 1.2rem;
}

.desktop-summary-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
  font-size: 0.85rem;
}

.desktop-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.9rem;
}

.desktop-summary-row:last-child {
  border-bottom: none;
}

.desktop-summary-label {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.desktop-summary-value {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.desktop-summary-price {
  color: var(--taxi-brand);
  font-size: 1.1rem;
}

/* Step 2 Tabs */
.desktop-step-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--taxi-border-light);
  margin: 0 0 24px 0;
}

.desktop-tab {
  flex: 1;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--taxi-text-body);
  cursor: pointer;
  transition: all 200ms var(--taxi-ease);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: inherit;
}

.desktop-tab:hover {
  color: var(--taxi-text-main);
}

.desktop-tab.active {
  color: var(--taxi-text-main);
  border-bottom-color: var(--taxi-brand);
  font-weight: 600;
}

/* Tab Content */
.desktop-tab-content {
  display: none;
}

.desktop-tab-content.active {
  display: block;
  animation: fadeIn 200ms var(--taxi-ease);
}

/* Desktop Actions */
.desktop-step-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--taxi-border-light);
}

.desktop-btn-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  background: var(--c-primary);
  color: var(--c-primary-contrast, #111);
  cursor: pointer;
  font-family: var(--ff-sans, inherit);
  line-height: 1;
  transition: transform 0.12s ease, box-shadow 0.2s ease,
    background-color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
  box-shadow: var(--shadow-sm);
  min-height: 48px;
}

.desktop-btn-primary:hover:not(:disabled) {
  background: var(--c-primary-700);
  box-shadow: var(--shadow-md);
}

.desktop-btn-primary:active:not(:disabled) {
  background: var(--c-primary-700);
  box-shadow: var(--shadow-md);
  transform: translateY(1px);
}

.desktop-btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 16%, transparent);
}

.desktop-btn-primary:disabled,
.desktop-btn-primary[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  filter: none;
}

/* Step 1 Button: Uses primary button style */
#desktopStep1NextBtn {
  opacity: 1;
}

/* Step 1: Remove border-top from step actions */
#desktopStep1 .desktop-step-actions {
  border-top: none;
  padding-top: 16px;
  margin-top: 16px;
}

.desktop-btn-secondary {
  flex: 0.8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--primary-bg);
  color: var(--text-primary);
  cursor: pointer;
  font-family: var(--ff-sans, inherit);
  line-height: 1;
  transition: transform 0.12s ease, box-shadow 0.2s ease,
    background-color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
  min-height: 48px;
}

.desktop-btn-secondary:hover:not(:disabled) {
  background: var(--secondary-bg);
  border-color: var(--border-color);
}

.desktop-btn-secondary:active:not(:disabled) {
  transform: translateY(1px);
}

.desktop-btn-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 16%, transparent);
}

.desktop-btn-secondary:disabled,
.desktop-btn-secondary[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  filter: none;
}

/* Price Disclaimer */
.desktop-price-disclaimer {
  margin-top: 12px;
  padding: 8px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.desktop-price-disclaimer.hidden {
  display: none !important;
}

/* ===== RESPONSIVE BEHAVIOR ===== */

/* Mobile-first base styles are already defined above */
/* This section only adds responsive overrides */

/* ===== TABLET/MOBILE (max-width: 767px) ===== */
@media (max-width: 767px) {
  /* Widget responsive sizing */
  .widget-step-mode-desktop {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  /* Mobile padding and spacing */
  .desktop-step-section {
    padding: 24px 16px;
    margin-bottom: 0;
  }

  .desktop-step-section:first-of-type {
    padding-top: 24px;
  }

  .desktop-step-section:last-of-type {
    padding-bottom: 24px;
  }

  /* Mobile header */
  .desktop-step-header {
    padding: 12px 16px;
    margin-bottom: 16px;
  }

  .desktop-step-logo {
    height: 28px;
  }

  /* Mobile typography */
  .desktop-step-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    line-height: 1.3;
  }

  /* Mobile form elements */
  .desktop-address-input,
  .desktop-form-group input,
  .desktop-form-group select {
    padding: 11px 12px;
    font-size: 0.95rem;
    border-radius: 8px;
  }

  .desktop-address-input-group {
    margin-bottom: 12px;
  }

  .desktop-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Mobile buttons */
  .desktop-btn-primary,
  .desktop-btn-secondary {
    padding: 0.8rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 999px;
    min-height: 44px; /* Touch-friendly */
  }

  .desktop-step-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
  }

  .desktop-step-actions button {
    flex: 1;
  }

  /* Smaller modals and overlays on mobile */
  .desktop-step-content {
    font-size: 0.95rem;
  }

  /* Modal backdrop not needed on mobile */
  .widget-modal-backdrop {
    display: none !important;
  }

  .widget-title-icons-row {
    padding: 16px 20px;
  }

  .widget-title-section h3 {
    font-size: 24px;
  }

  .vehicle-section {
    gap: 8px;
  }

  .vehicle-selector {
    gap: 8px;
    padding: 4px;
  }

  .vehicle-icon {
    width: 32px;
    height: 32px;
  }

  .vehicle-icon img {
    width: 18px;
    height: 18px;
  }

  .capacity-info {
    font-size: 10px;
  }

  .desktop-step-indicator::before {
    left: 8%;
    right: 8%;
  }
}

/* ===== DESKTOP (min-width: 768px) ===== */
@media (min-width: 768px) {
  /* Desktop widget sizing */
  .widget-step-mode-desktop {
    width: 100%;
    max-width: 500px;
    overflow: visible;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  }

  /* Desktop padding */
  .desktop-step-section {
    padding: 40px 30px;
    display: block;
  }

  .desktop-step-section h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 28px 0;
    line-height: 1.4;
  }

  /* Desktop header */
  .desktop-step-header {
    padding: 16px 30px;
    margin-bottom: 0;
  }

  .desktop-step-logo {
    height: 32px;
  }

  /* Desktop form elements */
  .desktop-address-input,
  .desktop-form-group input,
  .desktop-form-group select {
    padding: 13px 16px;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .desktop-address-input-group {
    margin-bottom: 14px;
  }

  .desktop-form-row {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  /* Desktop buttons */
  .desktop-btn-primary,
  .desktop-btn-secondary {
    padding: 14px 20px;
    font-size: 0.95rem;
    border-radius: 10px;
    min-height: auto;
  }

  .desktop-step-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
  }

  .desktop-step-actions button {
    flex: 1;
  }

  /* Hide modal backdrop on desktop */
  .widget-modal-backdrop {
    display: none !important;
  }
}

/* ============ TAXI-ZENTRALE SCREENS - REMOVED (now using desktopStepAS and desktopStepTZ) ============ */

.loading-spinner {
  display: none !important; /* Old spinner - not used anymore */
}

/* Taxi-Zentrale Screen */
#taxiZentraleScreen {
  padding: 12px;
}

.taxi-zentrale-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: transparent;
  animation: slideUpCard 0.4s ease;
  box-sizing: border-box;
}

.taxi-zentrale-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.taxi-zentrale-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.taxi-zentrale-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

/* Booking Info - Compact */
.taxi-zentrale-booking-info {
  background: #f5f8fb;
  border-left: 3px solid #ffcc00;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.info-row-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 0.85rem;
}

.info-row-compact:not(:last-child) {
  margin-bottom: 4px;
}

.info-label {
  font-weight: 600;
  color: #1a1a1a;
  min-width: 45px;
}

.info-value {
  color: #555;
  text-align: right;
  word-break: break-word;
  flex: 1;
  padding-left: 8px;
}

/* Info Text */
.taxi-zentrale-info-text {
  font-size: 0.85rem;
  color: #666666;
  margin: 12px 0;
  text-align: center;
  line-height: 1.4;
}

/* Buttons */
.taxi-zentrale-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.taxi-zentrale-phone-btn,
.taxi-zentrale-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--ff-sans, inherit);
  line-height: 1;
  transition: transform 0.12s ease, box-shadow 0.2s ease,
    background-color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
  text-decoration: none;
  min-height: 48px;
}

.taxi-zentrale-phone-btn {
  background-color: var(--c-primary);
  color: var(--c-primary-contrast, #111);
  box-shadow: var(--shadow-sm);
}

.phone-icon {
  font-size: 1.1rem;
}

.taxi-zentrale-phone-btn:hover {
  background-color: var(--c-primary-700);
  box-shadow: var(--shadow-md);
}

.taxi-zentrale-phone-btn:active {
  background-color: var(--c-primary-700);
  box-shadow: var(--shadow-md);
  transform: translateY(1px);
}

.taxi-zentrale-phone-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 16%, transparent);
}

.taxi-zentrale-phone-btn:disabled,
.taxi-zentrale-phone-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  filter: none;
}

.taxi-zentrale-home-btn {
  background-color: var(--primary-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.taxi-zentrale-home-btn:hover {
  background-color: var(--secondary-bg);
  border-color: var(--border-color);
}

.taxi-zentrale-home-btn:active {
  transform: translateY(1px);
}

.taxi-zentrale-home-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 16%, transparent);
}

.taxi-zentrale-home-btn:disabled,
.taxi-zentrale-home-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  filter: none;
}

.btn-text {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============ UTILITIES ============ */

.hidden {
  display: none !important;
}

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

/* ============ HOUSENUMBER MODAL ============ */
.housenumber-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.housenumber-modal-overlay.active {
  display: flex;
}

.housenumber-modal {
  background: white;
  border-radius: 12px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.housenumber-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.housenumber-modal-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.housenumber-modal-subtitle strong {
  color: #1a1a1a;
  font-weight: 600;
}

.housenumber-modal-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  color: #1a1a1a;
  background: white;
  box-sizing: border-box;
  margin-bottom: 24px;
}

.housenumber-modal-input:focus {
  outline: none;
  border-color: #ffcc00;
  background: white;
}

.housenumber-modal-input::placeholder {
  color: #999;
}

.housenumber-modal-error {
  font-size: 13px;
  color: #d70015;
  margin: -20px 0 20px 0;
  display: none;
}

.housenumber-modal-error.show {
  display: block;
}

.housenumber-modal-buttons {
  display: flex;
  gap: 12px;
  flex-direction: row-reverse;
}

.housenumber-modal-button {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.housenumber-modal-button-confirm {
  background: #ffcc00;
  color: #1a1a1a;
}

.housenumber-modal-button-confirm:hover:not(:disabled) {
  background: #ffc600;
}

.housenumber-modal-button-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.housenumber-modal-button-cancel {
  background: #f0f0f0;
  color: #1a1a1a;
  border: 1px solid #ddd;
}

.housenumber-modal-button-cancel:hover {
  background: #e8e8e8;
}

/* Success Screen */
.widget-step-mode-desktop-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 400px;
  z-index: 10;
  pointer-events: auto;
}

.widget-step-mode-desktop-wrapper::before,
.widget-step-mode-desktop-wrapper::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(255, 204, 0, 0.15),
    transparent 65%
  );
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.widget-step-mode-desktop-wrapper::before {
  width: 400px;
  height: 400px;
  top: -20%;
  left: -20%;
  transform: none;
}

.widget-step-mode-desktop-wrapper::after {
  width: 350px;
  height: 350px;
  bottom: -30%;
  right: -30%;
  top: auto;
  left: auto;
  transform: none;
}

/* Base: Desktop widget always visible */
.widget-step-mode-desktop {
  display: block;
  background: var(--taxi-card-bg);
  border-radius: var(--taxi-radius-lg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04), var(--taxi-shadow-soft);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  overflow: visible;
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  min-height: auto;
}

.desktop-success-screen {
  display: none !important;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 28px;
  text-align: center;
  background: white;
  border-radius: 12px;
  min-height: auto;
}

.desktop-success-screen[style*="display: block"] {
  display: flex !important;
}

.success-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkmark {
  width: 100%;
  height: 100%;
}

.checkmark-circle {
  stroke: var(--taxi-brand);
  stroke-width: 2;
}

.checkmark-check {
  stroke: var(--taxi-brand);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: checkmark-draw 0.6s ease-in-out forwards;
}

@keyframes checkmark-draw {
  0% {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
  }
  100% {
    stroke-dasharray: 48;
    stroke-dashoffset: 0;
  }
}

.success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.success-message {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

.success-reference {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 16px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.ref-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.ref-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--taxi-brand);
  font-family: "Courier New", monospace;
}

.success-booking-info {
  width: 100%;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-heading {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  padding: 0;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 500;
  color: var(--text-secondary);
}

.info-value {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.success-confirmation {
  width: 100%;
  background: #f0f8ff;
  border: 1px solid #b0d4ff;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.85rem;
  color: #0d47a1;
  line-height: 1.5;
}

.success-confirmation p {
  margin: 0;
}

.success-buttons {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

.success-home-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  background: var(--c-primary);
  color: var(--c-primary-contrast, #111);
  cursor: pointer;
  font-family: var(--ff-sans, inherit);
  line-height: 1;
  transition: transform 0.12s ease, box-shadow 0.2s ease,
    background-color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
  box-shadow: var(--shadow-sm);
  min-height: 48px;
}

.success-home-btn:hover {
  background: var(--c-primary-700);
  box-shadow: var(--shadow-md);
}

.success-home-btn:active {
  background: var(--c-primary-700);
  box-shadow: var(--shadow-md);
  transform: translateY(1px);
}

.success-home-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 16%, transparent);
}

.success-home-btn:disabled,
.success-home-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  filter: none;
}

/* ====================================
   TAXI-ZENTRALE LOADING/TRANSITION SCREEN (CONSOLIDATED)
   ================================== */

/* desktopStepAS uses .loading-container directly (see below) */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.loading-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: transparent;
  gap: 20px;
  animation: fadeIn 0.3s ease;
  box-sizing: border-box;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.loading-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-icon svg {
  width: 100%;
  height: 100%;
}

/* Phone Ring Animation */
.phone-ring {
  animation: phoneFloat 2s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.phone-base {
  animation: phonePulse 1.5s ease-in-out infinite;
}

@keyframes phonePulse {
  0%,
  100% {
    stroke-width: 2;
  }
  50% {
    stroke-width: 3;
  }
}

.phone-handset {
  animation: handsetWave 1.5s ease-in-out infinite;
  transform-origin: 50px 45px;
}

@keyframes handsetWave {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(2deg);
  }
  75% {
    transform: rotate(-2deg);
  }
}

.ring-1 {
  animation: ringExpand1 1.5s ease-out infinite;
}

@keyframes ringExpand1 {
  0% {
    r: 30px;
    opacity: 0.8;
  }
  100% {
    r: 45px;
    opacity: 0;
  }
}

.ring-2 {
  animation: ringExpand2 1.5s ease-out 0.5s infinite;
}

@keyframes ringExpand2 {
  0% {
    r: 30px;
    opacity: 0.6;
  }
  100% {
    r: 45px;
    opacity: 0;
  }
}

.loading-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.loading-message {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
  max-width: 300px;
}

.loading-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-yellow);
  animation: dotBounce 1.4s infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotBounce {
  0%,
  80%,
  100% {
    opacity: 0.5;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.loading-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  font-style: italic;
}

/* ====================================
   TAXI-ZENTRALE SCREEN (CONSOLIDATED)
   ================================== */

/* desktopStepTZ uses .taxi-zentrale-container directly (see below) */

.taxi-zentrale-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: transparent;
  width: 100%;
  animation: slideUpCard 0.4s ease;
  box-sizing: border-box;
}

.taxi-zentrale-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin: 0;
}

.taxi-zentrale-message {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

.taxi-zentrale-booking-info {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 3px solid var(--accent-yellow);
}

.info-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.info-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  flex: 1;
  margin-left: 16px;
}

/* Notice Box */
.taxi-zentrale-notice {
  background: rgba(255, 102, 0, 0.08);
  border: 1px solid rgba(255, 102, 0, 0.2);
  border-radius: 8px;
  padding: 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  border-left: 4px solid #ff6600;
}

.taxi-zentrale-notice strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.taxi-zentrale-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.taxi-zentrale-phone-btn,
.taxi-zentrale-home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
}

.taxi-zentrale-phone-btn {
  background: var(--accent-yellow);
  color: #000;
}

.taxi-zentrale-phone-btn:hover {
  background: var(--accent-yellow-dark);
  transform: translateY(-2px);
}

.taxi-zentrale-home-btn {
  background: var(--secondary-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.taxi-zentrale-home-btn:hover {
  background: var(--tertiary-bg);
  transform: translateY(-2px);
}

/* ====================================
   MOBILE ADJUSTMENTS (CONSOLIDATED)
   ================================== */

@media (max-width: 480px) {
  .loading-container {
    max-width: 100%;
    padding: 30px 16px;
    border-radius: 16px;
  }

  .loading-icon {
    width: 80px;
    height: 80px;
  }

  .loading-title {
    font-size: 1.2rem;
  }

  .loading-message {
    font-size: 0.9rem;
  }

  .loading-dots {
    gap: 6px;
  }

  .dot {
    width: 6px;
    height: 6px;
  }

  .taxi-zentrale-container {
    padding: 16px;
    gap: 20px;
  }

  .taxi-zentrale-title {
    font-size: 1.2rem;
  }

  .taxi-zentrale-message {
    font-size: 0.95rem;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .info-value {
    text-align: left;
    margin-left: 0;
  }

  .taxi-zentrale-phone-btn,
  .taxi-zentrale-home-btn {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}

.logo {
  width: 85px; /* gewünschte Breite */
  height: auto; /* verhindert Verzerrung */
  display: block; /* optional, falls zentriert werden soll */
}
