.track-layout {
  padding-bottom: 80px;
}

.track-form-card,
.track-result-card {
  background: #fff;
  border: 1px solid rgba(19, 78, 74, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(19, 78, 74, 0.06);
  padding: 28px 24px;
  min-width: 0;
  max-width: 100%;
}

.track-result-card {
  min-height: 100%;
}

.track-hint,
.track-empty,
.track-error {
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.7;
}

.track-hint {
  background: var(--green-bg);
  color: var(--green-dark);
}

.track-empty,
.track-error {
  background: rgba(176, 28, 28, 0.08);
  color: #8d1d1d;
}

.track-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.track-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(19, 78, 74, 0.1);
  color: var(--green);
  font-weight: 800;
}

.track-meta {
  color: var(--text-gray);
  font-size: 14px;
}

.track-group + .track-group {
  margin-top: 22px;
}

.track-group h3 {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 800;
}

.track-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.track-field {
  background: #f7faf9;
  border-radius: 14px;
  padding: 12px 14px;
}

.track-field span {
  display: block;
  color: var(--text-gray);
  font-size: 13px;
  margin-bottom: 4px;
}

.track-field strong {
  display: block;
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 700;
  word-break: break-word;
}

.track-timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
  display: flex;
  flex-direction: column;
}

.track-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: flex-start;
  padding: 0 0 18px;
  background: transparent;
  border-radius: 0;
}

.track-timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: 13px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: #1f8f6a;
}

.track-timeline li:last-child {
  padding-bottom: 0;
}

.track-timeline li:last-child::before {
  content: none;
}

.track-step__mark {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #145E4E;
  box-shadow: 0 0 0 4px #fff;
}

.track-timeline .is-done .track-step__mark::after {
  content: "";
  width: 6px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-1px, -1px);
}

.track-timeline .is-current .track-step__mark {
  background: #fff;
  border: 3px solid #145E4E;
  box-shadow: 0 0 0 4px rgba(20, 94, 78, 0.16);
}

.track-timeline .is-current .track-step__mark::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #145E4E;
}

.track-step__body {
  min-width: 0;
  padding-top: 2px;
}

.track-step__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.track-timeline strong {
  display: block;
  color: #123831;
  font-size: 15px;
  font-weight: 800;
}

.track-step__state {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e5f6ef;
  color: #0f6b4c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.track-timeline .is-current .track-step__state {
  background: #145E4E;
  color: #fff;
}

.track-timeline .is-current .track-step__body {
  background: #f3faf7;
  border-radius: 12px;
  padding: 8px 10px;
  margin-top: -4px;
}

.track-timeline small {
  display: block;
  margin-top: 3px;
  color: var(--text-gray);
  font-size: 13px;
}

.track-timeline time {
  color: var(--text-gray);
  font-size: 13px;
  white-space: nowrap;
  padding-top: 6px;
  direction: ltr;
  unicode-bidi: isolate;
}

@media (max-width: 991px) {
  .contact-hero {
    min-height: 320px;
    border-radius: 0 0 40px 40px;
  }

  .contact-hero .container-fluid {
    min-height: 320px;
  }

  .track-form-card,
  .track-result-card {
    padding: 18px 14px;
    border-radius: 18px;
  }
}

@media (max-width: 700px) {
  .track-layout {
    padding-bottom: 40px;
  }

  .track-fields {
    grid-template-columns: 1fr;
  }

  .track-status {
    align-items: flex-start;
  }

  .track-status-badge {
    white-space: normal;
  }

  .track-form-card .subject-options {
    flex-direction: column;
  }

  .track-form-card .subject-options .form-check {
    flex: 1 1 100%;
  }

  .track-timeline li {
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 10px;
  }

  .track-timeline strong {
    overflow-wrap: anywhere;
  }

  .track-timeline time {
    grid-column: 2;
    padding-top: 2px;
    white-space: normal;
  }
}
