body {
  font-family: 'Kanit', sans-serif;
}

::selection {
  background-color: #AC946E;
  color: white;
}

html {
  scroll-behavior: smooth;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #AC946E;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8e7a5b;
}

/* Stepper Styles for Section 1 */
.step-item {
  --step-circle-size: 30px;
  --step-top-row: 52px;

  position: relative;
  flex: 1;
  min-width: 100px;
  cursor: pointer;

  display: grid;
  grid-template-rows: var(--step-top-row) auto;
  justify-items: center;
  align-items: start;
}

.step-item.step-item-lg {
  --step-circle-size: 42px;
}

/* เส้นเชื่อม */
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: calc(var(--step-top-row) / 2);
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: #ffffff00;
  z-index: 0;
  transform: translateY(-50%);
}

.step-item.active:not(:last-child)::after {
  background-color: #ffffff00;
}

.step-circle {
  grid-row: 1;
  align-self: center;

  width: var(--step-circle-size);
  height: var(--step-circle-size);
  border-radius: 50%;
  background-color: white;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: #9ca3af;
  z-index: 2;
  transition: all 0.3s ease;
  position: relative;
  flex-shrink: 0;
  line-height: 1;
}

.step-item.step-item-lg .step-circle {
  font-size: 14px;
}

.step-item.active .step-circle {
  border-color: #AC946E;
  background-color: #AC946E;
  color: white;
}

.step-item.selected .step-circle {
  transform: scale(1.2);
  box-shadow: 0 0 0 4px rgba(172, 148, 110, 0.3);
  border-color: #AC946E;
}

.step-item.selected.active .step-circle {
  background-color: #AC946E;
  color: white;
}

.step-item.selected:not(.active) .step-circle {
  background-color: white;
  color: #AC946E;
}

.step-label {
  grid-row: 2;
  margin-top: 6px;
  font-size: 11px;
  color: #6b7280;
  text-align: center;
  font-weight: 400;
  line-height: 1.4;
  max-width: 100%;
}

.step-item.active .step-label {
  color: #AC946E;
  font-weight: 500;
}

.step-item.selected .step-label {
  font-weight: 700;
  color: #8e7a5b;
}

.step-item.step-item-lg .step-label {
  font-size: 12px;
  font-weight: 600;
}

/* Loading Spinner */
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #AC946E;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.ohm-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.ohm-overlay.hidden {
  display: none;
}

.ohm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(5px);
}

.ohm-panel {
  position: relative;
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  margin: 24px auto;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ohm-header {
  flex: 0 0 auto;
  padding: 20px 24px;
  border-bottom: 1px solid #edf0f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #faf7f1 100%);
}

.ohm-title {
  font-size: 22px;
  font-weight: 800;
  color: #1f2937;
  line-height: 1.35;
}

.ohm-subtitle {
  margin-top: 4px;
  color: #6b7280;
  font-size: 14px;
}

.ohm-close {
  flex: 0 0 auto;
  border: none;
  background: #7e1812;
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(126, 24, 18, 0.25);
}

.ohm-close:hover {
  filter: brightness(1.05);
}

.ohm-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 24px;
  background: #f8fafc;
}

.ohm-empty {
  background: #ffffff;
  border: 1px dashed #d1d5db;
  border-radius: 18px;
  padding: 36px 20px;
  text-align: center;
  color: #6b7280;
  font-weight: 700;
}

.ohm-member-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 18px;
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.ohm-photo {
  width: 116px;
  height: 144px;
  border-radius: 16px;
  object-fit: cover;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.ohm-member-name {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  line-height: 1.4;
}

.ohm-position {
  margin-top: 4px;
  color: #7e1812;
  font-weight: 700;
}

.ohm-meta {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: #374151;
}

.ohm-meta-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.ohm-meta-label {
  min-width: 120px;
  color: #6b7280;
  font-weight: 700;
}

.ohm-history {
  margin-top: 14px;
  border-top: 1px solid #eef2f7;
  padding-top: 12px;
}

.ohm-history-title {
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 8px;
}

.ohm-history-list {
  display: grid;
  gap: 8px;
}

.ohm-history-item {
  background: #f9fafb;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  color: #374151;
}

.ohm-grid {
  display: grid;
  gap: 16px;
}

body.ohm-locked {
  overflow: hidden;
}

@media (max-width: 768px) {
  .ohm-panel {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .ohm-header {
    padding: 14px 14px;
    align-items: flex-start;
  }

  .ohm-title {
    font-size: 18px;
  }

  .ohm-close {
    padding: 10px 14px;
    font-size: 14px;
  }

  .ohm-body {
    padding: 14px;
    padding-bottom: 28px;
  }

  .ohm-member-card {
    grid-template-columns: 88px 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
  }

  .ohm-photo {
    width: 88px;
    height: 112px;
    border-radius: 14px;
  }

  .ohm-member-name {
    font-size: 16px;
  }

  .ohm-position {
    font-size: 14px;
  }

  .ohm-meta {
    font-size: 13px;
  }

  .ohm-meta-row {
    display: block;
  }

  .ohm-meta-label {
    min-width: auto;
    display: block;
    margin-bottom: 2px;
  }
}
.ohm-history {
  margin-top: 14px;
  border-top: 1px solid #eef2f7;
  padding-top: 12px;
}

.ohm-history-toggle {
  width: 100%;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  color:#555555;
  /* padding: 10px 12px; */
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

.ohm-history-toggle:hover {
  /* background: #fff4e6; */
}

.ohm-history-toggle svg {
  transition: transform 0.2s ease;
}

.ohm-history.is-open .ohm-history-toggle svg {
  transform: rotate(180deg);
}

.ohm-history-content {
  display: none;
  margin-top: 10px;
}

.ohm-history.is-open .ohm-history-content {
  display: grid;
}

.ohm-history-list {
  display: grid;
  gap: 8px;
}

.ohm-history-item {
  background: #f9fafb;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  color: #374151;
}

.org-logo-wrap {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px auto;
  background: #ffffff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.group:hover .org-logo-wrap {
  transform: scale(1.1);
}

.org-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.org-logo-fallback {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #7e1812;
  font-weight: 900;
  font-size: 13px;
  align-items: center;
  justify-content: center;
  text-align: center;
  display: none;
}