/* ============================================
   SERVICE PAGE — Wellness Advance
   Hero, breadcrumb, content grid, sidebar
   ============================================ */

/* --- Content Grid --- */
.service-content {
  padding: 64px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.service-main h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.service-main p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 24px;
}

/* --- Sidebar --- */
.service-sidebar {
  position: sticky;
  top: 130px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Doctor card in sidebar */
.sidebar-doctor {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  cursor: pointer;
}

.sidebar-doctor:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}

.sidebar-doctor-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--bg-light);
}

.sidebar-doctor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-doctor .exp-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.sidebar-doctor .exp-badge .badge-num {
  display: block;
  font-size: 1rem;
  font-weight: 800;
}

.sidebar-doctor .exp-badge .badge-label {
  display: block;
  font-size: 0.55rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.9;
}

.sidebar-doctor h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.sidebar-doctor .doctor-title {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.sidebar-doctor .btn-profile {
  display: inline-block;
  padding: 8px 20px;
  background: var(--brand-primary);
  color: var(--text-white);
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background var(--transition);
}

.sidebar-doctor .btn-profile:hover {
  background: var(--brand-primary-dark);
}

/* Other services list */
.sidebar-services {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-light);
}

.sidebar-services h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.sidebar-services ul li {
  margin-bottom: 8px;
}

.sidebar-services ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-body);
  transition: background var(--transition), color var(--transition);
}

.sidebar-services ul li a:hover {
  background: var(--bg-light);
  color: var(--brand-primary);
}

.sidebar-services ul li a.active {
  background: var(--bg-light);
  color: var(--brand-primary);
  font-weight: 600;
}

.sidebar-services ul li a .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-teal);
  flex-shrink: 0;
}

/* --- Explore Services Bar (full-width) --- */
.explore-services {
  padding: 48px 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
}

.explore-services h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 24px;
}

.services-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.services-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.services-tabs a:hover {
  background: var(--brand-primary);
  color: var(--text-white);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 76, 138, 0.2);
}

.services-tabs a.active {
  background: var(--brand-primary);
  color: var(--text-white);
  border-color: var(--brand-primary);
  font-weight: 600;
}

.services-tabs a .tab-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .service-sidebar {
    position: static;
  }
}

/* --- Appointment Form Section (service pages) --- */
.appointment-section {
  padding: 40px 0;
  background: var(--bg-cream);
}

.appointment-section .section-header {
  text-align: center;
  margin-bottom: 24px;
}

.appointment-section .section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 4px;
}

.appointment-section .section-header p {
  color: var(--text-medium);
  font-size: 0.9375rem;
}

.appointment-form-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-md);
}

.appointment-form-card .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

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

.appointment-form-card .form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.appointment-form-card .form-group input,
.appointment-form-card .form-group textarea,
.appointment-form-card .form-group select {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-en);
  font-size: 0.9375rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-cream);
  color: var(--text-dark);
  transition: all var(--transition);
  outline: none;
}

.appointment-form-card .form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 1rem;
  min-height: 48px;
  cursor: pointer;
}
.appointment-form-card .form-group select option {
  font-size: 1rem;
  padding: 8px 12px;
}

.appointment-form-card .form-group input:focus,
.appointment-form-card .form-group textarea:focus,
.appointment-form-card .form-group select:focus {
  border-color: var(--brand-primary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(15, 76, 138, 0.1);
}

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

.appointment-form-card .btn-submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--brand-primary);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
  margin-top: 8px;
}

.appointment-form-card .btn-submit:hover {
  background: var(--brand-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.appointment-form-card .btn-submit svg { width: 18px; height: 18px; }

.appointment-form-card .required { color: #e53e3e; font-weight: 500; }
.appointment-form-card .optional { color: #999; font-weight: 400; font-size: 0.8125rem; }

@media (max-width: 768px) {
  .service-content { padding: 48px 0; }
  .appointment-section { padding: 28px 12px; }
  .appointment-section .section-header { margin-bottom: 16px; }
  .appointment-form-card { padding: 20px 16px; }
  .appointment-form-card .form-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
  .appointment-form-card .form-group { margin-bottom: 10px; }
  .appointment-form-card .form-group label { margin-bottom: 4px; font-size: 0.75rem; }
  .appointment-form-card .form-group input,
  .appointment-form-card .form-group textarea,
  .appointment-form-card .form-group select { padding: 12px 12px; font-size: 1rem; min-height: 48px; padding-right: 36px; }
  .appointment-form-card .btn-submit { padding: 12px 20px; margin-top: 4px; }
}
