* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f4f6f8;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.form-container {
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

h2 {
  margin-bottom: 20px;
  text-align: center;
  color: #333;
}

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

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #007bff;
}

button {
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

.result-box {
  margin-top: 15px;
  padding: 12px;
  border-radius: 4px;
  background-color: #e9f7ef;
  color: #155724;
  display: none; /* Disembunyikan sebelum form dikirim */
  line-height: 1.5;
}

.result-box.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.result-box h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.result-box p {
  margin-bottom: 4px;
  font-size: 14px;
}

.result-box p:last-child {
  margin-bottom: 0;
}

.back-link {
  margin-top: 18px;
  text-align: center;
}

.back-link a {
  color: #007bff;
  text-decoration: none;
  font-size: 13px;
}

.back-link a:hover {
  text-decoration: underline;
}

