.input {
  display: block;
  width: 100%;
  color: var(--ens-dark-blue);
  border-radius: 4px;
  font-weight: 500;
  line-height: 96%;
  box-sizing: border-box;
  font-family: var(--ens-mono), monospace;
  border: 2px solid var(--ens-light-blue);

  background-color: var(--ens-white);
  font-size: 24px;
  padding: 20px;
  outline: none;

  transition: all 0.2s ease;
}

.input::placeholder {
  color: var(--ens-blue);
  opacity: 0.3;
}

.input:placeholder-shown {
  background-color: var(--ens-light-blue);

  border-color: transparent;
}

.input:focus-visible {
  background-color: var(--ens-white);
  border-color: var(--ens-blue);
}

.input-invalid {
  border-color: var(--ens-magenta) !important;
}

.icon {
  position: absolute;
  right: 20px;
  top: calc(50% - 20px / 2);
  height: 20px;
  width: 20px;
  background: transparent;
  padding: 0;
  color: var(--ens-blue);
}
.icon > svg {
  height: 100%;
  width: 100%;
}

.container {
  width: 100%;
  gap: 20px;
  margin-top: 50px;
}

.captionContainer {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
}

.caption {
  font-weight: 500;
  font-family: var(--ens-mono);
  color: var(--ens-dark-blue);

  font-size: 14px;
  letter-spacing: -0.28px;
  line-height: 96%;
}

.searchboxContainer {
  gap: 10px;
  width: 100%;
}

.inputContainer {
  color: var(--ens-blue);
  position: relative;
  width: 100%;
}

.tlds {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.tlds > a {
  padding: 12px;
  border-radius: 4px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  margin-top: 10px;
}

.tlds > a.registered {
  background-color: var(--ens-light-blue);
}

.tlds > a.available {
  background-color: var(--ens-light-green);
}

.tlds > a > span:first-child {
  font-weight: 500;
  color: var(--ens-dark-blue);
  line-height: 96%;
  font-size: 18px;
}

.tlds > a > span:last-child {
  font-size: 12px;
  font-family: var(--ens-mono);
}

.tlds > a.registered > span:last-child {
  color: var(--ens-blue);
}

.tlds > a.available > span:last-child {
  color: var(--ens-green);
}

.spinner {
  height: 20px;
  width: 20px;
}

.invalid {
  background-color: var(--ens-light-magenta);
  color: var(--ens-dark-blue);
  font-weight: 500;
  padding: 12px;
  border-radius: 4px;
  font-size: 18px;
  text-align: center;

  width: 100%;
  margin-top: 10px;
}

@media (min-width: 768px) {
  .input {
    padding: 20px 24px;
    font-size: 52px;
  }
  .icon {
    height: 34px;
    width: 34px;
    top: calc(50% - 34px / 2);
    right: 24px;
  }
  .container {
    gap: 28px;
    margin-top: 60px;
  }
  .caption {
    letter-spacing: 0.4px;
    font-size: 20px;
  }
  .tlds {
    position: absolute;
    gap: 20px;
    right: 20px;
    top: calc(50% - 41.2px / 2);
  }
  .invalid {
    top: calc(50% - 49.5px / 2);
  }
  .tlds > a {
    justify-content: flex-start;
    gap: 20px;
  }
  .invalid,
  .tlds > a {
    width: max-content;
    margin-top: unset;
  }
  .spinner {
    width: 36px;
    height: 36px;
  }
}

@media (min-width: 1280px) {
  .input {
    padding: 28px;
    font-size: 76px;
  }
  .icon {
    top: calc(50% - 56px / 2);
    width: max-content;
    height: max-content;
    right: 28px;
  }
  .container {
    gap: 40px;
  }
  .caption {
    line-height: 96%;
    letter-spacing: -0.4px;
    font-size: 20px;
  }
  .tlds {
    gap: 28px;
    right: 28px;
    top: calc(50% - 66px / 2);
  }
  .tlds > a {
    padding: 16px 20px;
  }
  .tlds > a > span:first-child,
  .invalid {
    font-size: 30px;
  }
  .spinner {
    width: 58px;
    height: 58px;
  }
}
