/* Global Styles */
body {
  font-family: 'Poppins', 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #2c3e50, #4ca1af);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #ecf0f1;
}

.container {
  background: #34495e;
  max-width: 900px;
  width: 95%;
  margin: 20px auto;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

header {
  text-align: center;
  margin-bottom: 30px;
}

.header-icon {
  font-size: 3.5rem;
  color: #1abc9c;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

h1 {
  font-size: 2.5rem;
  color: #1abc9c;
  font-weight: 700;
  margin: 10px 0;
}

p {
  color: #bdc3c7;
  font-size: 1.1rem;
}

/* Form Styles */
.form-wrapper {
  background: #2c3e50;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 20px;
}

label {
  font-weight: 600;
  color: #ecf0f1;
  display: block;
  margin-bottom: 8px;
}

input[type="text"],
textarea,
select {
  width: 100%; /* Pastikan panjang elemen sama */
  padding: 15px;
  font-size: 1rem;
  border: 1px solid #7f8c8d;
  border-radius: 10px;
  background-color: #34495e;
  color: #ecf0f1;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
  border-color: #1abc9c;
  box-shadow: 0 0 10px rgba(26, 188, 156, 0.3);
  outline: none;
}

textarea {
  resize: none;
  height: 120px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.checkbox-group input {
  margin-right: 10px;
}

.button-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

button {
  background: linear-gradient(to right, #1abc9c, #16a085);
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(26, 188, 156, 0.2);
}

button:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(26, 188, 156, 0.4);
}

/* Result Section */
.result {
  background: #1c2833;
  padding: 20px;
  margin-top: 30px;
  border-radius: 10px;
  border: 1px solid #566573;
  color: #ecf0f1;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: auto;
}

/* Accordion Styles */
.accordion {
  margin-top: 30px;
}

.accordion-item {
  margin-bottom: 10px;
  background: #2c3e50;
  border-radius: 10px;
}

.accordion-button {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  text-align: left;
  border: none;
  outline: none;
  cursor: pointer;
  background: linear-gradient(to right, #1abc9c, #16a085);
  color: #ffffff;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.accordion-button:hover {
  background: #16a085;
}

.accordion-content {
  display: none;
  background: #34495e;
  padding: 15px;
  border-radius: 10px;
  margin-top: 10px;
}

.accordion-content ul {
  margin: 0;
  padding-left: 20px;
}

.accordion-button:focus {
  outline: none;
}

.accordion-item.active .accordion-content {
  display: block;
}

/* Media Queries */
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  button {
    font-size: 0.9rem;
    padding: 10px;
  }

  h1 {
    font-size: 2rem;
  }

  .header-icon {
    font-size: 3rem;
  }
}