#delegate-info .section-header h3 {
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif, "Apple LiGothic Medium", "Microsoft JhengHei";
}

#delegate-info .delegate-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(46, 58, 130, 0.12);
  padding: 2rem 2.5rem;
}

#delegate-info .delegate-card .welcome {
  color: #2e3a82;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

#delegate-info .delegate-card .instruction {
  color: #555;
  margin-bottom: 1.5rem;
}

#delegate-info .form-group label {
  color: #2e3a82;
  font-weight: 600;
}

#delegate-info .form-control:focus {
  border-color: #2e3a82;
  box-shadow: 0 0 0 0.2rem rgba(46, 58, 130, 0.25);
}

#delegate-info .btn-submit {
  background-color: #2e3a82;
  border-color: #2e3a82;
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 2rem;
  min-width: 120px;
}

#delegate-info .btn-submit:hover,
#delegate-info .btn-submit:focus {
  background-color: #232d66;
  border-color: #232d66;
  color: #fff;
}

#delegate-info .alert-message {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

#delegate-info .alert-message.is-visible {
  display: block;
}

#delegate-info .alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

#delegate-info .result-section {
  display: none;
  margin-top: 2rem;
}

#delegate-info .result-section.is-visible {
  display: block;
}

#delegate-info .result-section h4 {
  color: #2e3a82;
  font-weight: 600;
  margin-bottom: 1rem;
}

#delegate-info .activity-result {
  display: none;
  margin-top: 1.5rem;
}

#delegate-info .activity-result.is-visible {
  display: block;
}

#delegate-info .activity-result h5 {
  color: #2e3a82;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

#delegate-info .giscode-display {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #333;
}

#delegate-info .giscode-display strong {
  color: #2e3a82;
}

#delegate-info .result-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

#delegate-info .result-col-round {
  width: 28%;
}

#delegate-info .result-col-table {
  width: 72%;
}

#delegate-info .result-table th,
#delegate-info .result-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

#delegate-info .result-table th {
  background-color: #2e3a82;
  color: #fff;
  font-weight: 600;
}

#delegate-info .result-table tbody tr:hover {
  background-color: #f8f9fa;
}

#delegate-info .activity-map {
  margin-top: 1rem;
}

#delegate-info .activity-map img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e9ecef;
  border-radius: 4px;
}

#delegate-info .activity-map figcaption {
  margin-top: 0.5rem;
  color: #555;
  font-size: 0.9rem;
  text-align: center;
}

#delegate-info .info-list {
  border: 1px solid #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

#delegate-info .info-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e9ecef;
}

#delegate-info .info-item:last-child {
  border-bottom: none;
}

#delegate-info .info-label {
  flex: 0 0 8rem;
  color: #2e3a82;
  font-weight: 600;
}

#delegate-info .info-value {
  flex: 1;
  color: #333;
  white-space: pre-line;
}

#delegate-info .info-value a {
  color: #2e3a82;
  font-weight: 600;
  text-decoration: underline;
}

#delegate-info .info-value a:hover,
#delegate-info .info-value a:focus {
  color: #232d66;
}

@media (max-width: 576px) {
  #delegate-info .info-item {
    flex-direction: column;
    gap: 0.25rem;
  }

  #delegate-info .info-label {
    flex: none;
  }
}
