/* 预约弹框样式 */
.appointment-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.appointment-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

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

.appointment-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px 12px 0 0;
}

.appointment-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.appointment-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
  opacity: 0.8;
  transition: opacity 0.2s;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.appointment-close:hover {
  opacity: 1;
}

.appointment-modal-body {
  padding: 24px;
}

.appointment-form-group {
  margin-bottom: 20px;
}

.appointment-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.appointment-form-group input,
.appointment-form-group select,
.appointment-form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.appointment-form-group input:focus,
.appointment-form-group select:focus,
.appointment-form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.appointment-form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.appointment-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.appointment-btn {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.appointment-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.appointment-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.appointment-btn-secondary {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #dee2e6;
}

.appointment-btn-secondary:hover {
  background: #e9ecef;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .appointment-modal-content {
    margin: 10% auto;
    width: 95%;
    max-height: 85vh;
  }
  
  .appointment-modal-header {
    padding: 16px 20px;
  }
  
  .appointment-modal-header h3 {
    font-size: 16px;
  }
  
  .appointment-modal-body {
    padding: 20px;
  }
  
  .appointment-form-group {
    margin-bottom: 16px;
  }
  
  .appointment-form-group input,
  .appointment-form-group select,
  .appointment-form-group textarea {
    font-size: 16px;
    padding: 14px 12px;
  }
  
  /* 强制设置select和option的字体大小 */
  .appointment-form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 16px !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
  }
  
  .appointment-form-group select option {
    font-size: 16px !important;
    padding: 12px 8px !important;
    background-color: white;
    color: #333;
    line-height: 1.5;
    min-height: 44px;
  }
  
  .appointment-form-group label {
    font-size: 15px;
  }
  
  .appointment-form-actions {
    flex-direction: column;
  }
  
  .appointment-btn {
    padding: 14px 24px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .appointment-modal-content {
    margin: 5% auto;
    width: 98%;
    border-radius: 8px;
  }
  
  .appointment-modal-header {
    border-radius: 8px 8px 0 0;
  }
  
  /* 更强制的移动端select样式 */
  .appointment-form-group select {
    font-size: 18px !important;
    min-height: 48px;
  }
  
  .appointment-form-group select option {
    font-size: 18px !important;
    padding: 14px 10px !important;
    min-height: 48px;
  }
}