.nest-tm-form-section {
  padding: clamp(56px, 7vw, 96px) 0;
  background:
    radial-gradient(circle at 8% 14%, rgba(125, 200, 245, 0.2) 0%, transparent 44%),
    radial-gradient(circle at 88% 88%, rgba(192, 146, 82, 0.12) 0%, transparent 36%),
    linear-gradient(164deg, #f9fcff 0%, #edf4fc 100%);
}

.nest-tm-form-shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  border: 1px solid rgba(13, 94, 168, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 50px rgba(9, 24, 40, 0.1);
  padding: clamp(24px, 4vw, 42px);
}

.nest-tm-form-intro {
  margin-bottom: 28px;
  text-align: center;
}

.nest-tm-kicker {
  margin: 0 0 10px;
  color: #0d5ea8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nest-tm-form-intro h1 {
  margin: 0;
  color: #091828;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
}

.nest-tm-form-intro p:not(.nest-tm-kicker) {
  max-width: 560px;
  margin: 14px auto 0;
  color: rgba(9, 24, 40, 0.7);
  line-height: 1.7;
}

.nest-tm-message {
  margin: 0 0 22px;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 700;
}

.nest-tm-message--success {
  border: 1px solid rgba(30, 132, 73, 0.22);
  background: rgba(30, 132, 73, 0.1);
  color: #166238;
}

.nest-tm-message--error {
  border: 1px solid rgba(175, 45, 45, 0.22);
  background: rgba(175, 45, 45, 0.1);
  color: #982f2f;
}

.nest-tm-form {
  display: grid;
  gap: 18px;
}

.nest-tm-form label,
.nest-tm-choice {
  display: grid;
  gap: 8px;
  margin: 0;
}

.nest-tm-form label > span,
.nest-tm-choice legend {
  color: #091828;
  font-size: 0.88rem;
  font-weight: 800;
}

.nest-tm-form input[type="text"],
.nest-tm-form textarea {
  width: 100%;
  border: 1px solid rgba(13, 94, 168, 0.18);
  border-radius: 14px;
  background: #fff;
  color: #091828;
  font: inherit;
  padding: 14px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nest-tm-form textarea {
  resize: vertical;
}

.nest-tm-form input[type="text"]:focus,
.nest-tm-form textarea:focus {
  border-color: #0d5ea8;
  box-shadow: 0 0 0 4px rgba(13, 94, 168, 0.12);
  outline: none;
}

.nest-tm-choice {
  border: 0;
  padding: 0;
}

.nest-tm-choice label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-right: 14px;
  font-weight: 700;
}

.nest-tm-locked-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(13, 94, 168, 0.18);
  border-radius: 14px;
  background: rgba(13, 94, 168, 0.06);
  color: #091828;
  padding: 14px 15px;
}

.nest-tm-locked-type span {
  font-size: 0.88rem;
  font-weight: 800;
}

.nest-tm-locked-type strong {
  border-radius: 999px;
  background: #0d5ea8;
  color: #fff;
  font-size: 0.82rem;
  line-height: 1;
  padding: 8px 12px;
}

.nest-tm-rating-field {
  display: grid;
  gap: 8px;
  border: 0;
  margin: 0;
  padding: 0;
}

.nest-tm-rating-field legend {
  color: #091828;
  font-size: 0.88rem;
  font-weight: 800;
}

.nest-tm-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  width: fit-content;
  gap: 4px;
}

.nest-tm-stars input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nest-tm-stars label {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #c8d3df;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: color 0.18s ease, transform 0.18s ease;
}

.nest-tm-stars label:hover,
.nest-tm-stars label:hover ~ label,
.nest-tm-stars input:checked ~ label {
  color: #c09252;
}

.nest-tm-stars input:focus-visible + label {
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(13, 94, 168, 0.14);
}

.nest-tm-stars label:hover {
  transform: translateY(-1px);
}

.nest-tm-consent {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px;
  color: rgba(9, 24, 40, 0.7);
  font-size: 0.92rem;
  line-height: 1.5;
}

.nest-tm-submit {
  width: fit-content;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .nest-tm-form-shell {
    width: min(100% - 20px, 760px);
    border-radius: 18px;
  }

  .nest-tm-submit {
    width: 100%;
  }
}
