.rsp-web2lead-form-wrapper {
  width: 100%;
}

.rsp-web2lead-form-title {
  margin: 0 0 20px;
  color: #394748;
  font-family: "Proxima Nova", Arial, sans-serif;
  font-size: 28px;
  line-height: 1.2;
}

.rsp-web2lead-status {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 0;
  font-family: "Proxima Nova", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.rsp-web2lead-status--success {
  color: #155724;
  background: #E6F4EA;
  border-color: #B7DFC2;
}

.rsp-web2lead-status--error {
  color: #721C24;
  background: #F8E7E9;
  border-color: #E7C3C8;
}

.rsp-web2lead-form {
  --rsp-orange: #FF7100;
  --rsp-dark: #394748;
  --rsp-border: #C9D1D1;
  --rsp-bg: #FFFFFF;
  --rsp-text: #394748;
  --rsp-placeholder: #7A8687;
  --rsp-focus: #FF7100;

  width: 100%;
  max-width: 100%;
  color: var(--rsp-text);
  font-family: "Proxima Nova", Arial, sans-serif;
  box-sizing: border-box;
}

.rsp-web2lead-form *,
.rsp-web2lead-form *::before,
.rsp-web2lead-form *::after {
  box-sizing: border-box;
}

.rsp-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 24px;
  align-items: start;
}

.rsp-form-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rsp-form-group--hidden {
  display: none !important;
}

.rsp-form-group-full {
  grid-column: 1 / -1;
}

.rsp-web2lead-form label {
  display: block;
  margin: 0 0 8px 0;
  color: var(--rsp-dark);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.rsp-web2lead-form input,
.rsp-web2lead-form select,
.rsp-web2lead-form textarea,
.rsp-web2lead-form button {
  border-radius: 0 !important;
}

.rsp-web2lead-form input,
.rsp-web2lead-form select,
.rsp-web2lead-form textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--rsp-border);
  background: var(--rsp-bg);
  color: var(--rsp-text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.rsp-web2lead-form textarea {
  min-height: 160px;
  resize: vertical;
}

.rsp-web2lead-form input::placeholder,
.rsp-web2lead-form textarea::placeholder {
  color: var(--rsp-placeholder);
  opacity: 1;
}

.rsp-web2lead-form input:hover,
.rsp-web2lead-form select:hover,
.rsp-web2lead-form textarea:hover {
  border-color: #AEB8B8;
}

.rsp-web2lead-form input:focus,
.rsp-web2lead-form select:focus,
.rsp-web2lead-form textarea:focus {
  outline: none;
  border-color: var(--rsp-focus);
  box-shadow: inset 0 0 0 1px var(--rsp-focus);
}

.rsp-web2lead-form select {
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--rsp-dark) 50%),
    linear-gradient(135deg, var(--rsp-dark) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.rsp-web2lead-form select::-ms-expand {
  display: none;
}

.rsp-form-captcha {
  margin-top: 28px;
}

.rsp-form-consent {
  margin-top: 20px;
}

.rsp-form-consent-label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  font-weight: 400 !important;
  line-height: 1.5;
}

.rsp-web2lead-form .rsp-form-consent input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0 0;
  padding: 0;
  border: 1px solid var(--rsp-border);
  appearance: auto;
  -webkit-appearance: checkbox;
}

.rsp-form-consent-label a {
  color: var(--rsp-dark);
  text-decoration: underline;
}

.rsp-form-consent-label a:hover,
.rsp-form-consent-label a:focus {
  color: var(--rsp-focus);
}

.rsp-form-actions {
  margin-top: 28px;
  overflow: visible;
}

.rsp-submit-btn {
  --btn-bg: #FF7100;
  --btn-bg-hover: #394748;
  --cut-size: 36px;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  min-width: 116px;
  padding: 0 26px 0 22px;
  margin: 0;
  margin-right: var(--cut-size);
  border: none;
  border-radius: 0 !important;
  background: var(--btn-bg);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  clip-path: polygon(0 0, 100% 0, 55% 100%, 0 100%);
  padding-right: 80px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.1s ease;
}

.rsp-submit-btn::after {
  content: "";
  position: absolute;
  top: 0;
  right: calc(-1 * var(--cut-size));
  width: var(--cut-size);
  height: 100%;
  background: var(--btn-bg);
  clip-path: polygon(0 0, 100% 0, 55% 100%, 0 100%);
  transition: background-color 0.2s ease;
}

.rsp-submit-btn span {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.rsp-submit-btn:hover,
.rsp-submit-btn:focus {
  background: var(--btn-bg-hover);
  color: #FFFFFF;
  outline: none;
}

.rsp-submit-btn:hover::after,
.rsp-submit-btn:focus::after {
  background: var(--btn-bg-hover);
}

.rsp-submit-btn:active {
  transform: translateY(1px);
}

.rsp-submit-btn:disabled,
.rsp-submit-btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.rsp-submit-btn:disabled::after,
.rsp-submit-btn[disabled]::after {
  opacity: 0.65;
}

.rsp-web2lead-form .frc-captcha {
  max-width: 100%;
}

@media (max-width: 1199px) {
  .rsp-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
  }

  .rsp-form-group-full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .rsp-form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .rsp-form-group,
  .rsp-form-group-full {
    grid-column: auto;
  }

  .rsp-web2lead-form input,
  .rsp-web2lead-form select,
  .rsp-web2lead-form textarea {
    min-height: 50px;
    padding: 13px 14px;
    font-size: 16px;
  }

  .rsp-web2lead-form textarea {
    min-height: 140px;
  }

  .rsp-form-captcha {
    margin-top: 24px;
  }

  .rsp-form-consent {
    margin-top: 18px;
  }

  .rsp-form-actions {
    margin-top: 24px;
  }

  .rsp-submit-btn {
    height: 50px;
    min-width: 108px;
    padding: 0 22px 0 18px;
    margin-right: var(--cut-size);
    font-size: 15px;
  }
}
