/* 预约弹窗样式 */
.booking-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.booking-modal-overlay.show {
  display: flex;
  opacity: 1;
}

.booking-modal-content {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(20px);
}

.booking-modal-overlay.show .booking-modal-content {
  transform: scale(1) translateY(0);
}

.booking-modal-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
}

.booking-modal-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #60a5fa 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.booking-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg) scale(1.1);
}

.booking-modal-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}

.booking-form-group {
  margin-bottom: 24px;
}

.booking-form-group label {
  display: block;
  margin-bottom: 10px;
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 600;
}

.booking-form-group input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 15px;
  transition: all 0.3s;
  box-sizing: border-box;
}

.booking-form-group input:focus {
  outline: none;
  border-color: #f59e0b;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
  transform: translateY(-1px);
}

.booking-form-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.booking-submit-btn {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #2563eb 0%, #f59e0b 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.booking-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.booking-submit-btn:active {
  transform: translateY(0);
}

.booking-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.booking-status {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  font-weight: 500;
}

.booking-status.success {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.booking-status.error {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* 验证码弹窗样式 */
.captcha-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10002;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.captcha-modal-overlay.show {
  display: flex;
  opacity: 1;
}

.captcha-modal-content {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
  max-width: 420px;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.85) translateY(30px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(30px);
}

.captcha-modal-overlay.show .captcha-modal-content {
  transform: scale(1) translateY(0);
}

.captcha-modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
}

.captcha-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #fbbf24 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.captcha-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.captcha-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg) scale(1.1);
}

.captcha-modal-body {
  padding: 32px 28px;
  text-align: center;
}

.captcha-tip {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.captcha-container {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.captcha-image-wrapper {
  position: relative;
  width: 180px;
  height: 50px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: #1e293b;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.captcha-image-wrapper:hover {
  border-color: #f59e0b;
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.captcha-image-wrapper::after {
  content: '点击刷新';
  position: absolute;
  bottom: 4px;
  right: 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s;
}

.captcha-image-wrapper:hover::after {
  opacity: 1;
}

#captcha-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.captcha-input-wrapper {
  flex: 1;
  min-width: 150px;
  max-width: 200px;
}

#captcha-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 4px;
  text-transform: uppercase;
  transition: all 0.3s;
  box-sizing: border-box;
}

#captcha-input:focus {
  outline: none;
  border-color: #f59e0b;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
  transform: translateY(-2px);
}

#captcha-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0;
  text-transform: none;
}

.captcha-submit-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #f59e0b 0%, #2563eb 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.captcha-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.captcha-submit-btn:active {
  transform: translateY(0);
}

.captcha-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.captcha-status {
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  font-weight: 500;
  min-height: 20px;
}

.captcha-status.success {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.captcha-status.error {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

@media (max-width: 768px) {
  .booking-modal-content,
  .captcha-modal-content {
    max-width: 95vw;
    border-radius: 16px;
  }
  
  .booking-modal-header,
  .captcha-modal-header {
    padding: 20px;
  }
  
  .booking-modal-body,
  .captcha-modal-body {
    padding: 24px 20px;
  }
  
  .captcha-container {
    flex-direction: column;
  }
  
  .captcha-image-wrapper {
    width: 100%;
    height: 60px;
  }
  
  .captcha-input-wrapper {
    width: 100%;
    max-width: 100%;
  }
  
  .captcha-submit-btn {
    width: 100%;
  }
}
