/* CargO Booking SPA styles */
[x-cloak] { display: none !important; }

.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

@media (min-width: 768px) {
  .booking-overlay {
    align-items: center;
  }
}

.booking-modal {
  background: #fff;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .booking-modal {
    border-radius: 24px;
    max-height: 85vh;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
    animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

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

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

.booking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}

.booking-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}

.booking-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f0f0f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #888;
  transition: all 0.2s;
}

.booking-close:hover {
  background: #e5e5e5;
  color: #333;
}

.booking-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
}

.booking-map {
  width: 100%;
  height: 200px;
  border-radius: 16px;
  margin-bottom: 16px;
  background: #eef1f4;
  overflow: hidden;
}

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

.booking-input-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #8b95a2;
  text-transform: uppercase;
  margin-bottom: 5px;
  letter-spacing: 0.04em;
}

.booking-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e8ecf1;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  box-sizing: border-box;
}

.booking-input:focus {
  border-color: #ff6b00;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.booking-input::placeholder {
  color: #b0b8c4;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.vehicle-card {
  padding: 14px 6px 10px;
  border: 2px solid #e8ecf1;
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.vehicle-card:hover {
  border-color: #ffd6b3;
  background: #fffaf5;
  transform: translateY(-1px);
}

.vehicle-card.active {
  border-color: #ff6b00;
  background: #fff4eb;
  box-shadow: 0 2px 12px rgba(255, 107, 0, 0.15);
}

.vehicle-card__icon {
  font-size: 26px;
  margin-bottom: 4px;
}

.vehicle-card__name {
  font-size: 11px;
  font-weight: 700;
  color: #1a1a2e;
}

.quote-summary {
  background: #f8f9fb;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
  border: 1px solid #eef1f4;
}

.quote-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  color: #5a6470;
}

.quote-row:last-child {
  margin-bottom: 0;
}

.quote-row.total {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a2e;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid #e5e7eb;
}

.booking-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.booking-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.booking-btn--primary {
  background: linear-gradient(135deg, #ff6b00 0%, #e55500 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.3);
}

.booking-btn--primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #ff7b1a 0%, #d24d00 100%);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.booking-btn--primary:disabled {
  background: #ffc999;
  box-shadow: none;
  cursor: not-allowed;
}

.booking-btn--ghost {
  background: transparent;
  color: #ff6b00;
  border: 2px solid #ffd6b3;
}

.booking-btn--ghost:hover {
  background: #fff4eb;
  border-color: #ff6b00;
}

.booking-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
  border: 1px solid #fecaca;
}

.booking-step-indicator {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-bottom: 18px;
}

.booking-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e7eb;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-step-dot.active {
  background: #ff6b00;
  width: 24px;
  border-radius: 4px;
}

.searching-animation {
  text-align: center;
  padding: 36px 20px;
}

.searching-pulse {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff4eb 0%, #ffe8d6 100%);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,107,0,0.35); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 20px rgba(255,107,0,0); }
}

.searching-pulse svg {
  width: 36px;
  height: 36px;
  fill: #ff6b00;
}

.tracking-driver {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #f8f9fb;
  border-radius: 16px;
  margin-bottom: 16px;
  border: 1px solid #eef1f4;
}

.tracking-driver__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b00 0%, #e55500 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.tracking-driver__info h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
}

.tracking-driver__info p {
  margin: 3px 0 0;
  font-size: 13px;
  color: #8b95a2;
}

.helper-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: #f8f9fb;
  border-radius: 12px;
  margin-bottom: 14px;
  cursor: pointer;
  border: 1px solid #eef1f4;
  transition: background 0.2s;
}

.helper-toggle:hover {
  background: #f0f2f5;
}

.helper-toggle__label {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
}

.helper-toggle__switch {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #d1d5db;
  position: relative;
  transition: background 0.25s;
  flex-shrink: 0;
}

.helper-toggle__switch.on {
  background: #ff6b00;
}

.helper-toggle__switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.helper-toggle__switch.on::after {
  transform: translateX(20px);
}

.helper-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.download-cta {
  text-align: center;
  padding: 28px 16px;
  background: #f8f9fb;
  border-radius: 16px;
  margin-top: 16px;
}

.download-cta p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}

.download-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.download-badges a img {
  height: 42px;
}
