/* ══════════════════════════════════════
   Booking Widget (scoped under .booking-widget)
   Extracted from booking.einfachstarten.jetzt
   ══════════════════════════════════════ */

/* ── Layout ── */
.booking-widget {
  max-width: 620px;
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

/* ── Step Indicator ── */
.booking-widget .step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}

.booking-widget .step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--gray-light, #e2e8f0);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.booking-widget .step-dot.active {
  width: 12px;
  height: 12px;
  border: none;
  background: var(--gradient-primary, linear-gradient(135deg, #005b8f 0%, #0084CA 100%));
  box-shadow: 0 0 0 4px rgba(0, 91, 143, 0.15);
}

.booking-widget .step-dot.done {
  border: none;
  background: var(--accent-cyan, #05F2DB);
}

.booking-widget .step-connector {
  width: 2.5rem;
  height: 2px;
  background: var(--gray-light, #e2e8f0);
  transition: background 0.3s ease;
}

.booking-widget .step-connector.done {
  background: var(--accent-cyan, #05F2DB);
}

/* ── Step Container & Transitions ── */
.booking-widget .bw-step {
  display: none;
  animation: bwFadeSlideIn 400ms ease both;
}

.booking-widget .bw-step.active {
  display: block;
}

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

/* ── Back Button ── */
.booking-widget .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: none;
  color: var(--gray, #64748b);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.booking-widget .back-btn:hover {
  color: var(--brand-blue, #005b8f);
}

.booking-widget .back-btn svg {
  width: 18px;
  height: 18px;
}

/* ── Section Titles ── */
.booking-widget .step-title {
  font-size: 1.625rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--dark, #1a1a2e);
}

.booking-widget .step-subtitle {
  font-size: 0.95rem;
  color: var(--gray, #64748b);
  margin-bottom: 1.5rem;
}

/* ── Step 1: Meeting Type Cards ── */
.booking-widget .type-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.booking-widget .type-card {
  position: relative;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--card-border, rgba(100, 116, 139, 0.12));
  border-radius: var(--border-radius-lg, 1.5rem);
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: var(--card-shadow, 0 10px 25px rgba(15, 23, 42, 0.08));
  padding: 0;
}

.booking-widget .type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary, linear-gradient(135deg, #005b8f 0%, #0084CA 100%));
  border-radius: var(--border-radius-lg, 1.5rem) var(--border-radius-lg, 1.5rem) 0 0;
}

.booking-widget .type-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan, #05F2DB);
  box-shadow: var(--card-hover-shadow, 0 15px 35px rgba(15, 23, 42, 0.12));
}

.booking-widget .type-card-body {
  padding: 1.75rem 2rem 1.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.booking-widget .type-card-content {
  flex: 1;
  min-width: 0;
}

.booking-widget .type-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark, #1a1a2e);
  margin-bottom: 0.375rem;
}

.booking-widget .type-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-blue, #005b8f);
  background: rgba(0, 91, 143, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  margin-bottom: 0.5rem;
}

.booking-widget .type-card-badge svg {
  width: 14px;
  height: 14px;
}

.booking-widget .type-card-desc {
  font-size: 0.9rem;
  color: var(--gray, #64748b);
  line-height: 1.5;
}

.booking-widget .type-card-arrow {
  display: flex;
  align-items: center;
  color: var(--gray-light, #e2e8f0);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.booking-widget .type-card:hover .type-card-arrow {
  color: var(--brand-blue, #005b8f);
  transform: translateX(3px);
}

.booking-widget .type-card-arrow svg {
  width: 22px;
  height: 22px;
}

/* ── Step 2: Calendar ── */
.booking-widget .calendar {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--card-border, rgba(100, 116, 139, 0.12));
  border-radius: var(--border-radius-lg, 1.5rem);
  padding: 1.5rem;
  box-shadow: var(--card-shadow, 0 10px 25px rgba(15, 23, 42, 0.08));
}

.booking-widget .cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.booking-widget .cal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark, #1a1a2e);
}

.booking-widget .cal-nav {
  display: flex;
  gap: 0.5rem;
}

.booking-widget .cal-nav-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light, #f8fafc);
  border: 1px solid var(--gray-light, #e2e8f0);
  border-radius: var(--border-radius, 1rem);
  cursor: pointer;
  color: var(--dark, #1a1a2e);
  transition: all 0.3s ease;
}

.booking-widget .cal-nav-btn:hover:not(:disabled) {
  background: var(--white, #ffffff);
  border-color: var(--brand-blue, #005b8f);
  color: var(--brand-blue, #005b8f);
  box-shadow: var(--shadow-sm, 0 1px 2px 0 rgb(0 0 0 / 0.05));
}

.booking-widget .cal-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.booking-widget .cal-nav-btn svg {
  width: 18px;
  height: 18px;
}

.booking-widget .cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 0.5rem;
}

.booking-widget .cal-weekday {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 0;
}

.booking-widget .cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.booking-widget .cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: none;
  background: none;
  color: var(--gray, #64748b);
  cursor: default;
  transition: all 0.3s ease;
  position: relative;
}

.booking-widget .cal-day.empty {
  visibility: hidden;
}

.booking-widget .cal-day.available {
  color: var(--white, #ffffff);
  background: var(--brand-blue, #005b8f);
  cursor: pointer;
  font-weight: 600;
}

.booking-widget .cal-day.available:hover {
  background: var(--brand-blue-dark, #00407a);
  transform: scale(1.1);
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1));
}

.booking-widget .cal-day.today:not(.available) {
  box-shadow: inset 0 0 0 2px var(--accent-cyan, #05F2DB);
  color: var(--gray, #64748b);
}

.booking-widget .cal-day.today.available {
  box-shadow: inset 0 0 0 2px var(--accent-cyan, #05F2DB);
}

.booking-widget .cal-day.past {
  color: var(--gray, #64748b);
  opacity: 0.35;
}

/* ── Step 3: Time Slots ── */
.booking-widget .selected-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(0, 91, 143, 0.08);
  color: var(--brand-blue, #005b8f);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.25rem;
}

.booking-widget .slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 0.625rem;
  margin-bottom: 1rem;
}

@media (min-width: 480px) {
  .booking-widget .slots-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.booking-widget .slot-btn {
  padding: 0.75rem 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-blue, #005b8f);
  background: var(--white, #ffffff);
  border: 2px solid var(--brand-blue, #005b8f);
  border-radius: var(--border-radius, 1rem);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.booking-widget .slot-btn:hover {
  background: var(--gradient-primary, linear-gradient(135deg, #005b8f 0%, #0084CA 100%));
  color: var(--white, #ffffff);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1));
}

.booking-widget .slot-btn.selected {
  background: var(--gradient-primary, linear-gradient(135deg, #005b8f 0%, #0084CA 100%));
  color: var(--white, #ffffff);
  border-color: transparent;
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1));
}

.booking-widget .tz-hint {
  font-size: 0.8rem;
  color: var(--gray, #64748b);
  text-align: center;
  margin-top: 0.25rem;
}

.booking-widget .no-slots {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--gray, #64748b);
}

.booking-widget .no-slots-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--light, #f8fafc);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.booking-widget .no-slots-icon svg {
  width: 24px;
  height: 24px;
  color: var(--gray, #64748b);
}

/* ── Step 4: Form ── */
.booking-widget .summary-box {
  background: var(--light, #f8fafc);
  border: 1px solid var(--card-border, rgba(100, 116, 139, 0.12));
  border-radius: var(--border-radius-lg, 1.5rem);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.booking-widget .summary-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.3125rem 0;
  font-size: 0.9rem;
}

.booking-widget .summary-label {
  color: var(--gray, #64748b);
  font-weight: 500;
  min-width: 3.5rem;
}

.booking-widget .summary-value {
  color: var(--dark, #1a1a2e);
  font-weight: 600;
}

.booking-widget .form-group {
  margin-bottom: 1.125rem;
}

.booking-widget .form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray, #64748b);
  margin-bottom: 0.375rem;
}

.booking-widget .form-label .optional {
  font-weight: 400;
  color: var(--gray, #64748b);
  opacity: 0.7;
}

.booking-widget .form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--dark, #1a1a2e);
  background: var(--white, #ffffff);
  border: 1px solid var(--gray-light, #e2e8f0);
  border-radius: var(--border-radius, 1rem);
  transition: all 0.3s ease;
  outline: none;
}

.booking-widget .form-input::placeholder {
  color: var(--gray, #64748b);
  opacity: 0.5;
}

.booking-widget .form-input:focus {
  border-color: var(--brand-blue, #005b8f);
  box-shadow: 0 0 0 3px rgba(0, 91, 143, 0.1);
}

.booking-widget .form-input.error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.booking-widget .form-error {
  font-size: 0.8rem;
  color: #e53e3e;
  margin-top: 0.25rem;
  display: none;
}

.booking-widget .form-error.visible {
  display: block;
}

.booking-widget textarea.form-input {
  resize: vertical;
  min-height: 5rem;
}

.booking-widget .submit-btn {
  width: 100%;
  padding: 0.875rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white, #ffffff);
  background: var(--gradient-primary, linear-gradient(135deg, #005b8f 0%, #0084CA 100%));
  border: none;
  border-radius: var(--border-radius, 1rem);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
}

.booking-widget .submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1));
}

.booking-widget .submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.booking-widget .submit-btn .spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid transparent;
  border-top-color: var(--white, #ffffff);
  border-radius: 50%;
  animation: bwSpin 600ms linear infinite;
  margin: 0 auto;
}

.booking-widget .submit-btn.loading .btn-text {
  visibility: hidden;
}

.booking-widget .submit-btn.loading .spinner {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes bwSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── Step 5: Confirmation ── */
.booking-widget .confirmation {
  text-align: center;
  padding: 1.25rem 0;
}

.booking-widget .checkmark-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-secondary, linear-gradient(135deg, #05F2DB 0%, #005b8f 100%));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: bwScaleIn 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  box-shadow: 0 8px 24px rgba(5, 242, 219, 0.25);
}

@keyframes bwScaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.booking-widget .checkmark {
  stroke: var(--white, #ffffff);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  animation: bwDrawCheck 400ms ease 300ms both;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

@keyframes bwDrawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.booking-widget .confirm-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark, #1a1a2e);
}

.booking-widget .confirm-subtitle {
  font-size: 0.95rem;
  color: var(--gray, #64748b);
  margin-bottom: 1.75rem;
}

.booking-widget .confirm-details {
  background: var(--light, #f8fafc);
  border: 1px solid var(--card-border, rgba(100, 116, 139, 0.12));
  border-radius: var(--border-radius-lg, 1.5rem);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.booking-widget .confirm-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.booking-widget .confirm-detail-row + .confirm-detail-row {
  border-top: 1px solid var(--card-border, rgba(100, 116, 139, 0.12));
}

.booking-widget .confirm-detail-label {
  color: var(--gray, #64748b);
}

.booking-widget .confirm-detail-value {
  font-weight: 600;
  text-align: right;
  color: var(--dark, #1a1a2e);
}

.booking-widget .confirm-email-note {
  font-size: 0.9rem;
  color: var(--gray, #64748b);
  margin-bottom: 1.75rem;
}

.booking-widget .restart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--brand-blue, #005b8f);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all 0.3s ease;
}

.booking-widget .restart-link:hover {
  color: var(--brand-blue-light, #0084CA);
}

/* ── Error / Loading States ── */
.booking-widget .loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: var(--gray, #64748b);
  gap: 0.75rem;
}

.booking-widget .loading-dots {
  display: flex;
  gap: 0.375rem;
}

.booking-widget .loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-blue, #005b8f);
  animation: bwBounce 1.2s ease infinite;
}

.booking-widget .loading-dots span:nth-child(2) { animation-delay: 0.1s; }
.booking-widget .loading-dots span:nth-child(3) { animation-delay: 0.2s; }

@keyframes bwBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.booking-widget .error-banner {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: var(--border-radius, 1rem);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: none;
}

.booking-widget .error-banner.visible {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: bwFadeSlideIn 250ms ease;
}

.booking-widget .error-banner svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   Booking Modal (Service CTA)
   ══════════════════════════════════════ */

.bw-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: bwOverlayIn 250ms ease;
}

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

.bw-modal {
  background: var(--white, #ffffff);
  border-radius: 1.25rem;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
  animation: bwModalIn 350ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

@keyframes bwModalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Close Button */
.bw-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light, #f8fafc);
  border: 1px solid var(--gray-light, #e2e8f0);
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--gray, #64748b);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.bw-modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

/* Header */
.bw-modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding-right: 2.5rem;
}

.bw-modal-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #005b8f 0%, #0084CA 100%);
  color: white;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.bw-modal-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dark, #1a1a2e);
  margin: 0;
}

/* Sections */
.bw-modal-section {
  margin-bottom: 1.25rem;
}

.bw-modal-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray, #64748b);
  margin-bottom: 0.5rem;
}

.bw-optional {
  font-weight: 400;
  opacity: 0.7;
}

/* Duration Toggle */
.bw-duration-toggle {
  display: flex;
  gap: 0.5rem;
}

.bw-duration-btn {
  flex: 1;
  padding: 0.625rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--gray-light, #e2e8f0);
  border-radius: 0.75rem;
  background: var(--white, #ffffff);
  color: var(--gray, #64748b);
  cursor: pointer;
  transition: all 0.2s ease;
}

.bw-duration-btn:hover:not(.active) {
  border-color: var(--brand-blue, #005b8f);
  color: var(--brand-blue, #005b8f);
}

.bw-duration-btn.active {
  background: linear-gradient(135deg, #005b8f 0%, #0084CA 100%);
  color: white;
  border-color: transparent;
}

/* Radio Buttons */
.bw-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.bw-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--dark, #1a1a2e);
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}

.bw-radio:hover {
  background: var(--light, #f8fafc);
}

.bw-radio input[type="radio"] {
  display: none;
}

.bw-radio-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gray-light, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.bw-radio-dot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.2s ease;
}

.bw-radio input[type="radio"]:checked + .bw-radio-dot {
  border-color: var(--brand-blue, #005b8f);
}

.bw-radio input[type="radio"]:checked + .bw-radio-dot::after {
  background: var(--brand-blue, #005b8f);
}

/* Textarea */
.bw-modal-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--dark, #1a1a2e);
  background: var(--white, #ffffff);
  border: 1px solid var(--gray-light, #e2e8f0);
  border-radius: 0.75rem;
  outline: none;
  resize: vertical;
  min-height: 3.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.bw-modal-textarea:focus {
  border-color: var(--brand-blue, #005b8f);
  box-shadow: 0 0 0 3px rgba(0, 91, 143, 0.1);
}

/* Divider */
.bw-modal-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--gray, #64748b);
  font-size: 0.8rem;
  font-weight: 500;
}

.bw-modal-divider::before,
.bw-modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-light, #e2e8f0);
}

/* Suggestions */
.bw-suggestions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 3rem;
}

.bw-suggestions-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.75rem 0 0.5rem;
  color: var(--gray, #64748b);
  font-size: 0.85rem;
  font-weight: 500;
}

.bw-loading-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--gray-light, #e2e8f0);
  border-top-color: var(--brand-blue, #005b8f);
  border-radius: 50%;
  animation: bwSpinModal 800ms linear infinite;
  flex-shrink: 0;
}

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

.bw-skeleton-card {
  height: 52px;
  border-radius: 0.75rem;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: bwShimmer 1.5s ease infinite;
}

@keyframes bwShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.bw-suggestion-card {
  padding: 0.875rem 1.25rem;
  background: var(--white, #ffffff);
  border: 1px solid var(--gray-light, #e2e8f0);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark, #1a1a2e);
  text-align: left;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.bw-suggestion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #005b8f 0%, #0084CA 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bw-suggestion-card:hover {
  border-color: var(--brand-blue, #005b8f);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 91, 143, 0.12);
}

.bw-suggestion-card:hover::before {
  opacity: 1;
}

.bw-suggestion-card .bw-sg-arrow {
  float: right;
  color: var(--gray-light, #e2e8f0);
  transition: all 0.2s ease;
  margin-top: 2px;
}

.bw-suggestion-card:hover .bw-sg-arrow {
  color: var(--brand-blue, #005b8f);
  transform: translateX(3px);
}

/* Fallback Link */
.bw-modal-fallback {
  text-align: center;
  margin-top: 1rem;
}

.bw-link-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-blue, #005b8f);
  cursor: pointer;
  transition: color 0.2s ease;
}

.bw-link-btn:hover {
  color: var(--brand-blue-dark, #00407a);
}

/* Phase 2: Form */
.bw-modal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.bw-modal-back {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray, #64748b);
  cursor: pointer;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.bw-modal-back:hover {
  color: var(--brand-blue, #005b8f);
}

.bw-modal-slot-info {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark, #1a1a2e);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-light, #e2e8f0);
}

.bw-form-group {
  margin-bottom: 1rem;
}

.bw-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--dark, #1a1a2e);
  background: var(--white, #ffffff);
  border: 1px solid var(--gray-light, #e2e8f0);
  border-radius: 0.75rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.bw-form-input:focus {
  border-color: var(--brand-blue, #005b8f);
  box-shadow: 0 0 0 3px rgba(0, 91, 143, 0.1);
}

.bw-form-input.error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.bw-form-error {
  font-size: 0.8rem;
  color: #e53e3e;
  margin-top: 0.25rem;
  display: none;
}

.bw-form-error.visible {
  display: block;
}

.bw-submit-btn {
  width: 100%;
  padding: 0.875rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #005b8f 0%, #0084CA 100%);
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
}

.bw-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 91, 143, 0.3);
}

.bw-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.bw-submit-btn .bw-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: bwSpin 600ms linear infinite;
  margin: 0 auto;
}

.bw-submit-btn.loading .btn-text {
  visibility: hidden;
}

.bw-submit-btn.loading .bw-spinner {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Phase 3: Confirmation */
.bw-modal-confirmation {
  text-align: center;
  padding: 1rem 0;
}

.bw-confirm-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #05F2DB 0%, #005b8f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  animation: bwScaleIn 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  box-shadow: 0 8px 24px rgba(5, 242, 219, 0.25);
}

.bw-checkmark {
  stroke: white;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  animation: bwDrawCheck 400ms ease 300ms both;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.bw-confirm-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dark, #1a1a2e);
  margin-bottom: 0.5rem;
}

.bw-confirm-detail {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark, #1a1a2e);
  margin-bottom: 0.25rem;
}

.bw-confirm-email {
  font-size: 0.875rem;
  color: var(--gray, #64748b);
  margin-bottom: 1.5rem;
}

.bw-close-btn {
  padding: 0.75rem 2.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-blue, #005b8f);
  background: rgba(0, 91, 143, 0.08);
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bw-close-btn:hover {
  background: rgba(0, 91, 143, 0.15);
}

/* Modal error banner */
.bw-modal .error-banner {
  margin-bottom: 1rem;
}

/* Responsive: Mobile */
@media (max-width: 520px) {
  .bw-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .bw-modal {
    border-radius: 1.25rem 1.25rem 0 0;
    max-height: 92vh;
    padding: 1.5rem;
    animation: bwModalSlideUp 350ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

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