
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: #f5f7fa;
}

header {
  background: linear-gradient(135deg, #002147, #004aad);
  color: white;
  text-align: center;
  padding: 50px 20px 100px;
  position: relative;
  overflow: hidden;
}

header .logo {
  width: 50px;
  margin-bottom: 5px;
}

header h1 {
  font-size: 32px;
  margin: 5px 0 5px;
  animation: fadeInDown 0.8s ease both;
}

header p {
  font-size: 16px;
  margin: 0;
  animation: fadeInDown 1s ease both;
}

.header-wave svg {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 50px;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  padding: 30px 10px;
}

.form-wrapper {
  display: flex;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
  overflow: hidden;
  animation: fadeInDown 0.8s ease both;
}

.form-card {
  background: white;
  position: relative;
  z-index:2;
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 0 27px rgba(0,0,0,0.1);
  max-width: 400px;
  width: 100%;
  animation: fadeInDown 0.8s ease both;
}

.form-card h2 {
  margin-top: 0;
}

.form-card input[type="text"] {
  width: 95%;
  padding: 10px;
  margin: 5px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.form-card button {
  width: 100%;
  padding: 12px;
  background-color: #005eff;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-card button:hover {
  background-color: #0033aa;
}

.image-area img {
  max-width: 450px;
  width: 100%;
}

footer {
  margin-top: 5px;
  padding: 50px 1px 50px;
  color: #333;
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer p {
  position: relative;
  z-index: 1; /* pastikan teks di atas gambar ::after */
  margin: 0;
  font-size: 12px;
}

footer::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100px; /* hanya bagian atas gambar yang akan terlihat */
  background-image: url('assets/footer-bg.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center; /* penting! agar yang terlihat adalah bagian atas gambar */
  pointer-events: none;
  z-index: 0;
}

.result-watermark {
  position: relative;
  background: url('assets/watermark.png') center center no-repeat;
  background-size: contain;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}


@media screen and (max-width: 768px) {


  .form-wrapper {
    flex-direction: column;
    position: relative;
    z-index:1;
    align-items: center;
    text-align: center;
  }

  .image-area {
    order: 2;
    justify-content: center;
    margin-top: -10px;
  }

  .image-area img {
    max-width: 275px;
    height: auto;
  }
  
 .form-card {
  background: white;
  position: relative;
  z-index:2;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  max-width: 90%;
  width: 100%;
  animation: fadeInDown 0.8s ease both;
}
  footer::after {
    height: 65px;
  }
  
header {
    padding: 40px 20px;
  }

  header img {
    width: 50px;
  }
  
  .header-wave svg {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 50px;
}

  header h1, header h2, header p {
    font-size: 16px;
    line-height: 1.4;
    word-wrap: break-word;
    margin: 5px 0;
  }
  
}

