.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-box {
  width: 100%;
  max-width: 1030px;
  background: linear-gradient(173.3deg, #0063b6 5.26%, #003366 94.73%);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  color: #fff;
  padding: 32px;
  position: relative;
}
.modal-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/modal/logo_e01.png") no-repeat;
  background-position: -31% -74%;
  background-size: 60%;
  opacity: 0.25;
  z-index: 1;
}
.modal-box > * {
  position: relative;
  z-index: 2;
}

.modal-left {
  flex: 1.05;
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal-left-content {
  padding: 32px 12px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-left h2 {
  font-size: 36px;
  margin-bottom: 12px;
  line-height: 1.1;
  font-weight: 700;
}
.modal-left p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 22px;
  max-width: 460px;
}

.modal-right {
  width: 420px;
  color: #111827;
}
.modal-right form {
  background: #ffffff;
  padding: 18px;
  border-radius: 14px;
}
.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.form-row .field {
  flex: 1;
}

label {
  display: block;
  font-size: var(--text-size-1);
  margin-bottom: 8px;
  color: #414651;
}
input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 16px 12px;
  border-radius: 18px;
  border: 1px solid #d5d7da;
  background: #f5f5f5;
  font-size: var(--text-size-1);
  outline: none;
  box-shadow: none;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
.checkbox {
  margin-top: 12px;
  margin-bottom: 12px;
}
.send-btn-wrapper {
  width: 100%;
}

.send-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  background: #007bff;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 6px 12px 60px 0px #1570ef66;
  border-radius: 8px;
}

.close-x {
  position: absolute;
  right: -20px;
  top: -20px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 30px;
  cursor: pointer;
  z-index: 99999;
}
.modal-left-img {
  position: relative;
  display: flex;
  margin-top: auto;
}

.img-modal {
  width: 100%;
  position: relative;
}
.img-modal-2 {
  width: 48%;
  left: 8%;
}

.img-modal-1 {
  width: 42%;
  left: 40%;
}

.img-modal-2,
.img-modal-1 {
  position: absolute;
  bottom: 0;
}
@media (max-width: 768px) {
  .modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    padding: 0;
    display: flex;
  }

  .modal-box {
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 0;
    flex-direction: column;
    overflow-y: auto;
    padding: 24px 0;
  }
  .modal-box::before {
    background-position: -34% -6%;
    background-size: 75%;
  }

  .modal-left {
    padding: 0 16px;
    min-height: auto;
  }
  .modal-left-content {
    padding: 0;
    gap: 0;
  }
  .modal-right {
    width: 100%;
    padding: 0 16px;
  }

  .close-x {
    top: 16px;
    right: 16px;
    z-index: 10;
  }
  .modal-right form {
    padding: 18px 12px;
  }
  .form-row {
    flex-direction: column;
  }

  .modal-left-img {
    display: none;
  }
}
