/* ============================================================
   WP Booking Pro — Frontend Styles
   ============================================================ */

@import url('https://unpkg.com/@phosphor-icons/web@2.0.3/src/regular/style.css');

:root {
  --wpb-primary:      #6366f1;
  --wpb-primary-h:    #4f46e5;
  --wpb-primary-light:#eef2ff;
  --wpb-success:      #10b981;
  --wpb-danger:       #ef4444;
  --wpb-warning:      #f59e0b;
  --wpb-gray-50:      #f9fafb;
  --wpb-gray-100:     #f3f4f6;
  --wpb-gray-200:     #e5e7eb;
  --wpb-gray-300:     #d1d5db;
  --wpb-gray-400:     #9ca3af;
  --wpb-gray-500:     #6b7280;
  --wpb-gray-600:     #4b5563;
  --wpb-gray-700:     #374151;
  --wpb-gray-800:     #1f2937;
  --wpb-gray-900:     #111827;
  --wpb-radius:       10px;
  --wpb-radius-lg:    16px;
  --wpb-shadow:       0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --wpb-shadow-lg:    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --wpb-shadow-xl:    0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ── Base wrapper ──────────────────────────────────── */
.wpb-inline-wrap, .wpb-trigger-wrap { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.wpb-booking-form { background: #fff; border: 1px solid var(--wpb-gray-200); border-radius: var(--wpb-radius-lg); box-shadow: var(--wpb-shadow-lg); overflow: hidden; max-width: 640px; margin: 0 auto; }

/* ── City Buttons ──────────────────────────────────── */
.wpb-city-buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.wpb-city-button-wrap { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: fit-content; }
.wpb-city-extra-text { 
  margin: 0; 
  font-size: 13px; 
  color: var(--wpb-gray-600); 
  line-height: 1.5;
  padding: 0 4px;
  text-align: center;
}

/* ── Buttons (frontend) ──────────────────────────────── */
.wpb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: var(--wpb-radius); font-size: 14px; font-weight: 600; cursor: pointer; border: 2px solid transparent; text-decoration: none; transition: all .2s cubic-bezier(0.4, 0, 0.2, 1); white-space: nowrap; box-shadow: var(--wpb-shadow); }
.wpb-btn-primary { background: linear-gradient(135deg, var(--wpb-primary) 0%, var(--wpb-primary-h) 100%); color: #fff; border-color: var(--wpb-primary); }
.wpb-btn-primary:hover { background: linear-gradient(135deg, var(--wpb-primary-h) 0%, #4338ca 100%); transform: translateY(-1px); box-shadow: var(--wpb-shadow-lg); }
.wpb-btn-primary:active { transform: translateY(0); }
.wpb-btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.wpb-btn-secondary { background: var(--wpb-gray-100); color: var(--wpb-gray-700); border-color: var(--wpb-gray-200); }
.wpb-btn-secondary:hover { background: var(--wpb-gray-200); border-color: var(--wpb-gray-300); }
.wpb-btn-ghost { background: transparent; color: var(--wpb-gray-600); border-color: var(--wpb-gray-300); box-shadow: none; }
.wpb-btn-ghost:hover { background: var(--wpb-gray-100); color: var(--wpb-gray-900); }
.wpb-btn-lg { padding: 14px 32px; font-size: 15px; }

/* ── Form header ─────────────────────────────────────── */
.wpb-form-header { padding: 28px 28px 16px; text-align: center; background: linear-gradient(180deg, var(--wpb-gray-50) 0%, transparent 100%); }
.wpb-form-title { margin: 0 0 8px; font-size: 1.5rem; font-weight: 700; color: var(--wpb-gray-900); letter-spacing: -.025em; }
.wpb-form-subtitle { margin: 0; font-size: 14px; color: var(--wpb-gray-500); line-height: 1.6; }

/* ── Date Navigation ─────────────────────────────────── */
.wpb-date-nav { display: flex; align-items: center; gap: 0; padding: 24px 20px 16px; }
.wpb-date-arrow { width: 40px; height: 46px; border: 2px solid var(--wpb-gray-200); background: #fff; border-radius: var(--wpb-radius); cursor: pointer; font-size: 20px; color: var(--wpb-gray-400); transition: all .2s; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wpb-date-arrow:hover { border-color: var(--wpb-primary); color: var(--wpb-primary); background: var(--wpb-primary-light); transform: scale(1.05); }
.wpb-date-display { flex: 1; margin: 0 10px; padding: 12px 18px; border: 2px solid var(--wpb-gray-200); border-radius: var(--wpb-radius); background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: all .2s; font-size: 14px; font-weight: 600; box-shadow: var(--wpb-shadow); }
.wpb-date-display:hover { border-color: var(--wpb-primary); background: var(--wpb-primary-light); transform: translateY(-1px); box-shadow: var(--wpb-shadow-lg); }
.wpb-date-display.has-date { border-color: var(--wpb-primary); }
.wpb-date-label { color: var(--wpb-gray-600); }
.wpb-date-display.has-date .wpb-date-label { color: var(--wpb-gray-900); }
.wpb-cal-icon { font-size: 20px; }

/* ── Mini Calendar ───────────────────────────────────── */
.wpb-calendar-wrap { padding: 0 20px 16px; }
.wpb-mini-calendar { border: 2px solid var(--wpb-gray-200); border-radius: var(--wpb-radius-lg); overflow: hidden; background: #fff; box-shadow: var(--wpb-shadow-lg); }
.wpb-cal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: linear-gradient(135deg, var(--wpb-primary) 0%, var(--wpb-primary-h) 100%); }
.wpb-cal-month-label { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .3px; }
.wpb-cal-nav { background: rgba(255,255,255,.2); border: none; color: #fff; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 18px; transition: all .2s; display: flex; align-items: center; justify-content: center; }
.wpb-cal-nav:hover { background: rgba(255,255,255,.35); transform: scale(1.1); }
.wpb-cal-days-header { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--wpb-gray-50); border-bottom: 1px solid var(--wpb-gray-200); }
.wpb-cal-days-header span { text-align: center; padding: 10px 0; font-size: 11px; font-weight: 700; color: var(--wpb-gray-500); text-transform: uppercase; letter-spacing: .5px; }
.wpb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); padding: 10px; gap: 4px; }
.wpb-cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 14px; cursor: pointer; transition: all .2s; color: var(--wpb-gray-700); border: 2px solid transparent; font-weight: 500; }
.wpb-cal-day:hover:not(.wpb-cal-empty):not(.wpb-cal-blocked):not(.wpb-cal-past) { background: var(--wpb-primary-light); border-color: var(--wpb-primary); color: var(--wpb-primary); transform: scale(1.1); font-weight: 700; }
.wpb-cal-day.selected { background: linear-gradient(135deg, var(--wpb-primary) 0%, var(--wpb-primary-h) 100%); color: #fff; border-color: var(--wpb-primary); font-weight: 700; box-shadow: var(--wpb-shadow-lg); }
.wpb-cal-day.today { border-color: var(--wpb-primary); color: var(--wpb-primary); font-weight: 700; }
.wpb-cal-day.wpb-cal-past { color: var(--wpb-gray-300); cursor: default; }
.wpb-cal-day.wpb-cal-blocked { color: var(--wpb-gray-300); cursor: not-allowed; text-decoration: line-through; }
.wpb-cal-day.wpb-cal-empty { cursor: default; }
.wpb-cal-day.wpb-cal-other-month { color: var(--wpb-gray-300); }
.wpb-cal-day.wpb-cal-off-day { color: var(--wpb-gray-300); cursor: not-allowed; background: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(0,0,0,.03) 4px, rgba(0,0,0,.03) 8px); }

/* ── Slots ───────────────────────────────────────────── */
.wpb-slots-section { padding: 8px 20px 20px; }
.wpb-slots-prompt { font-size: 12px; font-weight: 700; color: var(--wpb-gray-500); text-transform: uppercase; letter-spacing: .6px; margin: 0 0 12px; display: flex; align-items: center; gap: 6px; }
.wpb-slots-prompt::before { content: '\f017'; font-family: 'Phosphor'; font-size: 16px; color: var(--wpb-primary); }

/* Two column slot grid */
.wpb-slots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.wpb-slot-btn { 
  padding: 16px 14px; 
  border: 2px solid var(--wpb-gray-200); 
  border-radius: var(--wpb-radius); 
  background: #fff; 
  cursor: pointer; 
  font-size: 14px; 
  font-weight: 600; 
  color: var(--wpb-gray-700); 
  text-align: center; 
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1); 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center;
  gap: 8px; 
  box-shadow: var(--wpb-shadow); 
  position: relative; 
  overflow: hidden;
}

.wpb-slot-btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--wpb-primary-light) 0%, transparent 100%); opacity: 0; transition: opacity .2s; }
.wpb-slot-btn:hover { border-color: var(--wpb-primary); color: var(--wpb-primary); transform: translateY(-2px); box-shadow: var(--wpb-shadow-lg); }
.wpb-slot-btn:hover::before { opacity: 1; }
.wpb-slot-btn.selected { border-color: var(--wpb-primary); background: linear-gradient(135deg, var(--wpb-primary) 0%, var(--wpb-primary-h) 100%); color: #fff; box-shadow: var(--wpb-shadow-xl); transform: translateY(-2px); }
.wpb-slot-btn.selected::before { opacity: 0; }
.wpb-slot-time-lbl { display: block; position: relative; z-index: 1; font-size: 15px; font-weight: 700; }
.wpb-slots-loading, .wpb-slots-none { text-align: center; padding: 24px; color: var(--wpb-gray-400); font-size: 14px; grid-column: 1 / -1; }

/* ── Slot Offer Badge & Label ────────────────────────────────── */
.wpb-slot-has-offer { 
  border-color: #fbbf24; 
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); 
  box-shadow: 0 4px 6px -1px rgba(251, 191, 36, 0.3);
}

.wpb-slot-has-offer:hover { 
  border-color: #f59e0b; 
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); 
  transform: translateY(-3px) scale(1.02); 
  box-shadow: 0 10px 15px -3px rgba(251, 191, 36, 0.4);
}

.wpb-slot-has-offer.selected { 
  border-color: #f59e0b; 
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); 
  color: #fff; 
  box-shadow: 0 10px 20px -5px rgba(217, 119, 6, 0.5);
}

.wpb-slot-offer-badge { 
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px; 
  font-weight: 800; 
  line-height: 1; 
  padding: 5px 12px; 
  border-radius: 20px; 
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); 
  color: #fff; 
  white-space: nowrap; 
  letter-spacing: .4px; 
  text-transform: uppercase; 
  position: relative; 
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: wpb-offer-pulse 2s ease-in-out infinite;
}

@keyframes wpb-offer-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.wpb-slot-offer-icon { font-size: 13px; }

.wpb-slot-offer-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #92400e;
  position: relative;
  z-index: 1;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wpb-slot-has-offer.selected .wpb-slot-offer-badge { 
  background: rgba(255, 255, 255, 0.25);
  color: #fff; 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.wpb-slot-has-offer.selected .wpb-slot-offer-label {
  color: #fff;
  opacity: 0.95;
  font-weight: 700;
}

/* ── Consent Field ───────────────────────────────────── */
.wpb-consent-label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 13px; color: var(--wpb-gray-700); line-height: 1.6; padding: 14px; background: var(--wpb-gray-50); border: 2px solid var(--wpb-gray-200); border-radius: var(--wpb-radius); transition: all .2s; }
.wpb-consent-label:hover { border-color: var(--wpb-primary); background: var(--wpb-primary-light); }
.wpb-consent-check { flex-shrink: 0; margin-top: 2px; width: 18px; height: 18px; accent-color: var(--wpb-primary); cursor: pointer; }
.wpb-consent-text { flex: 1; }
.wpb-consent-text a { color: var(--wpb-primary); text-decoration: underline; font-weight: 600; }
.wpb-consent-label:has(.wpb-consent-check:checked) { border-color: var(--wpb-primary); background: var(--wpb-primary-light); }

/* ── Footer text ─────────────────────────────────────── */
.wpb-form-footer-text { padding: 0 20px 16px; font-size: 12px; color: var(--wpb-gray-400); text-align: center; line-height: 1.5; }

/* ── Step 2 ──────────────────────────────────────────── */
.wpb-step-2 { padding: 0; }
.wpb-step2-header { display: flex; align-items: center; gap: 14px; padding: 18px 24px; border-bottom: 2px solid var(--wpb-gray-100); flex-wrap: wrap; background: linear-gradient(180deg, var(--wpb-gray-50) 0%, transparent 100%); }
.wpb-booking-summary { font-size: 14px; color: var(--wpb-gray-600); flex: 1; font-weight: 500; }
.wpb-booking-summary strong { color: var(--wpb-primary); font-weight: 700; }

/* ── Custom Fields ───────────────────────────────────── */
.wpb-custom-fields { padding: 24px 24px 0; display: flex; flex-direction: column; gap: 18px; }
.wpb-custom-field { display: flex; flex-direction: column; gap: 6px; }
.wpb-field-label { font-size: 13px; font-weight: 700; color: var(--wpb-gray-800); letter-spacing: .2px; }
.wpb-required-mark::after { content: ' *'; color: var(--wpb-danger); }
.wpb-field-subtext { font-size: 12px; color: var(--wpb-gray-500); line-height: 1.5; }
.wpb-field-error { font-size: 12px; color: var(--wpb-danger); font-weight: 600; }

/* ── Inputs ──────────────────────────────────────────── */
.wpb-input { display: block; width: 100%; padding: 11px 16px; border: 2px solid var(--wpb-gray-200); border-radius: var(--wpb-radius); font-size: 14px; color: var(--wpb-gray-900); background: #fff; transition: all .2s; box-sizing: border-box; }
.wpb-input:focus { outline: none; border-color: var(--wpb-primary); box-shadow: 0 0 0 3px rgba(99,102,241,.15); background: var(--wpb-primary-light); }
.wpb-input.wpb-error { border-color: var(--wpb-danger); }
.wpb-select { display: block; width: 100%; padding: 11px 40px 11px 16px; border: 2px solid var(--wpb-gray-200); border-radius: var(--wpb-radius); font-size: 14px; color: var(--wpb-gray-900); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%236b7280' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; -webkit-appearance: none; appearance: none; cursor: pointer; transition: all .2s; box-sizing: border-box; }
.wpb-select:focus { outline: none; border-color: var(--wpb-primary); box-shadow: 0 0 0 3px rgba(99,102,241,.15); background-color: var(--wpb-primary-light); }
textarea.wpb-input { resize: vertical; min-height: 100px; font-family: inherit; }

/* ── Radio & Checkbox lists ──────────────────────────── */
.wpb-radio-list, .wpb-checkbox-list { display: flex; flex-direction: column; gap: 10px; }
.wpb-radio-option, .wpb-checkbox-option { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; color: var(--wpb-gray-700); padding: 10px 12px; border-radius: var(--wpb-radius); border: 2px solid transparent; transition: all .2s; }
.wpb-radio-option:hover, .wpb-checkbox-option:hover { background: var(--wpb-gray-50); border-color: var(--wpb-gray-200); }
.wpb-radio-option input, .wpb-checkbox-option input { accent-color: var(--wpb-primary); margin-top: 2px; flex-shrink: 0; width: 18px; height: 18px; }
.wpb-radio-option:has(input:checked), .wpb-checkbox-option:has(input:checked) { background: var(--wpb-primary-light); border-color: var(--wpb-primary); color: var(--wpb-gray-900); font-weight: 600; }

/* ── Coupon ──────────────────────────────────────────── */
.wpb-coupon-section { padding: 18px 24px 0; }
.wpb-coupon-row { display: flex; gap: 10px; }
.wpb-coupon-input { flex: 1; padding: 11px 16px; border: 2px solid var(--wpb-gray-200); border-radius: var(--wpb-radius); font-size: 14px; text-transform: uppercase; letter-spacing: .8px; font-weight: 600; }
.wpb-coupon-input:focus { outline: none; border-color: var(--wpb-primary); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.wpb-coupon-status { margin-top: 8px; font-size: 12px; font-weight: 700; }
.wpb-coupon-status.ok  { color: var(--wpb-success); }
.wpb-coupon-status.ok::before { content: '✓ '; }
.wpb-coupon-status.err { color: var(--wpb-danger); }
.wpb-coupon-status.err::before { content: '✕ '; }

/* ── Price Summary ───────────────────────────────────── */
.wpb-price-summary { margin: 16px 24px 0; border: 2px solid var(--wpb-gray-200); border-radius: var(--wpb-radius); overflow: hidden; box-shadow: var(--wpb-shadow); }
.wpb-price-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 14px; color: var(--wpb-gray-700); font-weight: 500; }
.wpb-price-row + .wpb-price-row { border-top: 1px solid var(--wpb-gray-200); }
.wpb-price-total-row { background: linear-gradient(135deg, var(--wpb-gray-50) 0%, #fff 100%); font-size: 16px; color: var(--wpb-gray-900); font-weight: 700; }
.wpb-price-total { color: var(--wpb-primary); font-size: 18px; font-weight: 800; }

/* ── Submit ──────────────────────────────────────────── */
.wpb-form-submit-row { padding: 24px; }
.wpb-form-submit-row .wpb-btn-lg { width: 100%; }
.wpb-form-messages { padding: 0 24px 20px; font-size: 13px; text-align: center; font-weight: 600; }
.wpb-form-messages.success { color: var(--wpb-success); }
.wpb-form-messages.error   { color: var(--wpb-danger); }

/* ── Success step ────────────────────────────────────── */
.wpb-step-success { text-align: center; padding: 56px 28px; }
.wpb-success-icon { font-size: 5rem; margin-bottom: 16px; animation: wpb-pop .5s cubic-bezier(0.68, -0.55, 0.265, 1.55); color: var(--wpb-success); }
.wpb-step-success h2 { margin: 0 0 12px; color: var(--wpb-gray-900); font-size: 1.6rem; font-weight: 800; letter-spacing: -.025em; }
.wpb-success-details { color: var(--wpb-gray-600); font-size: 15px; margin: 0 0 24px; line-height: 1.6; }
@keyframes wpb-pop { 0%{transform:scale(.3);opacity:0} 50%{transform:scale(1.1)} 100%{transform:scale(1);opacity:1} }

/* ── Modal ───────────────────────────────────────────── */
.wpb-modal-overlay { position: fixed; inset: 0; background: rgba(17,24,39,.75); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.wpb-modal-overlay.open { display: flex; animation: wpb-fade .25s ease; }
.wpb-modal-box { position: relative; background: #fff; border-radius: var(--wpb-radius-lg); box-shadow: var(--wpb-shadow-xl); width: 100%; max-width: 600px; max-height: 94vh; overflow-y: auto; animation: wpb-slide-up .3s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.wpb-modal-close { position: absolute; top: 14px; right: 14px; border: none; cursor: pointer; font-size: 18px; background:transparent !important; color:#5204bf; display: flex; align-items: center; justify-content: center; z-index: 2; transition: all .2s;}
.wpb-modal-close:hover { color: #6805F2; }
@keyframes wpb-fade { from{opacity:0} to{opacity:1} }
@keyframes wpb-slide-up { from{transform:translateY(30px);opacity:0} to{transform:translateY(0);opacity:1} }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 480px) {
  .wpb-slots-grid { grid-template-columns: 1fr; }
  .wpb-slot-btn { min-height: 70px; padding: 14px 12px; }
  .wpb-slot-offer-badge { font-size: 10px; padding: 3px 10px; }
  .wpb-slot-offer-label { font-size: 11px; }
  .wpb-step2-header { flex-direction: column; align-items: flex-start; }
  .wpb-booking-form { border-radius: 0; }
  .wpb-date-nav { gap: 6px; padding: 20px 16px 12px; }
  .wpb-modal-box { margin: 0; border-radius: 0; min-height: 100vh; }
  .wpb-custom-fields { padding: 20px 16px 0; }
  .wpb-coupon-section { padding: 16px 16px 0; }
  .wpb-price-summary { margin: 14px 16px 0; }
  .wpb-form-submit-row { padding: 20px 16px; }
}

/* ═══════════════════════════════════════════════════════════
   BOOKING DETAILS SHORTCODE
═══════════════════════════════════════════════════════════ */

.wpb-booking-details-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Search Card */
.wpb-details-search-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
}

.wpb-details-title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
}

.wpb-details-subtitle {
  margin: 0 0 24px;
  font-size: 1rem;
  color: #64748b;
}

/* Search Tabs */
.wpb-search-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
}

.wpb-search-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: -2px;
}

.wpb-search-tab:hover {
  color: #4f46e5;
}

.wpb-search-tab.active {
  color: #4f46e5;
  border-bottom-color: #4f46e5;
}

.wpb-search-tab i {
  font-size: 1.1rem;
}

/* Search Form */
.wpb-details-search-form {
  margin-top: 20px;
}

.wpb-search-tab-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wpb-search-tab-content .wpb-input {
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
}

.wpb-search-tab-content .wpb-input:focus {
  border-color: #4f46e5;
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.wpb-search-tab-content .wpb-btn-primary {
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
}

/* Loading State */
.wpb-search-loading {
  text-align: center;
  padding: 40px 20px;
}

.wpb-search-loading .wpb-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #4f46e5;
  border-radius: 50%;
  animation: wpb-spin 1s linear infinite;
  margin: 0 auto 16px;
}

.wpb-search-loading p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

/* Booking Details Card */
.wpb-booking-details-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.wpb-details-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 32px;
  background: linear-gradient(135deg, #5204BF 0%, #6805F2 100%);
  color: #fff;
  flex-wrap: wrap;
  gap: 16px;
}

.wpb-details-header h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wpb-details-header i {
  font-size: 1.75rem;
}

.wpb-booking-ref {
  margin: 0;
  font-size: 0.95rem;
  font-weight:600;
  opacity: 0.95;
}

.wpb-booking-ref strong {
  counter-reset: #fff;
  font-weight: 400;
  font-style: italic;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
}

/* Details Sections */
.wpb-details-section {
  padding: 24px 32px;
  border-bottom: 1px solid #e2e8f0;
}

.wpb-details-section:last-of-type {
  border-bottom: none;
}

.wpb-details-section h3 {
  margin: 0 0 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wpb-details-section h3 i {
  font-size: 1.25rem;
  color: #4f46e5;
}

/* Details Grid */
.wpb-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.wpb-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wpb-detail-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wpb-detail-value {
  font-size: 1rem;
  color: #1f2937;
  font-weight: 500;
}

/* Price Breakdown */
.wpb-price-breakdown {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
}


.wpb-price-row.wpb-discount {
  color: #16a34a;
}

.wpb-price-row.wpb-total {
  border-top: 2px solid #e2e8f0;
  margin-top: 8px;
  padding-top: 12px;
  font-size: 1.1rem;
}

/* Details Footer */
.wpb-details-footer {
  padding: 20px 32px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.wpb-details-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.wpb-details-footer i {
  font-size: 1.1rem;
  color: #4f46e5;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Error State */
.wpb-details-error {
  text-align: center;
  padding: 48px 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.wpb-details-error i {
  font-size: 3rem;
  color: #f59e0b;
  margin-bottom: 16px;
  display: block;
}

.wpb-details-error h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: #1f2937;
}

.wpb-details-error p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  .wpb-booking-details-wrap {
    padding: 12px;
  }

  .wpb-details-search-card,
  .wpb-details-section {
    padding: 20px;
  }

  .wpb-details-header {
    padding: 20px;
  }

  .wpb-details-title {
    font-size: 1.5rem;
  }

  .wpb-details-grid {
    grid-template-columns: 1fr;
  }

  .wpb-search-tabs {
    flex-direction: column;
  }

  .wpb-search-tab {
    border-bottom: 1px solid #e2e8f0;
    border-left: 2px solid transparent;
    margin-bottom: 0;
  }

  .wpb-search-tab.active {
    border-bottom-color: #e2e8f0;
    border-left-color: #4f46e5;
  }
}

/* ── Timezone Section ─────────────────────────────────── */
.wpb-timezone-section {
  padding: 16px 20px;
  background: linear-gradient(180deg, var(--wpb-gray-50) 0%, transparent 100%);
  border-top: 1px solid var(--wpb-gray-200);
}

.wpb-timezone-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--wpb-gray-700);
  cursor: default;
}

.wpb-timezone-label i {
  font-size: 18px;
  color: var(--wpb-primary);
}

.wpb-timezone-select {
  flex: 1;
  margin-left: 4px;
  padding: 8px 36px 8px 12px;
  border: 2px solid var(--wpb-gray-200);
  border-radius: var(--wpb-radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--wpb-gray-900);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  cursor: pointer;
  transition: all .2s;
}

.wpb-timezone-select:focus {
  outline: none;
  border-color: var(--wpb-primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
  background-color: var(--wpb-primary-light);
}

.wpb-timezone-hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--wpb-gray-500);
  display: flex;
  align-items: center;
  gap: 4px;
}

.wpb-timezone-hint::before {
  content: 'ℹ';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--wpb-gray-300);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 480px) {
  .wpb-timezone-section {
    padding: 14px 16px;
  }
  
  .wpb-timezone-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .wpb-timezone-select {
    width: 100%;
    margin-left: 0;
  }
}
/* ═══════════════════════════════════════════════════════════
   BOOKING LOOKUP LIST & MODAL
═══════════════════════════════════════════════════════════ */

/* Lookup Form Error/Success States */
.wpb-lookup-result.wpb-lookup-error {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 0.9rem;
}

.wpb-lookup-result.wpb-lookup-success {
  margin-top: 20px;
}

/* Bookings List Container */
.wpb-bookings-list-container {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Bookings Header */
.wpb-bookings-header {
  padding: 24px 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-align: center;
}

.wpb-bookings-header h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.wpb-bookings-header i {
  font-size: 1.75rem;
}

.wpb-bookings-header p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Booking Filters */
.wpb-bookings-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.wpb-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}

.wpb-filter-group:last-child {
  flex: 1;
  min-width: 200px;
}

.wpb-filter-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wpb-filter-group .wpb-select,
.wpb-filter-group .wpb-input {
  padding: 10px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.wpb-filter-group .wpb-select:focus,
.wpb-filter-group .wpb-input:focus {
  border-color: #4f46e5;
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Bookings Table */
.wpb-bookings-table-wrapper {
  overflow-x: auto;
}

.wpb-bookings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.wpb-bookings-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  background: #f9fafb;
  border-bottom: 2px solid #e2e8f0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wpb-bookings-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
}

.wpb-booking-row:hover {
  background: #f9fafb;
}

/* Table Cell Content */

.wpb-booking-service {
  font-weight: 500;
  color: #1f2937;
}

.wpb-booking-location {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 400;
}

.wpb-booking-date {
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 2px;
}

.wpb-booking-time {
  font-size: 0.8rem;
  color: #6b7280;
  font-family: 'Courier New', monospace;
}

.wpb-booking-price {
  font-weight: 600;
  color: #059669;
  font-family: 'Courier New', monospace;
}

/* Table Actions */
.wpb-booking-actions .wpb-btn {
  padding: 8px 12px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wpb-booking-actions i {
  font-size: 0.9rem;
}

/* Status Badges */
.wpb-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wpb-badge-lg {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.wpb-badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.wpb-badge-approved {
  background: #d1fae5;
  color: #065f46;
}

.wpb-badge-declined {
  background: #fee2e2;
  color: #991b1b;
}

.wpb-badge-paid {
  background: #dbeafe;
  color: #1e40af;
}

/* No Results State */
.wpb-no-results {
  padding: 48px 24px;
  text-align: center;
  background: #f9fafb;
}

.wpb-empty-state i {
  font-size: 3rem;
  color: #d1d5db;
  margin-bottom: 16px;
  display: block;
}

.wpb-empty-state p {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
}

/* Booking Details Modal */
.wpb-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: wpb-modal-slide-in 0.3s ease-out;
}

.wpb-modal-lg {
  max-width: 900px;
}

@keyframes wpb-modal-slide-in {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wpb-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #f9fafb;
}

.wpb-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1f2937;
}

.wpb-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  border-radius: 6px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wpb-modal-close:hover {
  background: #e5e7eb;
  color: #374151;
}

.wpb-modal-close i {
  font-size: 1.2rem;
}

.wpb-modal-body {
  padding: 0;
}

/* Modal Loading/Error States */
.wpb-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.wpb-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #4f46e5;
  border-radius: 50%;
  animation: wpb-spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes wpb-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.wpb-loading-state p,
.wpb-error-state p {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.wpb-error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.wpb-error-state i {
  font-size: 3rem;
  color: #f59e0b;
  margin-bottom: 16px;
}

/* Hide on Mobile */
.wpb-hide-mobile {
  display: initial;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .wpb-hide-mobile {
    display: none;
  }

  .wpb-bookings-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .wpb-filter-group {
    min-width: auto;
  }

  .wpb-bookings-table th,
  .wpb-bookings-table td {
    padding: 12px 16px;
  }

  .wpb-bookings-table th {
    font-size: 0.8rem;
  }

  .wpb-bookings-table td {
    font-size: 0.85rem;
  }

  .wpb-booking-actions .wpb-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}

@media (max-width: 640px) {
  .wpb-bookings-header {
    padding: 20px;
  }

  .wpb-bookings-header h2 {
    font-size: 1.3rem;
    text-align: center;
  }

  .wpb-bookings-filters {
    padding: 16px;
  }

  .wpb-modal {
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
  }

  .wpb-modal-header {
    padding: 16px 20px;
  }

  /* Stack table cells on very small screens */
  .wpb-bookings-table {
    font-size: 0.8rem;
  }

  .wpb-bookings-table th {
    padding: 10px 12px;
  }

  .wpb-bookings-table td {
    padding: 12px;
  }
}