.dp-contact-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10001;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.dp-contact-modal.is-open {
  display: block;
}

.dp-contact-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 51, 115, 0.55);
}

.dp-contact-modal__dialog {
  position: relative;
  width: 92%;
  max-width: 640px;
  margin: 2rem auto 3rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(2, 51, 115, 0.25);
  overflow: hidden;
}

.dp-contact-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  opacity: 0.9;
}

.dp-contact-modal__close:hover {
  opacity: 1;
}

.dp-contact-modal__header {
  padding: 1.75rem 2rem 1.25rem;
  background: linear-gradient(to right bottom, #023373, #0f6ed1, #7b83fc, #ca7ffc);
  color: #fff;
}

.dp-contact-modal__header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.dp-contact-modal__header p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.92;
  line-height: 1.5;
}

.dp-contact-form {
  padding: 1.5rem 2rem 2rem;
}

.dp-contact-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  margin-bottom: 0;
}

.dp-contact-form .form-row .form-group {
  flex: 1 1 calc(50% - 0.5rem);
  min-width: 140px;
}

.dp-contact-form .form-group {
  margin-bottom: 1rem;
}

.dp-contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #023373;
}

.dp-contact-form label .required {
  color: #ca7ffc;
}

.dp-contact-form .form-control {
  width: 100%;
  border: 1px solid #d4dce8;
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  height: 38px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dp-contact-form .form-control:focus {
  outline: none;
  border-color: #467cec;
  box-shadow: 0 0 0 3px rgba(70, 124, 236, 0.2);
}

.dp-contact-form textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.dp-contact-form fieldset {
  border: 1px solid #e8ecf4;
  border-radius: 8px;
  padding: 0.85rem 1rem 0.65rem;
  margin: 0 0 1rem;
}

.dp-contact-form fieldset legend {
  font-size: 0.875rem;
  font-weight: 600;
  color: #023373;
  padding: 0 0.35rem;
  width: auto;
  margin-bottom: 0.35rem;
}

.dp-contact-form .choice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dp-contact-form .choice-list li {
  margin-bottom: 0.4rem;
}

.dp-contact-form .choice-list label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
  color: #404044;
  cursor: pointer;
  margin-bottom: 0;
}

.dp-contact-form input[type="radio"],
.dp-contact-form input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: #467cec;
  flex-shrink: 0;
}

.dp-contact-form .field-error {
  display: block;
  font-size: 0.8rem;
  color: #c0392b;
  margin-top: 0.25rem;
}

.dp-contact-form .form-control.is-invalid {
  border-color: #c0392b;
}

.dp-contact-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

.dp-contact-modal__submit {
  border: none;
  border-radius: 30px;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(to right bottom, #023373, #0f6ed1, #9882fe, #ca7ffc);
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.dp-contact-modal__submit:hover:not(:disabled) {
  opacity: 0.95;
}

.dp-contact-modal__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.dp-contact-modal__status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.dp-contact-modal__status.is-success {
  background: #e8f5ee;
  color: #1e6b45;
  border: 1px solid #b8dfc9;
}

.dp-contact-modal__status.is-error {
  background: #fdecea;
  color: #922b21;
  border: 1px solid #f5c6cb;
}

@media (max-width: 575.98px) {
  .dp-contact-modal__dialog {
    width: 100%;
    margin: 0;
    min-height: 100dvh;
    border-radius: 0;
  }

  .dp-contact-form {
    padding: 1.25rem 1.25rem 1.75rem;
  }

  .dp-contact-form .form-row .form-group {
    flex: 1 1 100%;
  }
}
