.thermometer-maker {
  font-family: var(--body-font, 'Rubik', sans-serif);
  color: var(--paragraph-color, #333);
}

/* ── Hero ────────────────────────────────────────────────── */
.thermometer-maker .tm-hero {
  padding: 80px 0 40px;
  text-align: center;
  margin-top:80px;
}
.thermometer-maker .tm-hero .title {
  font-family: var(--heading-font, 'Poppins', sans-serif);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--heading-color, #272b2e);
}
.thermometer-maker .tm-hero .title span {
  color: var(--main-color-one, #d35831);
}
.thermometer-maker .tm-hero p {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── Tool Section ────────────────────────────────────────── */
.thermometer-maker .tm-tool {
  padding: 40px 0 60px;
}

/* Form controls */
.thermometer-maker .tm-form-group {
  margin-bottom: 20px;
}
.thermometer-maker .tm-form-group label {
  display: block;
  font-family: var(--heading-font, 'Poppins', sans-serif);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  color: var(--heading-color, #272b2e);
}
.thermometer-maker .tm-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #dce1e8;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.2s;
}
.thermometer-maker .tm-input-wrap:focus-within {
  border-color: var(--main-color-one, #d35831);
  box-shadow: 0 0 0 3px rgba(211, 88, 49, 0.1);
}
.thermometer-maker .tm-input-prefix {
  padding: 0 0 0 14px;
  font-weight: 600;
  color: #97a1b3;
  user-select: none;
}
.thermometer-maker .tm-input-wrap input[type='text'],
.thermometer-maker .tm-input-wrap input[type='number'] {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: var(--body-font, 'Rubik', sans-serif);
  background: transparent;
  min-width: 0;
}

/* Color pickers */
.thermometer-maker .tm-colors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.thermometer-maker .tm-color-group {
  text-align: center;
}
.thermometer-maker .tm-color-group label {
  display: block;
  font-family: var(--heading-font, 'Poppins', sans-serif);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: var(--heading-color, #272b2e);
}
.thermometer-maker .tm-color-swatch {
  width: 48px;
  height: 48px;
  border: 2px solid #dce1e8;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  margin: 0 auto;
  display: block;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.thermometer-maker .tm-color-swatch:hover {
  border-color: var(--main-color-one, #d35831);
  box-shadow: 0 0 0 3px rgba(211, 88, 49, 0.12);
}

/* Logo upload */
.thermometer-maker .tm-logo-upload {
  position: relative;
}
.thermometer-maker .tm-logo-upload .tm-file-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 2px dashed #dce1e8;
  border-radius: 6px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
  font-size: 0.9rem;
  color: #97a1b3;
}
.thermometer-maker .tm-logo-upload .tm-file-label:hover {
  border-color: var(--main-color-one, #d35831);
  background: rgba(211, 88, 49, 0.03);
}
.thermometer-maker .tm-logo-upload .tm-file-label i {
  font-size: 1.2rem;
}
.thermometer-maker .tm-logo-upload input[type='file'] {
  display: none;
}
.thermometer-maker .tm-logo-preview {
  margin-top: 8px;
  max-height: 40px;
  border-radius: 4px;
}
.thermometer-maker .tm-logo-remove {
  background: none;
  border: none;
  color: var(--main-color-one, #d35831);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px 0;
  margin-top: 4px;
}

/* Style selector */
.thermometer-maker .tm-styles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.thermometer-maker .tm-style-card {
  position: relative;
  text-align: center;
  padding: 16px 8px;
  border: 2px solid #dce1e8;
  border-radius: 8px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
  background: #fff;
}
.thermometer-maker .tm-style-card:hover {
  border-color: #bfc5ce;
}
.thermometer-maker .tm-style-card.active {
  border-color: var(--main-color-one, #d35831);
  background: rgba(211, 88, 49, 0.04);
  box-shadow: 0 0 0 3px rgba(211, 88, 49, 0.1);
}
.thermometer-maker .tm-style-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.thermometer-maker .tm-style-card .tm-style-icon {
  font-size: 2rem;
  margin-bottom: 6px;
  display: block;
}
.thermometer-maker .tm-style-card .tm-style-label {
  font-family: var(--heading-font, 'Poppins', sans-serif);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--heading-color, #272b2e);
}

/* ── Canvas Preview ──────────────────────────────────────── */
.thermometer-maker .tm-preview-wrap {
  position: sticky;
  top: 100px;
  border: 1px solid #e4e7eb;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.thermometer-maker .tm-preview-wrap canvas {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ── Export Section ───────────────────────────────────────── */
.thermometer-maker .tm-exports {
  padding: 40px 0 20px;
}
.thermometer-maker .tm-export-heading {
  font-family: var(--heading-font, 'Poppins', sans-serif);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--heading-color, #272b2e);
  margin-bottom: 24px;
  text-align: center;
}
.thermometer-maker .tm-export-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 30px;
}
.thermometer-maker .tm-export-buttons .btn {
  min-width: 200px;
  font-family: var(--heading-font, 'Poppins', sans-serif);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.thermometer-maker .tm-export-buttons .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.thermometer-maker .btn-embed {
  background: var(--secondary-color, #30373f);
  color: #fff;
  border: none;
}

/* Embed code area */
.thermometer-maker .tm-embed-area {
  display: none;
  margin-top: 20px;
}
.thermometer-maker .tm-embed-area.visible {
  display: block;
  animation: tmSlideDown 0.3s ease-out;
}
.thermometer-maker .tm-embed-wrap {
  position: relative;
}
.thermometer-maker .tm-embed-wrap textarea {
  width: 100%;
  height: 180px;
  font-family: monospace;
  font-size: 0.82rem;
  padding: 14px;
  border: 1px solid #dce1e8;
  border-radius: 8px;
  background: #f9fafb;
  resize: vertical;
  color: var(--paragraph-color, #333);
}
.thermometer-maker .tm-embed-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--main-color-one, #d35831);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.thermometer-maker .tm-embed-copy:hover {
  background: #b84a29;
}

/* Embed code notice */
.thermometer-maker .tm-embed-notice {
  margin-top: 12px;
  padding: 12px 16px;
  background: #fff8f0;
  border: 1px solid #f0d8c0;
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #7a5a3a;
}
.thermometer-maker .tm-embed-notice i {
  color: var(--main-color-one, #d35831);
  margin-right: 4px;
}
.thermometer-maker .tm-embed-notice code {
  background: #f5efe8;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.82rem;
}

/* ── Email Gate Section ──────────────────────────────────── */
.thermometer-maker .tm-email-gate {
  display: none;
  padding: 40px 0;
}
.thermometer-maker .tm-email-gate.visible {
  display: block;
  animation: tmSlideDown 0.4s ease-out;
}
.thermometer-maker .tm-email-gate-inner {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e4e7eb;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.thermometer-maker .tm-email-gate-inner h3 {
  font-family: var(--heading-font, 'Poppins', sans-serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--heading-color, #272b2e);
  margin-bottom: 8px;
}
.thermometer-maker .tm-email-gate-inner p {
  color: #97a1b3;
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.thermometer-maker .tm-email-status {
  text-align: center;
  padding: 20px;
  font-weight: 600;
  border-radius: 8px;
  margin-top: 16px;
  display: none;
}
.thermometer-maker .tm-email-status.success {
  display: block;
  background: #eafaf1;
  color: #1a7f4b;
}
.thermometer-maker .tm-email-status.error {
  display: block;
  background: #fdf0ef;
  color: #c0392b;
}
.thermometer-maker .tm-email-status.sending {
  display: block;
  background: #f0f4ff;
  color: #2b71e8;
}

/* ── CTA Section ─────────────────────────────────────────── */
.thermometer-maker .tm-cta {
  background: linear-gradient(135deg, #d35831 0%, #b84a29 100%);
  padding: 80px 0;
  text-align: center;
  margin-top: 40px;
}
.thermometer-maker .tm-cta h2 {
  font-family: var(--heading-font, 'Poppins', sans-serif);
  font-weight: 700;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 16px;
}
.thermometer-maker .tm-cta p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
  line-height: 1.7;
}
.thermometer-maker .tm-cta .btn-cta {
  display: inline-block;
  padding: 16px 40px;
  background: #fff;
  color: var(--main-color-one, #d35831);
  font-family: var(--heading-font, 'Poppins', sans-serif);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  border: none;
}
.thermometer-maker .tm-cta .btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ── Scroll sentinel (invisible) ─────────────────────────── */
.thermometer-maker .tm-scroll-sentinel {
  height: 1px;
  width: 1px;
  pointer-events: none;
  visibility: hidden;
}

/* ── Animation ────────────────────────────────────────────── */
@keyframes tmSlideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991px) {
  .thermometer-maker .tm-preview-wrap {
    position: static;
    margin-top: 30px;
  }
  .thermometer-maker .tm-hero .title {
    font-size: 2rem;
  }
  .thermometer-maker .tm-colors {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 575px) {
  .thermometer-maker .tm-hero {
    padding: 50px 0 24px;
  }
  .thermometer-maker .tm-hero .title {
    font-size: 1.6rem;
  }
  .thermometer-maker .tm-styles {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }
  .thermometer-maker .tm-style-card {
    padding: 12px 4px;
  }
  .thermometer-maker .tm-export-buttons {
    flex-direction: column;
  }
  .thermometer-maker .tm-export-buttons .btn {
    min-width: unset;
    width: 100%;
  }
  .thermometer-maker .tm-cta {
    padding: 50px 0;
  }
  .thermometer-maker .tm-cta h2 {
    font-size: 1.5rem;
  }
  .thermometer-maker .tm-email-gate-inner {
    padding: 24px;
  }
}
