/* =========================================================
   STEP FORM BASE LAYOUT (Nominus-like)
========================================================= */

.tm-step-page {
  width: 100%;
  padding: 30px 16px 60px;
  background: #fff;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #0b1b3c;
}

/* steps header */
.tm-steps-head {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.tm-steps-line {
  display: flex;
  gap: 18px;
  align-items: center;
  position: relative;
}
.tm-steps-line::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  height: 3px;
  background: #d7e3fb;
  z-index: 0;
  border-radius: 999px;
}
.tm-step-dot {
  position: relative;
  z-index: 1;
  width: 110px;
  text-align: center;
  font-size: 12px;
  color: #6d7fa8;
}
.tm-step-dot::before {
  content: "";
  display: block;
  margin: 0 auto 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d7e3fb;
  border: 3px solid #d7e3fb;
}
.tm-step-dot.is-active {
  color: #0b4bcc;
  font-weight: 600;
}
.tm-step-dot.is-active::before {
  background: #0b4bcc;
  border-color: #0b4bcc;
}

/* main 2-col wrap */
.tm-step-wrap {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
  align-items: start;
}

/* left card */
.tm-step-card {
  border: 1px solid #cfd9ee;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.tm-step-card__header {
  background: #dbe9ff;
  border-bottom: 1px solid #cfd9ee;
  padding: 16px 18px;
  text-align: center;
}
.tm-step-card__header h2 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #0b4bcc;
}
.tm-step-card__header p {
  margin: 0;
  font-size: 12px;
  color: #0b1b3c;
  line-height: 1.5;
}
.tm-step-card__body {
  padding: 18px;
}

/* fields */
.tm-field {
  margin-bottom: 18px;
}
.tm-field--inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.tm-label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #0b1b3c;
  margin-bottom: 6px;
}
.tm-help {
  display: block;
  font-size: 11px;
  color: #6d7fa8;
  margin-bottom: 6px;
}
.tm-note {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: #4a5e89;
  line-height: 1rem;
}
.tm-good-and-services-help1 {
  line-height: 1.1rem;
  font-size: 11px;
  color: #4a5e89;
}
/* inputs */
.tm-input,
.tm-select,
.tm-textarea {
  width: 100%;
  border: 1px solid #cfd9ee;
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 13px;
  outline: none;
  transition: 0.15s ease;
  box-sizing: border-box;
  background: #fff;
}
.tm-textarea {
  resize: vertical;
  min-height: 90px;
}
.tm-input:focus,
.tm-select:focus,
.tm-textarea:focus {
  border-color: #0b4bcc;
  box-shadow: 0 0 0 2px rgba(11, 75, 204, 0.08);
}

/* trademark type cards */
.tm-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.tm-type-card {
  border: 1px solid #cfd9ee;
  background: #f7f9fe;
  cursor: pointer;
  padding: 8px;
  position: relative;
  min-height: 120px;
  transition: 0.15s ease;
}
.tm-type-card input {
  position: absolute;
  top: 8px;
  left: 8px;
}
.tm-type-card__title {
  font-size: 12px;
  font-weight: 700;
  margin-left: 18px;
}
.tm-type-card__preview {
  margin-top: 10px;
  height: 75px;
  border: 1px solid #e5ecfb;
  background: #eef3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #0b4bcc;
}
.tm-preview-logo {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4cc7ff, #0b4bcc);
}
.tm-type-card:hover {
  border-color: #0b4bcc;
}
.tm-type-card:has(input:checked) {
  background: #eef3ff;
  border-color: #0b4bcc;
  box-shadow: 0 0 0 2px rgba(11, 75, 204, 0.12) inset;
}

/* summary card */
.tm-summary-card {
  border: 1px solid #cfd9ee;
  background: #fff;
}
.tm-summary-card__head {
  background: #002e73;
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
}
.tm-summary-card__body {
  padding: 12px;
}
.tm-summary-line {
  font-size: 12px;
  margin-bottom: 8px;
}
.tm-summary-country {
  font-weight: 700;
  color: #0b4bcc;
}
.tm-summary-price {
  border-top: 1px solid #e5ecfb;
  padding-top: 10px;
  margin-top: 8px;
  font-size: 12px;
  min-height: 45px;
}

/* buttons */
.tm-btn {
  border: none;
  cursor: pointer;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  transition: 0.15s ease;
}
.tm-btn-primary {
  background: #0b4bcc;
  color: #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}
.tm-btn-primary:hover {
  background: #083ea8;
}
.tm-btn-block {
  width: 100%;
  margin-top: 10px;
}

/* small qmark */
.tm-qmark {
  display: inline-flex;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  background: #0b4bcc;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px) {
  .tm-step-wrap {
    grid-template-columns: 1fr;
  }
  .tm-summary-card {
    position: static;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .tm-type-grid {
    grid-template-columns: 1fr;
  }

  .tm-field--inline {
    flex-direction: column;
    align-items: stretch;
  }

  .tm-steps-line {
    gap: 8px;
  }
  .tm-step-dot {
    width: 68px;
    font-size: 10px;
  }
}
