/* Street Wall forms — validation + popup tweaks */

.streetwall-field-error {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12) !important;
}

.streetwall-field-msg {
  margin-top: 6px;
  color: #c0392b;
  font-size: 12px;
  line-height: 1.35;
  min-height: 0;
}

.streetwall-consent-error {
  outline: 1px solid rgba(192, 57, 43, 0.45);
  border-radius: 6px;
  padding: 4px;
}

/* Hero offer scrolls if consent + messengers exceed the fixed card */
.street-hero__offer {
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

/* Hero form: keep fields inside the narrow offer column */
.street-hero .formResponsive,
.street-hero__form {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-bottom: 10px !important;
  gap: 8px !important;
}

.street-hero__input,
.street-hero .formResponsive input[type="text"],
.street-hero .formResponsive input[type="tel"],
.street-hero .formResponsive input[type="email"] {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.street-hero__btn,
.street-hero .rsform-submit-button {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Hero form consent checkboxes */
.street-hero__checks {
  display: grid !important;
  gap: 6px !important;
  margin: 0 !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.street-hero__checks label {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  margin: 0 !important;
  max-width: 100% !important;
  min-width: 0 !important;
  color: #666 !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
  cursor: pointer;
}

.street-hero__checks label {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.street-hero__checks input[type="checkbox"] {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 1px 0 0 !important;
  cursor: pointer;
}

.street-hero__checks a {
  color: #016c43 !important;
  text-decoration: underline;
  display: inline !important;
}

.street-hero .rsform-block-consent,
.street-hero .rsform-block-policy,
#rsform_9_page_0 .rsform-block-consent,
#rsform_9_page_0 .rsform-block-policy {
  margin: 0 0 10px !important;
}

.street-hero .rsform-block-consent .formControlLabel,
.street-hero .rsform-block-policy .formControlLabel,
#rsform_9_page_0 .rsform-block-consent .formControlLabel,
#rsform_9_page_0 .rsform-block-policy .formControlLabel {
  display: none !important;
}

.street-hero .rsform-block-consent .formBody,
.street-hero .rsform-block-policy .formBody,
#rsform_9_page_0 .rsform-block-consent .formBody,
#rsform_9_page_0 .rsform-block-policy .formBody {
  margin: 0 !important;
  padding: 0 !important;
}

.street-hero .rsform-block-consent label,
.street-hero .rsform-block-policy label,
#rsform_9_page_0 .rsform-block-consent label,
#rsform_9_page_0 .rsform-block-policy label {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  margin: 0 !important;
  color: #666 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  cursor: pointer;
}

.street-hero .rsform-block-consent input[type="checkbox"],
.street-hero .rsform-block-policy input[type="checkbox"],
#rsform_9_page_0 .rsform-block-consent input[type="checkbox"],
#rsform_9_page_0 .rsform-block-policy input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0 !important;
  cursor: pointer;
}

.street-hero .rsform-block-consent a,
.street-hero .rsform-block-policy a,
#rsform_9_page_0 .rsform-block-consent a,
#rsform_9_page_0 .rsform-block-policy a {
  color: #016c43 !important;
  text-decoration: underline;
}

.streetwall-vm-popup .rsform-block-tovar,
.streetwall-vm-popup .rsform-block-tovar1 {
  display: none !important;
}

/* Keep product popups usable on mobile */
@media (max-width: 600px) {
  .overlay:target + .popup.streetwall-vm-popup {
    top: 4%;
    width: 92%;
    max-width: none;
    padding: 36px 18px 16px;
  }
}

/* Thank-you message inside form / RSForm popup */
.streetwall-thankyou {
  text-align: center;
  padding: 18px 12px;
  color: #1f1f1f;
}

.streetwall-thankyou strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.3;
  color: #016c43;
}

.streetwall-thankyou p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #444;
}

.street-hero .streetwall-thankyou,
#sp-section-9 .streetwall-thankyou {
  color: #fff;
}

.street-hero .streetwall-thankyou strong,
#sp-section-9 .streetwall-thankyou strong {
  color: #fff;
}

.street-hero .streetwall-thankyou p,
#sp-section-9 .streetwall-thankyou p {
  color: rgba(255, 255, 255, 0.92);
}

.rsfp_thankyou_popup_inner {
  max-width: 440px !important;
  border-radius: 16px !important;
  padding: 28px 24px !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22) !important;
}

/* Toast notifications */
.streetwall-toast-host {
  position: fixed;
  z-index: 100000;
  right: 20px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(380px, calc(100vw - 28px));
  pointer-events: none;
}

.streetwall-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border-radius: 12px;
  background: #fff;
  color: #1f1f1f;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  border-left: 4px solid #016c43;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-size: 14px;
  line-height: 1.4;
}

.streetwall-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.streetwall-toast--success {
  border-left-color: #016c43;
}

.streetwall-toast--error {
  border-left-color: #c0392b;
}

.streetwall-toast--info {
  border-left-color: #3d7ea6;
}

.streetwall-toast__text {
  flex: 1 1 auto;
}

.streetwall-toast__close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

@media (max-width: 600px) {
  .streetwall-toast-host {
    right: 12px;
    left: 12px;
    bottom: 16px;
    width: auto;
  }
}

/* Persistent success modal (does not auto-close / reload) */
.streetwall-success-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 25, 20, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.streetwall-success-modal.is-visible {
  opacity: 1;
}

.streetwall-success-modal__card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
  transform: translateY(8px);
  transition: transform 0.2s ease;
}

.streetwall-success-modal.is-visible .streetwall-success-modal__card {
  transform: translateY(0);
}

.streetwall-success-modal__icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #e8f7ef;
  color: #016c43;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.streetwall-success-modal__title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
  color: #1f1f1f;
}

.streetwall-success-modal__text {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.45;
  color: #555;
}

.streetwall-success-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #1cc18a 0%, #016c43 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.streetwall-success-modal__btn:hover {
  filter: brightness(0.97);
}

body.streetwall-success-open {
  overflow: hidden;
}
