.hmrt-app,
.hmrt-app * {
  box-sizing: border-box;
}

.hmrt-app {
  --hmrt-blue: #2563eb;
  --hmrt-navy: #102a56;
  --hmrt-line: #dce5f2;
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 70px;
  color: #14213d;
  font-family: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hmrt-hero {
  padding: 48px clamp(24px, 6vw, 70px);
  color: #fff;
  background: linear-gradient(135deg, #0f2c66, #2563eb 58%, #62a6ff);
  border-radius: 24px;
  box-shadow: 0 22px 55px rgba(37, 99, 235, .2);
}

.hmrt-kicker {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  opacity: .8;
}

.hmrt-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -.055em;
}

.hmrt-hero p {
  max-width: 700px;
  margin: 0;
  font-size: 16px;
  opacity: .88;
}

.hmrt-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0 14px;
}

.hmrt-tabs button,
.hmrt-form button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.hmrt-tabs button {
  min-height: 52px;
  color: #5a6980;
  background: #f3f6fb;
  border: 1px solid var(--hmrt-line);
  border-radius: 13px;
}

.hmrt-tabs button.is-active {
  color: #fff;
  background: var(--hmrt-blue);
  border-color: var(--hmrt-blue);
}

.hmrt-panel {
  display: none;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--hmrt-line);
  border-radius: 17px;
  box-shadow: 0 10px 28px rgba(15, 42, 86, .06);
}

.hmrt-panel.is-active {
  display: block;
}

.hmrt-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(130px, .6fr) 150px;
  gap: 12px;
  align-items: end;
}

.hmrt-form-wide {
  grid-template-columns: 1.2fr .7fr 1fr 1fr .55fr 140px;
}

.hmrt-form label {
  display: grid;
  gap: 6px;
  color: #526077;
  font-size: 12px;
  font-weight: 800;
}

.hmrt-form input,
.hmrt-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: #17233a;
  background: #fff;
  border: 1px solid #cdd8e8;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
}

.hmrt-form input:focus,
.hmrt-form select:focus {
  outline: 3px solid rgba(37, 99, 235, .12);
  border-color: var(--hmrt-blue);
}

.hmrt-form button {
  min-height: 46px;
  color: #fff;
  background: var(--hmrt-blue);
  border-radius: 10px;
}

.hmrt-form button:disabled {
  opacity: .55;
  cursor: wait;
}

.hmrt-help,
.hmrt-notice {
  color: #6b778b;
  font-size: 12px;
}

.hmrt-help {
  margin: 12px 0 0;
}

.hmrt-status {
  margin: 20px 0 12px;
  padding: 14px 17px;
  color: #314460;
  background: #eff6ff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 750;
}

.hmrt-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hmrt-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--hmrt-line);
  border-radius: 16px;
  box-shadow: 0 9px 24px rgba(15, 42, 86, .055);
}

.hmrt-card > img {
  width: calc(100% + 36px);
  height: 160px;
  margin: -18px -18px 16px;
  object-fit: cover;
  background: #eef3f8;
}

.hmrt-card-kicker {
  color: var(--hmrt-blue);
  font-size: 11px;
  font-weight: 850;
}

.hmrt-card h3 {
  margin: 8px 0 7px;
  color: var(--hmrt-navy);
  font-size: 18px;
  line-height: 1.4;
}

.hmrt-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #657187;
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hmrt-price {
  display: block;
  margin-top: 14px;
  color: #111827;
  font-size: 19px;
}

.hmrt-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: auto;
  padding: 10px 14px;
  color: #fff !important;
  background: var(--hmrt-blue);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none !important;
}

.hmrt-notice {
  margin: 22px 0 0;
  padding: 15px 17px;
  background: #f7f9fc;
  border-radius: 12px;
}

@media (max-width: 900px) {
  .hmrt-form,
  .hmrt-form-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hmrt-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .hmrt-app {
    width: min(100% - 22px, 1120px);
    margin-top: 12px;
  }

  .hmrt-hero {
    padding: 34px 22px;
    border-radius: 18px;
  }

  .hmrt-tabs,
  .hmrt-form,
  .hmrt-form-wide,
  .hmrt-results {
    grid-template-columns: 1fr;
  }

  .hmrt-panel {
    padding: 16px;
  }
}
