table {
  border-collapse: collapse;
  margin-top: 1em;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  margin: 40px;
}

h1 {
  color: #800020;
  margin-bottom: 0.5em;
}

.site-header {
  background-color: #7a1f1f;
  padding: 30px 40px;
  margin: -40px -40px 30px -40px;
}

.main-title {
  color: white;
  line-height: 1.2;
  margin-bottom: 20px;
  background-color: #7a1f1f;
}

.title-line-1 {
  display: block;
  font-size: 2.2rem;
  font-weight: 600;
}

.title-line-2 {
  display: block;
  font-size: 1.2rem;
  font-weight: normal;
  margin-top: 4px;
}

p {
  color: #333;
}


th, td {
  padding: 6px;
  text-align: center;
}

th {
  background-color: #f0f0f0;
}

.credit-info {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  max-width: 700px;
  font-size: 14px;
  color: #333;
}

.credit-info h2 {
  color: #7a1f1f; /* same dark red as your main heading */
  font-size: 18px;
  margin-bottom: 10px;
}

.credit-info a {
  color: #7a1f1f;
  text-decoration: none;
}

.credit-info a:hover {
  text-decoration: underline;
}

.table-help {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
  color: #555;
}

.table-help button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #7a1f1f;
  background-color: white;
  color: #7a1f1f;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.table-help button:hover {
  background-color: #7a1f1f;
  color: white;
}

.primary-button {
  background-color: white;
  color: #7a1f1f;
  border: 1px solid #7a1f1f;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.primary-button:hover {
  background-color: #7a1f1f;
  color: white;
}

.primary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.primary-button {
  margin-top: 12px;
  margin-right: 8px;
}

.step-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  margin-top: 20px;
  color: #333;
}

.step-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #7a1f1f;
  color: #7a1f1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
}

.step-separator {
  border: none;               /* Remove default border */
  border-top: 1px solid #ddd; /* Light gray line */
  margin: 20px 0;             /* Spacing above and below */
  width: 100%;                /* Full width */
}

input[type="checkbox"] {
  accent-color: #7a1f1f;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

input[type="checkbox"]:hover {
  transform: scale(1.1);
  transition: transform 0.1s ease;
}

/* Tooltip container */
.tooltip {
  position: relative;
  cursor: help;
}

/* Tooltip text */
.tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: 260px;
  background-color: #FAEBEB;
  color: black;
  text-align: center;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.4;

  position: absolute;
  z-index: 10;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);

  transition: opacity 0.2s ease;
}

/* Small arrow */
.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: #FAEBEB transparent transparent transparent;
}

/* Show tooltip on hover */
.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
/* Prevent tooltips from overflowing at page edges */
th.tooltip {
  white-space: normal;
}

/* Last column: align tooltip to the right */
th.tooltip:last-child .tooltip-text {
  left: auto;
  right: 0;
  transform: none;
}

/* Second-to-last column (optional, safer) */
th.tooltip:nth-last-child(2) .tooltip-text {
  left: auto;
  right: 0;
  transform: none;
}

/* Adjust arrow position when right-aligned */
th.tooltip:last-child .tooltip-text::after,
th.tooltip:nth-last-child(2) .tooltip-text::after {
  left: auto;
  right: 12px;
  margin-left: 0;
}
