/* Lead form */

.rsn-form {
  position: relative;
  background: var(--rsn-white);
  border: 1px solid var(--rsn-border);
  border-radius: 20px;
  padding: 32px;
}

.rsn-form__title {
  font-size: 24px;
  font-weight: 700;
  color: #17202b;
  margin-bottom: 8px;
}

.rsn-form__intro {
  font-size: 15px;
  line-height: 1.5;
  color: #5f6872;
  margin-bottom: 24px;
}

.rsn-form__field {
  margin-bottom: 16px;
}

.rsn-form__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #17202b;
  margin-bottom: 8px;
}

.rsn-form__input,
.rsn-form__select,
.rsn-form__textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--rsn-border);
  border-radius: 12px;
  background-color: #f7f9fb;
  color: #17202b;
  transition: border-color var(--rsn-duration) var(--rsn-ease), background-color var(--rsn-duration) var(--rsn-ease);
}

.rsn-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23627181' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  padding-right: 40px;
}

.rsn-form__input:focus,
.rsn-form__select:focus {
  outline: none;
  border-color: var(--rsn-corporate-blue);
  background-color: var(--rsn-white);
}

.rsn-form__field.is-invalid .rsn-form__input,
.rsn-form__field.is-invalid .rsn-form__select {
  border-color: var(--rsn-rack-red);
}

.rsn-form__error {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: var(--rsn-rack-red);
}

.rsn-form__field.is-invalid .rsn-form__error {
  display: block;
}

.rsn-form__upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px dashed #c4cad0;
  border-radius: 12px;
  background: #f7f9fb;
}

.rsn-form__upload-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--rsn-white);
  border: 1px solid var(--rsn-border);
  font-size: 15px;
  font-weight: 700;
  color: #17202b;
  cursor: pointer;
}

.rsn-form__upload-name {
  font-size: 14px;
  color: #5f6872;
}

.rsn-form__hint {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #73808d;
}

.rsn-form__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0 20px;
  font-size: 13px;
  line-height: 1.45;
  color: #5f6872;
}

.rsn-form__consent input {
  margin-top: 3px;
}

.rsn-form__consent a {
  color: var(--rsn-corporate-blue);
}

.rsn-form__submit {
  width: 100%;
  min-height: 54px;
}

.rsn-form__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.rsn-form__note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #73808d;
}

.rsn-form__status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  display: none;
}

.rsn-form__status.is-visible {
  display: block;
}

.rsn-form__status.is-success {
  background: #e8f6ee;
  color: #0f5132;
}

.rsn-form__status.is-error {
  background: #fdecea;
  color: #8a1f1f;
}

.rsn-form__hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.rsn-form__hp input,
.rsn-form__hp label {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 1023px) {
  .rsn-lead .rsn-form__label {
    color: #dce7f1;
  }

  .rsn-lead .rsn-form__input,
  .rsn-lead .rsn-form__select {
    /* background-color only — shorthand would wipe select arrow no-repeat */
    background-color: #102c46;
    border-color: #1d3f5f;
    color: #ffffff;
  }

  .rsn-lead .rsn-form__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2369ADE8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 16px;
  }

  .rsn-lead .rsn-form__input::placeholder {
    color: #7f94aa;
  }

  .rsn-lead .rsn-form__input:focus,
  .rsn-lead .rsn-form__select:focus {
    border-color: #69ade8;
    background-color: #0d243e;
  }

  .rsn-lead .rsn-form__upload {
    background: #102c46;
    border-color: #1d3f5f;
  }

  .rsn-lead .rsn-form__upload-btn {
    background: #0d243e;
    border-color: #1d3f5f;
    color: #ffffff;
  }

  .rsn-lead .rsn-form__upload-name,
  .rsn-lead .rsn-form__hint,
  .rsn-lead .rsn-form__note,
  .rsn-lead .rsn-form__consent {
    color: #b8c6d5;
  }

  .rsn-lead .rsn-form__consent a {
    color: #69ade8;
  }

  .rsn-lead .rsn-form__status.is-success {
    background: #123526;
    color: #b7f0cf;
  }

  .rsn-lead .rsn-form__status.is-error {
    background: #3a1515;
    color: #ffc9c9;
  }
}
