html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f9fa;
  color: #333;
  padding: 0;
  margin: 0;
}

header, footer {
  background-color: #da251d;
  color: #fff;
  padding: 1rem;
  text-align: center;
  border-radius: 0;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  padding: 2rem;
  border-radius: 0;
  margin: 0 auto;
  max-width: 100%;
}

.background-wayang{
  background-image: url(/assets/img/img-wayang-4.png);
  background-repeat: no-repeat;
  background-size: cover;
}

.home-container {
  text-align: center;
  width: 100%;
  /*max-width: 960px;*/
}

.logo {
  height: 60px;
  vertical-align: middle;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
header h1 {
  display: block;
  vertical-align: middle;
  margin: 0;
}
header {
  display: flex;
  /*flex-direction: column;*/
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/*untuk kategori home*/
.kategori-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.kategori-card {
  background-color: #da251d;
  color: white;
  padding: 1rem;
  border-radius: 15px;
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kategori-card:hover {
  background-color: #da251d;
  transform: translateY(-4px);
}

.kategori-btn {
  background-color: #da251d;
  color: white;
  border: none;
  padding: 1.2rem 2rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
}

.kategori-btn:hover {
  background-color: #da251d;
}

/*typography*/
li, p{line-height: 1.5}
li::marker {font-weight: bold;}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.card {
  flex: 1 1 220px;
  max-width: 250px;
  padding: 1.2rem;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-decoration: none;
  font-weight: bold;
  font-size: smaller;
  color: #004085;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  background-color: #f1f5ff;
}


/*KUESIONER*/
.form-container {
  min-width: 900px;
  margin: auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}
.form-container ul {
  list-style: disc;
  padding-left: 1.5rem;
  line-height: 1.6;
}

form label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
  text-align: left;
}

form input, form select, form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

button.btn,
a.btn {
  display: inline-block;
  width: 100%;
  max-width: 300px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  margin-top: 1.5rem;
  box-sizing: border-box;
}

.btn-sm{padding: 5px 10px !important; width: auto !important;}
.btn-auto-margin{margin: auto !important;}

.btn-primary {
  background-color: #da251d;
  color: #fff;
}

.btn-primary:hover {
  background-color: #da251d;
}

.btn-secondary {
  background-color: #ccc;
  color: #333;
}

.btn-secondary:hover {
  background-color: #bbb;
}

.text-left{text-align: left !important;}
.text-normal {font-weight: normal !important;}
.fw-blod {font-weight: bold !important;}
/*.contentCollapse{display: none;}*/

button.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/*Form Modal*/
.modal form, #emailModal form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.modal input, #emailModal input,
.modal button, #emailModal button {
  width: 100%;
  margin-top: 0.75rem;
}

/*Form Soal*/
form label.form-check {
    display: flex;
    margin-top: 1rem;
    font-weight: bold;
    text-align: left;
    align-items: flex-start;
    gap: 0.5rem;
}
form label.form-check input[type="checkbox"] {width: auto;}
form label.form-check input[type="radio"] {width: auto;}

/* List dengan angka dan ")" */
.angka-paren {
  list-style: none;
  counter-reset: custom-counter;
  padding-left: 0rem;
}

.angka-paren li {
  counter-increment: custom-counter;
  position: relative;
  padding-left: 1.5rem;
}

.angka-paren li::before {
  content: counter(custom-counter) ").";
  position: absolute;
  left: 0;
  font-weight: bold;
}

/*Untuk Kontak Pendahuluan*/
.kontak-wrapper {
  margin-left: 3em;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px; /* spasi antar item */
  /*justify-content: center;*/
  align-items: center;
}

.kontak-item {
  flex: 1 1 45%; /* 2 kolom di desktop */
  max-width: 45%;
  /*font-size: 14px;*/
}

.kontak-label {
  color: #444;
  font-style: italic;
}

/*Table*/
table.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 14px;
}

table.table th,
table.table td {
  border: 1px solid #ccc;
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
}

table.table th {
  background-color: #f7f7f7;
  font-weight: bold;
  word-break: break-word;
}

table.table-bordered {
  border: 1px solid #999;
}

table.table-bordered th,
table.table-bordered td {
  border: 1px solid #999;
}

table.table input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  padding: 5px 8px;
  font-size: 14px;
}

/*Progress bar*/
.progress-wrap{
  display: flex;
  width: auto;
  flex-wrap: nowrap;
  align-content: stretch;
  align-items: center;
  flex-direction: row;
  justify-content: normal;
  gap: 10px;
  margin-top: 1.5rem;
}
.progress-section {
    font-family: sans-serif;
}
.progress-section label{
  margin-top: 0px;
  font-weight: 600;
  font-size: 14px;
  font-family: system-ui;
}
.progress-container {
    background-color: #e0e0e0;
    border-radius: 1rem;
    width: 100%;
    overflow: hidden; /* Penting agar bar tidak keluar dari container */
    margin-top: 5px;
    position: relative;
}
.progress-bar {
    background-color: #fdd835; /* Warna Kuning seperti contoh */
    height: 1.25rem;
    border-radius: 1rem;
    transition: width 0.4s ease-in-out; /* Animasi halus saat progres berubah */
}
.progress-persen{
  font-weight: bold;
  font-size: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  text-align: center;
  padding: 2px;
}
.question-counter {
    font-size: 14px;
    font-weight: 600;
    color: #da251d;
    font-family: system-ui;
    text-align: center;
    width: 70px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    box-shadow: inset -1px -1px 10px 5px #e0e0e0;
}


/*RESPONSIVE*/
@media screen and (max-width: 768px) {
  main {
    padding: 1rem;
  }
  .card {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .kontak-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}