
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: url('../images/bg.jpg') center/cover no-repeat fixed;
  position: relative;
  min-height: 100vh;
}

.background-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: -1;
}

.form-heading {
  text-align: center;
  color: #fa4b01;
  padding-top: 30px;
  margin-bottom: 50px;
  text-shadow: 2px 2px 10px rgb(255, 251, 251);
}

.form-heading h1 {
  font-size: 2rem;
  margin: 0;
}

.form-heading p {
  font-size: 1rem;
  font-weight: 500; /* ini membuat teks sedikit tebal */
}

.container {
  max-width: 500px;
  margin: 20px auto;
  padding: 25px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 16px;  /*  Lengkungan form penampungan*/
}

form {
  width: 100%;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.row input,
.row select,
.row textarea {
  flex: 1 1 48%;
  padding: 10px;
  border-radius: 8px; /*   lengkungan form alamat & deskripsi diri*/
  border: 2px solid rgb(255, 255, 255);
  background: rgba(255, 255, 255, 0.15);
  color: #000;
  backdrop-filter: blur(4px);
  font-size: 0.95rem;
  box-sizing: border-box;
}

.row textarea {
  height: 60px; /*  ukuran row form alamat & deskripsi diri */
  resize: vertical;
}

.row.checkbox {
  align-items: center;
}

.row.checkbox input {
  flex: 0 0 auto;
  margin-right: 8px;
}

button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(to right, #be4d02, #fa4b01);
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#success-message {
  display: none;
  margin-top: 0.5px;
  text-align: center;
  background:rgba(200, 255, 200, 0.3);
  backdrop-filter: blur(5px);
  padding: 1px;
  border-radius: 1px;
  animation: fadeOut 5s forwards;
}

#success-message h2 {
  margin: 0;
  font-size: rem;
  color: green;
}

#success-message p {
  font-size: 0.8rem;
  color: #222;
  font-weight: 500; /* ini membuat teks sedikit tebal */
}

@keyframes fadeOut {
  0% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; display: none; }
}

@media (max-width: 450px) {
  .row input,
  .row select,
  .row textarea {
    flex: 1 1 50%;
  }
}


/* RESPONSIVE WIDTH UNTUK FORM */
.container form {
  max-width: 500px;
  margin: auto;
  width: 90%;
}

@media (max-width: 400px) {
  .container form {
    width: 95%;
    max-width: 300px;
  }

  .row {
    flex-direction: column;
  }

  .row input,
  .row select,
  .row textarea {
    width: 50%;
    margin-bottom: 10px;
  }
}
