/* Short hero textareas + section scroll rail */

.hero-form-container h3.request_appointment {
  margin: 0 0 0.55rem !important;
  font-size: 1.15rem !important;
  line-height: 1.2 !important;
}

.hero-form-container .wpcf7 p {
  margin: 0 0 0.45rem !important;
}

.hero-form-container .wpcf7 br {
  display: none;
}

.hero-form-container .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 0.45rem;
}

@media (min-width: 993px) {
  .hero-form-container textarea,
  .hero-form-container textarea.wpcf7-textarea,
  .hero-form-container .wpcf7-form textarea {
    display: block !important;
    width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0.35rem 0.75rem !important;
    margin: 0 0 0.45rem !important;
    line-height: 1.25 !important;
    resize: none !important;
    overflow: hidden !important;
    field-sizing: fixed;
  }

  .hero-form-container textarea[name="your-details"] {
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    overflow-y: auto !important;
    resize: vertical !important;
  }

  .hero-form-container .wpcf7-form input[type="text"],
  .hero-form-container .wpcf7-form input[type="email"],
  .hero-form-container .wpcf7-form input[type="tel"],
  .hero-form-container .wpcf7-form select {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0.3rem 0.75rem !important;
    margin-bottom: 0.45rem !important;
  }
}

/* Nifty scroll: section progress rail */
.section-rail {
  position: fixed;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.65rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(8px);
}

.section-rail-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
  position: relative;
  transition: background 0.25s ease, transform 0.25s ease, height 0.25s ease;
}

.section-rail-dot.is-active {
  background: #c41e1e;
  height: 22px;
  border-radius: 999px;
}

.section-rail-dot:hover {
  background: #f87171;
}

.section-rail-dot::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 0.55rem);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.28rem 0.5rem;
  border-radius: 0.35rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.section-rail-dot:hover::after,
.section-rail-dot.is-active::after {
  opacity: 1;
}

/* Stronger reveal motion */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(4px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (max-width: 992px) {
  .section-rail {
    display: none;
  }

  .hero-form-container textarea,
  .hero-form-container textarea.wpcf7-textarea {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    resize: none !important;
  }

  .hero-form-container textarea[name="your-details"] {
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    filter: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .section-rail {
    display: none;
  }
}
