.a42-travel {
  --a42-green: #47751f;
  --a42-dark: #142709;
  --a42-soft: #edf6e7;
  --a42-yellow: #ffd47d;
  --a42-border: #d8dfd2;
  color: #252722;
  font-family: "Source Sans 3", sans-serif;
  max-width: 880px;
}

.a42-travel *,
.a42-travel *::before,
.a42-travel *::after {
  box-sizing: border-box;
}

.a42-travel__form,
.a42-travel__result {
  background: #fff;
  border: 1px solid var(--a42-border);
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(20, 39, 9, 0.08);
  padding: clamp(20px, 4vw, 34px);
}

.a42-travel__fieldset {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
}

.a42-travel__fieldset legend,
.a42-travel label > span {
  color: var(--a42-dark);
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.a42-travel__radio {
  cursor: pointer;
  display: inline-flex;
  margin: 8px 8px 0 0;
  position: relative;
}

.a42-travel__radio input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.a42-travel__radio span {
  background: #fff;
  border: 2px solid var(--a42-border);
  border-radius: 999px;
  margin: 0;
  min-width: 105px;
  padding: 10px 20px;
  text-align: center;
}

.a42-travel__radio input:checked + span {
  background: var(--a42-soft);
  border-color: var(--a42-green);
  color: var(--a42-dark);
}

.a42-travel__radio input:focus-visible + span,
.a42-travel input:focus-visible,
.a42-travel select:focus-visible,
.a42-travel button:focus-visible,
.a42-travel__submit:focus-visible {
  outline: 3px solid rgba(71, 117, 31, 0.28);
  outline-offset: 2px;
}

.a42-travel__destinations {
  display: grid;
  gap: 14px;
}

.a42-travel__destination {
  background: #fafbf8;
  border: 1px solid var(--a42-border);
  border-radius: 16px;
  padding: 18px 18px 16px 54px;
  position: relative;
}

.a42-travel__number {
  align-items: center;
  background: var(--a42-green);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  left: 16px;
  position: absolute;
  top: 28px;
  width: 28px;
}

.a42-travel__fields {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 2fr) minmax(145px, 1fr) 34px;
}

.a42-travel label small {
  color: #73776f;
  font-size: 12px;
  font-weight: 400;
}

.a42-travel__fields input {
  background: #fff;
  border: 2px solid var(--a42-border);
  border-radius: 12px;
  color: #252722;
  font: inherit;
  min-height: 50px;
  padding: 11px 14px;
  width: 100%;
}

.a42-travel__fields input:focus {
  border-color: var(--a42-green);
}

.a42-travel__remove {
  align-self: end;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: #747a70;
  cursor: pointer;
  font: 400 27px/1 sans-serif;
  height: 42px;
  margin-bottom: 4px;
  width: 34px;
}

.a42-travel__remove:hover {
  background: #fff1ef;
  color: #9d2f22;
}

.a42-travel__row-actions {
  align-items: center;
  color: #62675e;
  display: flex;
  font-size: 14px;
  gap: 14px;
  justify-content: space-between;
  margin-top: 14px;
}

.a42-travel__add {
  background: #fff;
  border: 2px solid var(--a42-green);
  border-radius: 999px;
  color: var(--a42-dark);
  cursor: pointer;
  font: 700 15px/1 "Source Sans 3", sans-serif;
  min-height: 42px;
  padding: 10px 18px;
}

.a42-travel__add:hover {
  background: var(--a42-soft);
}

.a42-travel__add:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.a42-travel__choice {
  margin-top: 14px;
}

.a42-travel__choice select {
  background: #fff;
  border: 2px solid #c08a22;
  border-radius: 10px;
  color: #252722;
  font: inherit;
  min-height: 46px;
  padding: 8px 12px;
  width: 100%;
}

.a42-travel__item-result {
  border-radius: 10px;
  line-height: 1.4;
  margin-top: 12px;
}

.a42-travel__item-result.is-success {
  align-items: center;
  background: var(--a42-soft);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 13px 16px;
}

.a42-travel__item-result.is-error,
.a42-travel__item-result.is-warning,
.a42-travel__item-result.is-pending {
  padding: 10px 13px;
}

.a42-travel__item-result.is-error {
  background: #fff1ef;
  color: #76291d;
}

.a42-travel__item-result.is-warning {
  background: #fff7df;
  color: #694a0b;
}

.a42-travel__item-result.is-pending {
  background: #eef4fa;
  color: #284b67;
}

.a42-travel__item-label {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.a42-travel__item-time {
  color: var(--a42-green);
  font: 900 28px/1.1 "Nunito", sans-serif;
  margin-right: 8px;
}

.a42-travel__item-distance {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.a42-travel__minimum {
  background: #dceacf;
  border-radius: 999px;
  color: #3e6420;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  vertical-align: 4px;
}

.a42-travel__submit {
  background: var(--a42-yellow);
  border: 0;
  border-radius: 999px;
  color: var(--a42-dark);
  cursor: pointer;
  font: 800 17px/1 "Nunito", sans-serif;
  margin-top: 24px;
  min-height: 52px;
  padding: 15px 26px;
}

.a42-travel__submit:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}

.a42-travel__submit:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.a42-travel__note,
.a42-travel__route {
  color: #62675e;
  font-size: 14px;
  line-height: 1.45;
  margin: 14px 0 0;
}

.a42-travel__attribution {
  align-items: center;
  color: #62675e;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 7px;
  margin-top: 12px;
}

.a42-travel__attribution a {
  color: inherit;
}

.a42-travel__attribution img {
  display: block;
  height: 20px;
  width: auto;
}

.a42-travel__result {
  margin-top: 18px;
}

.a42-travel__result.is-success {
  background: var(--a42-soft);
  border-color: #b8cea8;
}

.a42-travel__result.is-error {
  background: #fff1ef;
  border-color: #e5b9b2;
  color: #76291d;
}

.a42-travel__result.is-warning {
  background: #fff7df;
  border-color: #e5c775;
  color: #694a0b;
}

.a42-travel__result p {
  margin-bottom: 0;
}

.a42-travel__result-label {
  color: var(--a42-dark);
  font-weight: 700;
  margin-top: 0;
}

.a42-travel__time {
  color: var(--a42-green);
  display: block;
  font: 900 clamp(36px, 8vw, 56px)/1.08 "Nunito", sans-serif;
  margin-top: 5px;
}

.a42-travel__distance {
  font-size: 18px;
  margin-top: 12px;
}

@media (max-width: 560px) {
  .a42-travel__destination {
    padding: 54px 14px 14px;
  }

  .a42-travel__number {
    left: 14px;
    top: 14px;
  }

  .a42-travel__fields {
    grid-template-columns: 1fr;
  }

  .a42-travel__remove {
    margin: 0;
    position: absolute;
    right: 12px;
    top: 10px;
  }

  .a42-travel__item-result.is-success {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .a42-travel__submit {
    width: 100%;
  }
}
