* {
  margin: 0px;
  padding: 0px;
}

body {
  transition: background-color 1s ease-in-out;
  height: 641px;
  width: 100%;
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 10px;
  display: none;
}

::-webkit-scrollbar-track {
  background: #ffff;
}

::-webkit-scrollbar-thumb {
  background: #fae0e0e7;
  border-radius: 5px;
}

/* navbar */

nav {
  display: flex;
  background-color: #ffffff;
  justify-content: space-between;
  padding: 20px 0px;
  letter-spacing: 1px;
  height: 10px;
  width: 100%;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 999;
}

.logo {
  display: flex;
  width: 50%;
  height: 45px;
  align-items: center;
  position: relative;
  left: 10px;
}

.logo img {
  width: 30px;
  padding: 0px 18px;
}

.logo .nama {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0px 5px;
  font-weight: 600;
  font-size: 16px;
  color: #a31d1d;
  font-family: Helvetica, sans-serif;
}

nav ul {
  display: flex;
  list-style: none;
  justify-content: space-evenly;
  width: 50%;
  box-sizing: border-box;
}

nav ul li {
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: #a31d1d;
  font-weight: 600;
  font-family: Arial;
  font-size: 13px;
  padding: 10px;
  display: inline-block;
}

nav ul li span {
  width: 100%;
  height: 3px;
  position: absolute;
  bottom: 4px;
  left: 0;
  opacity: 0;
  background-color: #6d2323;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
  pointer-events: none;
}

nav ul li a:hover span,
nav ul li.active a span {
  transform: scaleX(1);
  opacity: 1;
}

/* ikon menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  height: 20px;
  justify-content: space-between;
  position: relative;
  right: 10px;
}

.menu-toggle input {
  position: absolute;
  width: 40px;
  height: 28px;
  left: -6px;
  top: -4px;
  opacity: 0;
  cursor: pointer;
  z-index: 15;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: black;
  border-radius: 3px;
  transition: all 0.5s;
}

/* humberger menu animation */

/* humberger pertama berputar 45 derajat */

/*input dihitung sebagai anak pertama,sehingga span pertama menjadi anak kedua*/
.menu-toggle span:nth-child(2) {
  transform-origin: 0 100%;
}

.menu-toggle span:nth-child(4) {
  transform-origin: 0 100%;
}

/* ketika input diceklis maka ia akan mencari span pertama yang merupakan anak kedua */
.menu-toggle input:checked ~ span:nth-child(2) {
  transform: rotate(50deg) translate(-1px, -3px);
}

.menu-toggle input:checked ~ span:nth-child(3) {
  transform: scale(0);
  opacity: 0;
}

.menu-toggle input:checked ~ span:nth-child(4) {
  transform: rotate(-50deg) translate(0px, 4px);
}

/* form aspirasi */
.container {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('img/logo/KABINET\ RUANG\ PIJAR.PNG');
  background-size: cover;
  background-repeat: no-repeat;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-sizing: border-box;
}

.aspirasi {
  width: 50%;
  margin: 50px auto 1px;
  height: auto;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* box-sizing: border-box; */
}

.aspirasi h2 {
  margin-bottom: 15px;
  letter-spacing: 0.5px;
  font-size: 28px;
}

form {
  display: flex;
  flex-direction: column;
  width: 80%;
  height: 100%;
}

label {
  align-self: flex-start;
  margin: 8px 0 6px 0;
  font-size: 15px;
  font-weight: 600;
}

input[type='text'],
input[type='tel'],
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  resize: none;
}

input[type='text']:focus,
input[type='tel']:focus,
textarea:focus {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  outline: none;
}

textarea {
  height: 150px;
  width: 100%;
  resize: none;
  margin-bottom: 10px;
}

.kirim {
  width: 30%;
  margin-top: 10px;
  padding: 5px 0;
  letter-spacing: 0.3px;
  font-size: 15px;
  user-select: none;
  font-weight: 700;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  color: #d34707;
}

.kirim:hover {
  color: white;
  background: #d34707;
}

.kirim:focus {
  background-color: red;
  color: white;
  outline: none;
}

.custom-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #d34707;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Tombol Loading */
.btn-loading {
  background-color: white;
  color: #d34707;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  padding: 5px 0;
  margin-top: 10px;
  width: 30%;
  text-align: center;
  cursor: not-allowed;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Utility class */
.d-none {
  display: none !important;
}

.custom-alert {
  padding: 10px 15px;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 5px;
  position: relative;
  width: 250px;
  margin: 0px auto;
  font-size: 15px;
  transition: opacity 0.3s ease-in-out;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

/* Close Button (X) */
.custom-alert .close-alert {
  position: absolute;
  top: 3px;
  right: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #155724;
  padding: 5px;
}

/* responsive */
/* ukuran tablet */
@media screen and (min-width: 577px) and (max-width: 991px) {
  .container {
    padding: 1.5rem;
    background-position: center;
    background-size: cover;
    /* height: 100%; */
  }

  .aspirasi {
    width: 70%;
    height: auto;
    margin: 45px auto;
    padding: 25px;
  }

  .aspirasi h2 {
    font-size: 26px;
    text-align: center;
  }

  form {
    width: 100%;
  }

  label {
    font-size: 15px;
  }

  input[type='text'],
  input[type='tel'],
  textarea {
    font-size: 15px;
    padding: 10px;
  }

  textarea {
    height: 140px;
  }

  .kirim,
  .btn-loading {
    width: 40%;
    font-size: 15px;
    padding: 7px 0;
  }

  .custom-alert {
    width: 70%;
    font-size: 15px;
    margin: 10px auto;
  }

  .custom-alert .close-alert {
    font-size: 16px;
  }
}

/* ukuran mobile */
@media screen and (max-width: 576px) {
  .logo {
    width: 100%;
  }

  nav ul {
    position: absolute;
    flex-direction: column;
    top: 20px;
    left: 0px;
    width: 100%;
    height: 220px;
    background-color: #ffff;
    z-index: 10;
    transform: translateY(-300px);
    transition: all 0.5s;
  }

  nav ul li {
    padding: 10.5px;
    text-align: center;
  }

  body .blur {
    transition: background-color 0.5s ease-in-out;
    opacity: 0.8;
  }

  nav ul.slide {
    transform: translateY(29px);
    background-color: #ffff;
    z-index: 10;
  }

  .menu-toggle {
    display: flex;
    z-index: 5;
  }

  .container {
    padding: 1rem;
    background-position: center;
    background-size: cover;
    height: auto;
    min-height: 100vh;
  }

  .aspirasi {
    width: 100%;
    margin: 30px auto 10px;
    height: auto;
    padding: 15px;
  }

  .aspirasi h2 {
    font-size: 22px;
    text-align: center;
  }

  form {
    width: 100%;
  }

  label {
    font-size: 14px;
  }

  input[type='text'],
  input[type='tel'],
  textarea {
    font-size: 14px;
    padding: 8px;
  }

  textarea {
    height: 120px;
  }

  .kirim,
  .btn-loading {
    width: 100%;
    font-size: 14px;
    padding: 8px 0;
  }

  .custom-alert {
    width: 100%;
    font-size: 14px;
    margin: 10px 0;
  }

  .custom-alert .close-alert {
    font-size: 16px;
    top: 5px;
    right: 10px;
  }
}
