* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.contact-hero {
  text-align: center;
  padding: 70px 7% 40px;
  color: white;
}

.contact-mini {
  color: #cfc9f3;
  letter-spacing: 2px;
  font-size: 14px;
  margin-bottom: 10px;
}

.contact-hero h1 {
  font-size: 40px;
  margin-bottom: 18px;
}

.contact-intro {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.8;
  color: #ececec;
}

.contact-part {
  width: 86%;
  margin: 0 auto 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.contact-leftpart {
  background-color: #53567b;
  padding: 40px 36px;
}

.contact-leftpart h2 {
  margin-bottom: 10px;
  color: white;
}

.form-copy {
  margin-bottom: 24px;
  color: #ececec;
  line-height: 1.7;
}

#contact-form {
  width: 100%;
}

.contact-input-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

input,
textarea {
  width: 100%;
  border: none;
  outline: none;
  border-radius: 12px;
  padding: 14px 14px;
  font-size: 14px;
  font-family: "Roboto Mono", monospace;
  color: #333;
  background-color: white;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

.submit {
  margin-top: 18px;
}

button {
  width: 100%;
  max-width: 180px;
  height: 48px;
  font-size: 15px;
  background: linear-gradient(to right, #5772ff, #7e759f);
  border-radius: 10px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
  color: white;
}

button:hover {
  transform: translateY(-2px);
  opacity: 0.94;
}

#contact-message {
  margin-top: 16px;
  min-height: 24px;
  color: #f1ecff;
  font-size: 13px;
  line-height: 1.6;
}

.contact-rightpart {
  position: relative;
  min-height: 100%;
}

.image {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.image-overlay-text {
  position: absolute;
  left: 30px;
  bottom: 30px;
  right: 30px;
  color: white;
  font-size: 26px;
  line-height: 1.5;
  font-weight: 700;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.footer-note {
  color: #d7d7d7;
  font-size: 14px;
  margin-top: 12px;
  background-color: #53567b;
}

@media (max-width: 900px) {
  .contact-part {
    grid-template-columns: 1fr;
  }

  .contact-rightpart {
    order: -1;
  }

  .image {
    min-height: 280px;
  }
}

@media (max-width: 600px) {
  .contact-hero {
    padding: 50px 6% 30px;
  }

  .contact-hero h1 {
    font-size: 32px;
  }

  .contact-part {
    width: 92%;
  }

  .contact-leftpart {
    padding: 28px 20px;
  }

  .contact-input-box {
    grid-template-columns: 1fr;
  }

  button {
    max-width: 100%;
  }

  .image-overlay-text {
    font-size: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}