body.modal-open {
  overflow: hidden !important;
}

.pdp-custom-modal#leadNewsModal.modal {
  overflow: hidden !important;
  padding: 20px !important;
}
.pdp-custom-modal#leadNewsModal.modal.show {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.pdp-custom-modal#leadNewsModal .modal-dialog.modal-lg {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  min-width: auto !important;
  margin: 0 !important;
  max-width: 600px !important;
  width: 100%;
  max-height: 70vh !important;
  overflow: hidden !important;
  pointer-events: none;
}

.pdp-custom-modal#leadNewsModal .modal-dialog.modal-lg .modal-content {
  max-height: 70vh !important;
  overflow: hidden !important;
  pointer-events: auto;
  box-shadow: none !important;
}

.pdp-custom-modal#leadNewsModal .modal-dialog.modal-lg .modal-body {
  overflow: hidden !important;
  max-height: 70vh !important;
}

.lead-pdp-popup-form {
  max-width: 548px;
  margin: 0 auto;
  background: #fff;
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 70vh;
}

.lead-pdp-popup-form .form-header {
  flex-shrink: 0;
  padding-top: 30px;
}

.lead-pdp-popup-form .form-header .title {
  font-size: 36px;
  font-weight: 500 !important;
  line-height: 45.18px;
  letter-spacing: -0.02em;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(217, 225, 226, 1);
}

.lead-pdp-popup-form .desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  margin-top: 16px;
  margin-bottom: 24px;
}

.lead-pdp-popup-form .form-body {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  padding-bottom: 30px;
  margin-right: -30px;
  padding-right: 26px;
  scrollbar-width: thin;
  scrollbar-color: #1464f4 transparent;
}

.lead-pdp-popup-form .form-body::-webkit-scrollbar {
  width: 4px;
}

.lead-pdp-popup-form .form-body::-webkit-scrollbar-track {
  background: transparent;
}

.lead-pdp-popup-form .form-body::-webkit-scrollbar-thumb {
  background-color: #1464f4;
  border-radius: 4px;
}

.lead-pdp-popup-form .form-group {
  margin-bottom: 16px;
}

.lead-pdp-popup-form .form-group .form-control {
  display: block;
  padding: 15px 16px;
  background: #ffffff;
  border: 1px solid #d9e1e2;
  border-radius: 3px;
  width: 100%;
  height: auto;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  color: #3c3c3c;
  box-shadow: none;
}

.lead-pdp-popup-form .form-group select.form-control {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%233c3c3c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.lead-pdp-popup-form .select-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  color: #3c3c3c;
}

.lead-pdp-popup-form .floating-label {
  position: relative;
}

.lead-pdp-popup-form .floating-label > input + label,
.lead-pdp-popup-form .floating-label > textarea + label {
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  z-index: 3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  top: 0;
  left: 0;
  color: #6c757d;
  pointer-events: none;
  display: block;
  padding: 15px 16px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  color: #3c3c3c;
}

.lead-pdp-popup-form .floating-label > input:focus + label,
.lead-pdp-popup-form .form-group.has-value .floating-label > input + label,
.lead-pdp-popup-form .floating-label > textarea:focus + label,
.lead-pdp-popup-form .form-group.has-value .floating-label > textarea + label {
  font-weight: 600;
  font-size: 12px;
  line-height: 1.5;
  color: #8a8a8a;
  top: 5px;
  left: 16px;
  padding: 0;
}

.lead-pdp-popup-form .floating-label > input:focus,
.lead-pdp-popup-form .form-group.has-value .floating-label > input {
  padding-top: 24px;
  padding-bottom: 6px;
}

.lead-pdp-popup-form .floating-label > textarea:focus,
.lead-pdp-popup-form .form-group.has-value .floating-label > textarea {
  padding-top: 28px;
  padding-bottom: 6px;
}

.lead-pdp-popup-form .form-group textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.lead-pdp-popup-form .char-counter {
  text-align: right;
  font-size: 12px;
  color: #8a8a8a;
  margin-top: 4px;
}

.lead-pdp-popup-form span.required {
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  color: #1464f4;
}

.lead-pdp-popup-form .select-label span.required {
  font-size: 14px;
}

.lead-pdp-popup-form .form-error {
  font-weight: 600;
  font-size: 12px !important;
  line-height: 1.5;
  color: #dc3545 !important;
  margin-left: 16px;
  margin-top: 4px;
  margin-bottom: 0 !important;
}

.lead-pdp-popup-form .form-type-checkbox {
  display: flex;
}

.lead-pdp-popup-form .form-type-checkbox input {
  width: 24px;
  height: 24px;
  outline: none;
  box-shadow: none;
  border-radius: 0;
  border: none;
  transition: none;
}

.lead-pdp-popup-form .form-type-checkbox label {
  flex: 1;
  margin-left: 8px;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 150%;
}

#lead-pdp-popup-wrapper .btn {
  position: relative;
  display: inline-block;
  padding: 1rem;
  overflow: hidden;
  z-index: 1;
  cursor: pointer;
  border: none;
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1rem;
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  border-radius: 4px;
}

#lead-pdp-popup-wrapper .btn--primary--blue {
  color: #fff;
  background: #1464f4;
}

#lead-pdp-popup-wrapper .btn--border--blue {
  border: 0.063rem solid #1464f4;
}

#lead-pdp-popup-wrapper .btn:disabled {
  background-color: #8A8A8A;
  border-color: #8A8A8A;
  opacity: 1;
  cursor: not-allowed;
}

#lead-pdp-popup-wrapper .btn.is-loading {
  color: transparent !important;
  pointer-events: none;
}

#lead-pdp-popup-wrapper.is-submitting .form-body {
  pointer-events: none;
  opacity: 0.6;
}

.btn-loading-wrapper {
  position: relative;
}

.btn-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.lead-form-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: none;
  padding: 14px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  max-width: 360px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.lead-form-toast--success {
  background-color: #1e6b32;
  color: #fff;
  border-left: 4px solid #0d4a21;
}

.lead-form-toast--error {
  background-color: #b71c1c;
  color: #fff;
  border-left: 4px solid #7f0000;
}

.pdp-custom-modal#leadNewsModal .thank-you {
  padding: 30px;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

.thank-you .thank-you-actions .btn:hover {
  color: #1464f4 !important;
}

@media only screen and (max-width: 767px) {
  .pdp-custom-modal#leadNewsModal.modal {
    padding: 16px !important;
  }
  .pdp-custom-modal#leadNewsModal .modal-dialog.modal-lg {
    max-height: 75vh !important;
  }
  .pdp-custom-modal#leadNewsModal .modal-dialog.modal-lg .modal-content {
    max-height: 75vh !important;
  }
  .pdp-custom-modal#leadNewsModal .modal-dialog.modal-lg .modal-body {
    max-height: 75vh !important;
  }
  .lead-pdp-popup-form {
    max-width: 100vw;
    padding: 20px 16px;
    max-height: 75vh;
  }
  .lead-pdp-popup-form .form-header .title {
    font-size: 20px;
    font-weight: 500;
    line-height: 25.1px;
  }
}
