.hcc-tyrefinder {
  margin: 24px 0 48px;
}

.hcc-tyrefinder__panel {
  position: relative;
  padding: 30px;
  border: 1px solid #e7e7e7;
  border-radius: 0;
  background: linear-gradient(180deg, #fafafa 0, #ffffff 120px);
  overflow: hidden;
}

.hcc-tyrefinder__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #ec4249;
}

.hcc-tyrefinder__intro {
  max-width: 720px;
  margin: 0 auto 26px;
  text-align: center;
}

.hcc-tyrefinder__title {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
}

.hcc-tyrefinder__subtitle {
  margin: 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.6;
}

.hcc-tyrefinder__alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff4d4;
  color: #7a5200;
  font-size: 14px;
}

.hcc-tyrefinder__form {
  display: block;
}

.hcc-tyrefinder__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hcc-tyrefinder__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hcc-tyrefinder__label {
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hcc-tyrefinder__select {
  height: 48px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  box-shadow: none;
}

.hcc-tyrefinder__actions {
  margin-top: 22px;
  text-align: center;
}

.hcc-tyrefinder__submit {
  min-width: 220px;
  min-height: 48px;
  border-radius: 0;
  font-weight: 600;
}

.hcc-tyrefinder__submit:hover,
.hcc-tyrefinder__submit:focus {
  color: inherit;
}

@media (max-width: 991px) {
  .hcc-tyrefinder__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .hcc-tyrefinder__panel {
    padding: 20px;
  }

  .hcc-tyrefinder__grid {
    grid-template-columns: 1fr;
  }

  .hcc-tyrefinder__submit {
    width: 100%;
  }
}
