body {
  font-family: Arial, sans-serif;
  background: #f1f2f7;
  margin: 0;
  padding: 0;
}
/* Butang Bayar Sekarang */
.pay-button {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, #4caf50, #43a047);
  color: #fff;
  border: none;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.pay-button {
  display: inline-block; /* pastikan butang bersifat inline-block */
  margin: 20px auto;     /* jarak atas-bawah & auto tepi */
}

/* Hover efek */
.pay-button:hover {
  background: linear-gradient(135deg, #43a047, #388e3c);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Fokus (klik) efek */
.pay-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.container {
  max-width: 600px;
  margin: 30px auto;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h2 {
  text-align: center;
  color: #333;
}
/* Form permulaan ujian - kemas & moden */
#startForm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

/* Input dalam #startForm */
#startForm input[type="text"],
#startForm input[type="email"] {
  width: 100%;
  max-width: 400px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

/* Fokus input */
#startForm input[type="text"]:focus,
#startForm input[type="email"]:focus {
  border-color: #3f51b5;
  box-shadow: 0 0 0 3px rgba(63,81,181,0.2);
  outline: none;
}

/* Butang mula ujian */
#startForm button {
  width: 100%;
  max-width: 400px;
  padding: 12px;
  background: #3f51b5;
  color: #fff;
  border: none;
  font-size: 1em;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

/* Hover butang */
#startForm button:hover {
  background: #303f9f;
  transform: translateY(-2px);
}

.question-header {
  background: #f1f5f9;
  padding: 15px;
  border-radius: 6px;
  font-weight: bold;
  margin-bottom: 20px;
}

.options label {
  display: block;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

#timer {
  color: red;
  font-size: 18px;
  margin-bottom: 15px;
  text-align: center;
  font-weight: normal;
}

.options input[type="radio"] {
  margin-right: 10px;
}

.options label.selected {
  background: #d1f7d6;
  border-color: #4caf50;
}

.navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.navigation-buttons button {
  background: #3f51b5;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.navigation-buttons button:hover {
  background: #303f9f;
}

#status {
  margin-top: 15px;
  color: red;
}

.result-container {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
}

.result-container h3 {
  text-align: center;
  margin-bottom: 20px;
}

.trait-result {
  margin-bottom: 20px;
}

.trait-label {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

.trait-bar {
  background: #eee;
  border-radius: 20px;
  overflow: hidden;
  height: 24px;
}

.trait-bar-fill {
  height: 100%;
  line-height: 24px;
  color: #fff;
  text-align: right;
  padding-right: 10px;
  font-weight: bold;
  border-radius: 20px;
  transition: width 0.5s ease;
}

.trait-O { background: #4caf50; }
.trait-C { background: #2196f3; }
.trait-E { background: #ff9800; }
.trait-A { background: #9c27b0; }
.trait-N { background: #f44336; }

/* Borang pembayaran */
#paymentForm {
  margin-top: 20px;
  text-align: center;
}

#paymentForm h3 {
  margin-bottom: 15px;
  color: #333;
}

#paymentForm input[type="text"],
#paymentForm input[type="email"] {
  width: 80%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1em;
}

#paymentForm button {
  background: #4caf50;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

#paymentForm button:hover {
  background: #43a047;
}/* Form permulaan ujian */
#startForm {
  text-align: center;
  margin-top: 20px;
}

/* Input dalam #startForm */
#startForm input[type="text"],
#startForm input[type="email"] {
  width: 90%;
  max-width: 400px;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

/* Fokus input */
#startForm input[type="text"]:focus,
#startForm input[type="email"]:focus {
  border-color: #3f51b5;
  box-shadow: 0 0 0 3px rgba(63,81,181,0.2);
  outline: none;
}

/* Butang mula ujian */
#startForm button {
  background: #3f51b5;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

/* Hover butang */
#startForm button:hover {
  background: #303f9f;
  transform: translateY(-2px);
}

/* Responsif form */
@media (max-width: 600px) {
  #startForm input[type="text"],
  #startForm input[type="email"] {
    width: 100%;
  }
}