:root {
  --rehom-blue: #121764;
  --rehom-yellow: #f2fb7f;
  --rehom-coral: #ff6b6b;
  --rehom-pale-blue: #e9edfc;
  --rehom-white: #ffffff;
  --rehom-muted: #65698e;
  --rehom-line: #d7daf0;
}

.rehom-intervention,
.rehom-intervention * {
  box-sizing: border-box;
}

.rehom-intervention {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
  color: var(--rehom-blue);
  font-family: "Google Sans", Arial, sans-serif;
}

.rehom-intervention__form {
  position: relative;
  min-height: 430px;
  margin: 0;
  padding: 34px 0 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.rehom-intervention__topline {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 10px;
  color: var(--rehom-muted);
  font-size: 14px;
  font-weight: 700;
}

.rehom-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--rehom-pale-blue);
}

.rehom-progress span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: var(--rehom-coral);
  transition: width .25s ease;
}

.rehom-step[hidden],
.rehom-success[hidden],
.rehom-suggestions[hidden],
.rehom-other-detail[hidden] {
  display: none !important;
}

.rehom-step {
  animation: rehom-enter .25s ease both;
}

.rehom-step h2,
.rehom-success h2 {
  margin: 0 0 26px;
  color: var(--rehom-blue);
  font-family: "Parkinsans", "Google Sans", Arial, sans-serif;
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.rehom-step__eyebrow {
  margin: 0 0 10px;
  color: var(--rehom-muted);
  font-size: 15px;
  font-weight: 700;
}

.rehom-step__hint {
  margin: 12px 0 0;
  color: var(--rehom-muted);
  font-size: 14px;
}

.rehom-autocomplete {
  position: relative;
  z-index: 2;
}

.rehom-field {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 15px 17px;
  border: 2px solid var(--rehom-line) !important;
  border-radius: 15px !important;
  outline: 0;
  background: var(--rehom-white) !important;
  box-shadow: none !important;
  color: var(--rehom-blue) !important;
  font-family: "Google Sans", Arial, sans-serif !important;
  font-size: 17px !important;
  line-height: 1.35;
}

.rehom-field--search {
  min-height: 68px;
  padding-right: 54px;
  background-image: linear-gradient(45deg, transparent, transparent) !important;
  font-size: 19px !important;
  font-weight: 650;
}

.rehom-field:focus {
  border-color: var(--rehom-blue) !important;
  outline: 3px solid rgba(18, 23, 100, .10);
  outline-offset: 1px;
}

.rehom-field::placeholder {
  color: #8c90ad;
  opacity: 1;
}

textarea.rehom-field {
  resize: vertical;
}

.rehom-suggestions {
  position: absolute;
  right: 0;
  left: 0;
  top: calc(100% + 8px);
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--rehom-line);
  border-radius: 15px;
  background: var(--rehom-white);
  box-shadow: 0 18px 40px rgba(18, 23, 100, .12);
}

.rehom-intervention button.rehom-suggestion {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 0;
  padding: 13px 10px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--rehom-line) !important;
  border-radius: 0 !important;
  background: var(--rehom-white) !important;
  box-shadow: none !important;
  color: var(--rehom-blue) !important;
  font: 700 16px/1.25 "Google Sans", Arial, sans-serif !important;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.rehom-intervention button.rehom-suggestion:last-child {
  border-bottom: 0 !important;
}

.rehom-intervention button.rehom-suggestion:hover,
.rehom-intervention button.rehom-suggestion.is-active {
  background: var(--rehom-pale-blue) !important;
  padding-left: 15px !important;
}

.rehom-suggestion__content {
  display: grid;
  gap: 3px;
}

.rehom-suggestion__category {
  color: var(--rehom-muted);
  font-size: 12px;
  font-weight: 600;
}

.rehom-suggestion mark {
  padding: 0;
  background: var(--rehom-yellow);
  color: inherit;
}

.rehom-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rehom-choice {
  display: flex;
  width: 100%;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 2px solid var(--rehom-line);
  border-radius: 15px;
  background: var(--rehom-white);
  color: var(--rehom-blue);
  font: 800 16px/1.25 "Google Sans", Arial, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.rehom-choice:hover,
.rehom-choice:focus-visible {
  border-color: var(--rehom-blue);
  background: var(--rehom-pale-blue);
  transform: translateY(-1px);
  outline: none;
}

.rehom-fields {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.rehom-fields--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rehom-fields label,
.rehom-other-detail label {
  display: block;
  margin: 0 0 7px;
  color: var(--rehom-blue);
  font-size: 14px;
  font-weight: 800;
}

.rehom-fields label span,
.rehom-other-detail label span {
  color: var(--rehom-muted);
  font-weight: 500;
}

.rehom-other-detail .rehom-button {
  margin-top: 16px;
}

.rehom-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 20px;
  color: var(--rehom-muted);
  font-size: 13px;
  line-height: 1.45;
}

.rehom-consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--rehom-blue);
  flex: 0 0 auto;
}

.rehom-consent a {
  color: var(--rehom-blue);
  text-decoration: underline;
}

.rehom-button,
.rehom-intervention .rehom-button {
  display: inline-flex;
  min-height: auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
}

.rehom-button--primary,
.rehom-intervention .rehom-button--primary {
  background-color: #ff6b6b !important;
  font-family: "Google Sans", sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  fill: #ffffff !important;
  color: #ffffff !important;
  border-style: none !important;
  border-radius: 15px !important;
  padding: 17px 22px !important;
  box-shadow: none !important;
}

.rehom-button--primary:hover,
.rehom-button--primary:focus-visible {
  background-color: #ff5757 !important;
  color: #ffffff !important;
  outline: 3px solid rgba(255, 107, 107, .25);
  outline-offset: 2px;
}

.rehom-button[disabled] {
  cursor: wait;
  opacity: .65;
}

.rehom-back,
.rehom-text-button {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rehom-blue);
  font: 800 14px/1.4 "Google Sans", Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.rehom-text-button {
  margin-top: 16px;
}

.rehom-error {
  min-height: 20px;
  margin: 0 0 10px;
  color: #b42318;
  font-size: 14px;
  font-weight: 700;
}

.rehom-success {
  padding: 50px 0 20px;
  animation: rehom-enter .3s ease both;
}

.rehom-success__icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--rehom-yellow);
  color: var(--rehom-blue);
  font-size: 27px;
  font-weight: 900;
}

.rehom-success p {
  max-width: 620px;
  color: var(--rehom-muted);
  font-size: 17px;
  line-height: 1.6;
}

.rehom-success__reference {
  color: var(--rehom-blue) !important;
}

.rehom-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@keyframes rehom-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  .rehom-intervention__form { min-height: 480px; padding-top: 26px; }
  .rehom-step h2,
  .rehom-success h2 { font-size: 34px; }
  .rehom-choices,
  .rehom-fields--two { grid-template-columns: 1fr; }
  .rehom-field--search { min-height: 62px; font-size: 17px !important; }
  .rehom-button--primary,
  .rehom-intervention .rehom-button--primary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .rehom-step,
  .rehom-success { animation: none; }
  .rehom-progress span,
  .rehom-choice { transition: none; }
}
