.hot-tool .date-calculator {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem;
  border: 1px solid #d8dee7;
  border-radius: 0.75rem;
  background: #f8fafc;
}

.hot-tool .date-calculator h2 {
  margin-top: 0;
}

.hot-tool .date-calculator__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.hot-tool .date-calculator__field {
  display: grid;
  gap: 0.4rem;
}

.hot-tool .date-calculator label {
  font-weight: 600;
}

.hot-tool .date-calculator input[type="date"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem;
  border: 1px solid #9aa6b2;
  border-radius: 0.375rem;
  background: #fff;
  color: #17212b;
  font: inherit;
}

.hot-tool .date-calculator__option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1rem 0;
}

.hot-tool .date-calculator__option input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
  flex: 0 0 auto;
}

.hot-tool .date-calculator__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hot-tool .date-calculator button {
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  border: 1px solid #1d4ed8;
  border-radius: 0.4rem;
  background: #1d4ed8;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.hot-tool .date-calculator button:hover:not(:disabled) {
  background: #1e40af;
}

.hot-tool .date-calculator button:focus-visible,
.hot-tool .date-calculator input:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}

.hot-tool .date-calculator button:disabled {
  border-color: #7b8794;
  background: #e2e8f0;
  color: #475569;
  cursor: not-allowed;
}

.hot-tool .date-calculator__result {
  margin-top: 1rem;
  padding: 0.9rem;
  border-left: 4px solid #1d4ed8;
  background: #fff;
  overflow-wrap: anywhere;
}

.hot-tool .date-calculator__result p {
  margin: 0;
}

@media (max-width: 520px) {
  .hot-tool .date-calculator {
    padding: 1rem;
  }

  .hot-tool .date-calculator__fields {
    grid-template-columns: minmax(0, 1fr);
  }
}
