section {
    display: flex;
    justify-content: center;
}



.step-form-container {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2); 
}

/* Header */
.frame-header {
  position: relative;
  height: 100px;
  /* background: linear-gradient(to right, #999, #ccc); */
  background-image: url('../img/jpg/backlayer-grey.jpg'); 
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;

}
.header-overlay {
  height: 100%;
  padding: 15px;
  color: #fff;
  font-weight: bold;
  background: rgba(0, 0, 0, .5)
}

/* frame wrapper */
.frame-wrapper {
  display: flex;
  flex: 1;
}

/* Sidebar Navigation */
.frame-navigation {
  width: 200px;
  background: #f8f8f8;
  padding: 15px;
  border-right: 1px solid #ddd;
  font-size: 14px;
  transition: all 0.3s ease;
  overflow: scroll;
  overflow-x: auto;
}
.frame-navigation .nav-title {
  font-weight: bold;
  margin-top: 20px;
}

/* navigation */
/* Container UL styling */
.nav-step {
  position: relative;
  margin-left: 0px;
  padding-left: 20px;
  border-left: 2px dashed #ccc; /* vertical line */
  list-style: none;
}

/* Each LI item with bullet */
.nav-step > li {
  position: relative;
  padding: 6px 0 0px 0px;
  cursor: pointer;
  white-space: nowrap;
  
}

/* Subitems */
.nav-step li ul {
  margin-left: 0px;
  padding-left: 20px;
  border-left: 2px dashed #ccc;
  list-style: none;
}

/* Bullet before each item */
.nav-step li::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 10px;
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  z-index: 1;
}

/* Aktif / Terpilih */
.nav-step li.active::before {
  background-color: #8e9bff;
}

/* Optional: Hover effect */
.nav-step li:hover::before {
  background-color: #aaa;
}


/* Main frame Body */
.frame-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
}

/* Section Description */
.frame-description {
  padding: 20px;
  border-bottom: 1px solid #eee;
}
.section-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-info .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 24px;
  border: 1px solid #a5b4fc; /* contoh border */
  border-radius: 4px; /* kotak, bukan bulat */
  margin-right: 10px;
  background-color: #e0e7ff; /* contoh warna background */
  color: #6573e1; /* contoh warna background */

}

.progress-bar {
  height: 4px;
  background: #eee;
  margin-top: 10px;
  position: relative;
}
.progress-bar .progress {
  height: 100%;
  background: #8e9bff;
}

/* frame content */
.frame-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  padding: 20px 10px;
}
.frame-content-wrapper{
  width: 90%;
}

/* Footer */
.frame-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid #eee;
  padding: 10px 20px;
  background: #fafafa;
  text-align: center;
}

.footer-info {
  font-size: 12px;
  color: #777;
  margin-bottom: 1rem;
}
.frame-buttons {
  margin-bottom: 1rem;
}
.frame-buttons .btn {
  padding: 5px 15px;
  border: none;
  background: #ddd;
  border-radius: 4px;
  margin-left: 5px;
  cursor: pointer;
}
.frame-buttons .btn.next {
  background-color: #8e9bff;
  color: white;
}

/* Toggle Button - Mobile Only */
.section-description-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Tombol toggle */
.nav-toggle {
  display: none; /* default: tidak tampil di desktop */
  font-size: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  color: #666;
}

/* questionaire */
.question-container {
  font-family: sans-serif;
  max-width: 600px;
  margin: 0 auto;
}

.question-title {
  margin-bottom: 16px;
  text-align: center;
}

.question-subtext {
  color: #999;
  font-size: 14px;
  margin-top: 4px;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option {
  display: flex;
  align-items: center;
  background-color: #f8f9fa;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s;
  user-select: none;
  position: relative;
}

.option input[type="radio"] {
  display: none;
}

.option:hover {
  background-color: #e9ecef;
}

.option input[type="radio"]:checked + .option-letter {
  background-color: #003cb3;
}

.option input[type="radio"]:checked ~ .option-text,
.option input[type="radio"]:checked ~ .option-letter {
  color: #003cb3;
  
}

.option input[type="radio"]:checked ~ * {
  font-weight: bold;
}

.option input[type="radio"]:checked ~ .option-letter {
  background-color: #e6f0ff;
  border: 2px solid #0066ff;
  color: #0066ff;
}

.option input[type="radio"]:checked ~ .option-text {
  color: #0066ff;
}

.option-letter {
  width: 32px;
  height: 32px;
  background-color: #0066ff;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  margin-right: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

.option-text {
  font-size: 16px;
}

.question-card {
  border: 1px solid #ccc;
  padding: 20px;
  width: 700px;
  background-color: #fff;
  font-family: sans-serif;
}

.scenario, .question {
  margin-bottom: 20px;
}

.answer-section label {
  color: #1a73e8;
  font-size: 14px;
  display: block;
  margin-bottom: 5px;
}

textarea {
  width: 100%;
  height: 150px;
  padding: 10px;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid #ccc;
}



/* Responsive Rules */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .frame-wrapper {
    position: relative;
    flex-direction: column;
    overflow: hidden;
  }

  .frame-navigation {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: #f8f8f8;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  .frame-navigation.show {
    transform: translateX(0);
  }
}


