dialog {
  background: #fff;
  width: 58.5rem;
  border-radius: 2.5rem;
  border: 0;
  padding: 0;
  animation: fade-out 250ms ease-out;
}

dialog .cross-dialog {
  position: absolute;
  right: 2.25rem;
  top: 2.25rem;
  font-size: 2.75rem;
  z-index: 2;
}

dialog[open] {
  animation: fade-in 250ms ease-out;
}

dialog[open]::backdrop {
  animation: backdrop-fade-in 250ms ease-out forwards;
}

@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateY(-1rem);
    display: none;
  }

  100% {
    opacity: 1;
    transform: translateY(0rem);
    display: block;
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
    transform: translateY(0rem);
    display: block;
  }

  100% {
    opacity: 0;
    transform: translateY(-1rem);
    display: none;
  }
}

@keyframes backdrop-fade-in {
  0% {
    background-color: rgb(0 0 0 / 0%);
  }

  100% {
    background-color: rgb(0 0 0 / 50%);
  }
}

/* Dialog content */
.dialog-content {
  display: flex;
  font-size: var(--font-size);
  flex-wrap: wrap-reverse;
}

.dialog-form {
  flex-basis: 75%;
  flex-shrink: 0;
  padding: 5rem 3.5rem;
}
@media (max-width: 767px) {
  .dialog-form {
    flex-basis: 100%;
    padding: 3.25rem 3.25rem;
  }
}
.dialog-form h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}
.dialog-form form {
  margin: 2.5rem 0;
}
.dialog-form input {
  margin-top: 0.75rem;
  margin-bottom: 1.75rem;
}

.dialog-buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.dialog-buttons button:first-child {
  width: 100%;
}

.dialog-image {
  flex-basis: 25%;
  flex-shrink: 0;
  position: relative;
}
@media (max-width: 767px) {
  .dialog-image {
    flex-basis: 100%;
    height: 100%;
  }
}
.dialog-image::after {
  content: '';
  position: absolute;
  top:0;
  left:0;
  object-fit: cover;
  height: 100%;
  width: 100%;
  background-color: #027BFB;
  opacity: 0.65;
  z-index: 2;
}
.dialog-image img {
  position: absolute;
  top:0;
  left:0;
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.dialog-agreement {
  display: flex;
  gap: 1.25rem;
}
.dialog-agreement .icon i {
  color: var(--primary);
}
.dialog-agreement .text p {
  font-size: 1.4rem;
}


.dialog-content .message-sent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem;
}
.dialog-content .message-sent i {
  color: var(--primary);
  font-size: 5.5rem;
  margin-bottom: 1.5rem;
}
.dialog-content .message-sent p {
  max-width: 75%;
}