/* ============================================
   Appointment Page - 预约页面样式
   ============================================ */

/* ── Hero Section ────────────────────────────────────────── */
.unified-hero {
  position: relative;
  min-height: 350px;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary-mid) 100%);
  overflow: hidden;
  margin-top: 70px;
}

.unified-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,.4) 0%, rgba(0,64,128,.35) 100%);
  z-index: 1;
}

.unified-hero .container {
  position: relative;
  z-index: 2;
}

.unified-hero .hero-content {
  padding: 60px 0;
  text-align: center;
}

.unified-hero .hero-badge {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(230,126,34,.2);
  border: 1px solid rgba(230,126,34,.4);
  color: var(--accent);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.unified-hero .hero-title {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.1;
}

.unified-hero .hero-description {
  font-size: 18px;
  color: rgba(255,255,255,.8);
  max-width: 520px;
  line-height: 1.7;
  margin: 0 auto 32px;
}

/* ── Appointment Form Card ───────────────────────────────── */
.appointment-form-card {
  background: #fff;
  border-radius: var(--r-xl);
  overflow: hidden;
}

.appointment-form-card .card-body {
  padding: 48px;
}

.appointment-form-card h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  text-align: center;
}

.appointment-form-card .text-muted {
  color: var(--text-secondary) !important;
  text-align: center;
  margin-bottom: 40px;
}

/* ── Form Styles ─────────────────────────────────────────── */
.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-label .text-danger {
  color: var(--danger);
}

.form-control,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r);
  font-size: 15px;
  color: var(--text-primary);
  transition: var(--transition);
  font-family: inherit;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,51,102,.08);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-check-input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.form-check-label {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.form-check-label a {
  color: var(--primary);
  text-decoration: none;
}

.form-check-label a:hover {
  text-decoration: underline;
}

.invalid-feedback {
  font-size: 13px;
  color: var(--danger);
  margin-top: 6px;
}

/* ── Submit Button ───────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  color: #fff;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,51,102,.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,51,102,.35);
  color: #fff;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ── Alert Messages ──────────────────────────────────────── */
.alert {
  padding: 16px 20px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
}

.alert-success {
  background: rgba(16,185,129,.1);
  color: var(--success);
  border: 1px solid rgba(16,185,129,.2);
}

.alert-danger {
  background: rgba(239,68,68,.1);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,.2);
}

.d-none {
  display: none !important;
}

/* ── Spinner ─────────────────────────────────────────────── */
.spinner-border {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: text-bottom;
  border: 0.2em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
  width: 0.8rem;
  height: 0.8rem;
  border-width: 0.15em;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .unified-hero .hero-title {
    font-size: 40px;
  }
  
  .appointment-form-card .card-body {
    padding: 32px;
  }
}

@media (max-width: 767.98px) {
  .unified-hero {
    min-height: 350px;
  }
  
  .unified-hero .hero-title {
    font-size: 32px;
    letter-spacing: -0.5px;
  }
  
  .unified-hero .hero-description {
    font-size: 16px;
  }
  
  .appointment-form-card .card-body {
    padding: 24px;
  }
  
  .appointment-form-card h2 {
    font-size: 26px;
  }
}

@media (max-width: 575.98px) {
  .unified-hero .hero-title {
    font-size: 26px;
  }
}
