:root {
  --primary: #2c3e50;
  --secondary: #3498db;
  --accent: #e74c3c;
  --success: #04ab0f;
  --light: #ecf0f1;
  --dark: #34495e;
  --header: #04ab0f;
  --tab: #ffae00;
  --progress: #3498db;
}

body {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  padding-bottom: 2rem;
}
/* Header Styles */
.header-section {
  background: rgba(165, 24, 24, 0);
  padding: 1.5rem 1rem;
  margin-bottom: 2rem;
  position: relative;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bank-logo {
  width: 250px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.bank-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.header-title {
  text-align: right;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.header-title h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  color: #0a0f3c;
}

.header-title .subtitle {
  font-size: 0.9rem;
  color: #666;
  margin: 5px 0 0 0;
}

.header-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #ff0066 50%,
    /* #1a3a8f 50%, */ transparent 100%
  );
}

/* Navigation Tabs - Remove Bottom Border */
.nav-tabs {
  border-bottom: none !important;
  margin-bottom: 2rem;
  justify-content: center;
  gap: 10px; /* jarak antar tab */
}

.nav-tabs .nav-item {
  margin-bottom: 0;
}

.nav-tabs .nav-link {
  background-color: white;
  color: var(--dark);
  font-weight: 600;
  padding: 10px 20px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Hover effect */
.nav-tabs .nav-link:hover {
  background-color: rgba(52, 152, 219, 0.05);
  color: var(--tab);
}

/* Tab aktif */
.nav-tabs .nav-link.active {
  background-color: var(--tab); /* contoh: #3498db */
  color: white;
  border-color: var(--tab);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.progress-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.progress-step span {
  background: white;
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.progress-step.active span {
  background: var(--progress);
  color: white;
  transform: scale(1.05);
}

.progress-line {
  height: 4px;
  width: 100px;
  background: #dee2e6;
  margin: 0 10px;
  position: relative;
}

.progress-line::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 0;
  background: var(--secondary);
  transition: width 0.5s ease;
}

.progress-step.active + .progress-line::after {
  width: 100%;
}

.card {
  width: 100%; /* atau max-width: 900px; sesuai kebutuhan */
  margin: 0 auto; /* supaya tetap center di layar */
}

.card-header {
  background: var(--header);
  color: white;
  padding: 15px 20px;
  font-weight: 600;
  border-bottom: none;
}

.alert-info {
  background: #e8f4fc;
  border: none;
  border-radius: 10px;
  color: var(--dark);
  border-left: 4px solid var(--secondary);
}

.form-control {
  border-radius: 8px;
  padding: 12px 15px;
  border: 1px solid #ddd;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.btn {
  border-radius: 8px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--secondary);
  border: none;
}

.btn-primary:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

.btn-success {
  background: var(--success);
  border: none;
}

.btn-success:hover {
  background: #27ae60;
  transform: translateY(-2px);
}

.question-slider {
  position: relative;
  min-height: 400px;
}

.question-container {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: fadeIn 0.5s ease;
}

.question-container.active {
  display: flex;
}

.question-text {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.3rem;
}

.emoji-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.emoji-button {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.emoji-button:hover {
  transform: scale(1.1);
  border-color: var(--secondary);
}

.emoji-button.active {
  border-color: var(--secondary);
  background: #e8f4fc;
  transform: scale(1.1);
}

.navigation-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  width: 100%;
}

.question-counter {
  font-weight: 600;
  color: var(--dark);
}

.tab-content {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  text-align: center;
  margin-top: 3rem;
  color: var(--dark);
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .progress-container {
    flex-direction: row; /* Tetap horizontal */
    gap: 5px; /* Kurangi gap */
    overflow-x: auto; /* Scroll horizontal jika perlu */
    padding-bottom: 10px;
  }

  .progress-step {
    flex-shrink: 0; /* Mencegah step mengecil */
  }

  .progress-step span {
    padding: 8px 15px; /* Kurangi padding */
    font-size: 0.8rem; /* Perkecil font */
    white-space: nowrap; /* Text tidak wrap */
  }

  .progress-line {
    width: 30px; /* Perpendek garis */
    height: 4px; /* Tetap horizontal */
    margin: 0 5px;
  }

  .emoji-container {
    gap: 10px;
  }

  .emoji-button {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .question-text {
    font-size: 1.1rem;
  }

  .navigation-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .navigation-buttons button {
    width: 100%;
  }

  .question-counter {
    order: -1;
  }

  /* Header adjustments untuk mobile */
  .header-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .bank-logo {
    width: 200px;
    height: 50px;
    justify-content: center;
  }

  .header-title {
    position: static;
    transform: none;
    align-items: center;
    text-align: center;
  }

  .header-title h1 {
    font-size: 1.5rem;
  }
}
.emoji-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}
.emoji-button {
  background: none;
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 50px;
  transition: transform 0.2s;
  padding: 10px;
  border-radius: 10px;
}
.emoji-button:hover {
  transform: scale(1.1);
}
.emoji-button.active {
  transform: scale(1.2);
  outline: 3px solid #007bff;
  background-color: #f8f9fa;
}
.emoji-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.emoji-label {
  margin-top: 5px;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}
.question-container {
  display: none;
}
.question-container.active {
  display: block;
}
.question-text {
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 30px;
}
.question-counter {
  font-weight: 500;
  color: #6c757d;
}
