/* Only the connected Road to Camp form is affected. The empty-email layout stays intact. */
.elementor .elementor-widget-form form.elementor-form[data-fjc-rtc-notify="1"] .fjc-rtc-notify-name[hidden] {
  display: none !important;
}

/* Override this widget's existing nowrap rules only while names are expanded. */
.elementor .elementor-widget-form form.elementor-form[data-fjc-rtc-notify="1"].fjc-rtc-names-open .elementor-form-fields-wrapper {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center !important;
  gap: 12px !important;
}

.elementor .elementor-widget-form form.elementor-form[data-fjc-rtc-notify="1"].fjc-rtc-names-open .elementor-field-group {
  min-width: 0 !important;
  width: 100% !important;
}

.elementor .elementor-widget-form form.elementor-form[data-fjc-rtc-notify="1"].fjc-rtc-names-open .elementor-field-type-email,
.elementor .elementor-widget-form form.elementor-form[data-fjc-rtc-notify="1"].fjc-rtc-names-open .elementor-field-type-submit {
  grid-column: 1 / -1;
}

.elementor .elementor-widget-form form.elementor-form[data-fjc-rtc-notify="1"].fjc-rtc-names-open .elementor-field-type-submit {
  justify-self: end;
  width: calc(50% - 6px) !important;
}

/* The page's original SVG sign, allowed to fill each expanded input's dimensions. */
.elementor .elementor-widget-form form.elementor-form[data-fjc-rtc-notify="1"].fjc-rtc-names-open .elementor-field-type-email,
.elementor .elementor-widget-form form.elementor-form[data-fjc-rtc-notify="1"] .fjc-rtc-notify-name {
  background-image: url("input-sign.svg") !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.elementor .elementor-widget-form form.elementor-form[data-fjc-rtc-notify="1"] .fjc-rtc-notify-name {
  position: relative;
  box-sizing: border-box;
  width: 100% !important;
  height: var(--fjc-rtc-name-height, 60px);
  animation: fjc-rtc-name-reveal 180ms ease-out both;
}

.elementor .elementor-widget-form form.elementor-form[data-fjc-rtc-notify="1"] .fjc-rtc-name-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.elementor .elementor-widget-form form.elementor-form[data-fjc-rtc-notify="1"] .fjc-rtc-notify-name input {
  box-sizing: border-box;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  padding: var(--fjc-rtc-name-padding, 0 12px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--fjc-rtc-name-color, #fff) !important;
  font-family: var(--fjc-rtc-name-font, inherit) !important;
  font-size: var(--fjc-rtc-name-size, 16px) !important;
  font-weight: var(--fjc-rtc-name-weight, inherit) !important;
  text-align: var(--fjc-rtc-name-align, center) !important;
  text-transform: var(--fjc-rtc-name-case, uppercase);
}

.elementor .elementor-widget-form form.elementor-form[data-fjc-rtc-notify="1"] .fjc-rtc-notify-name input::placeholder {
  color: var(--fjc-rtc-name-color, #fff) !important;
  font: inherit;
  text-align: inherit;
  opacity: 1;
}

.elementor .elementor-widget-form form.elementor-form[data-fjc-rtc-notify="1"] .fjc-rtc-notify-name input:focus-visible {
  outline: 2px solid var(--fjc-rtc-name-color, #fff) !important;
  outline-offset: 2px;
}

@keyframes fjc-rtc-name-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  .elementor .elementor-widget-form form.elementor-form[data-fjc-rtc-notify="1"].fjc-rtc-names-open .elementor-form-fields-wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px !important;
  }

  .elementor .elementor-widget-form form.elementor-form[data-fjc-rtc-notify="1"].fjc-rtc-names-open .elementor-field-type-submit {
    width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .elementor .elementor-widget-form form.elementor-form[data-fjc-rtc-notify="1"] .fjc-rtc-notify-name {
    animation: none;
  }
}
