/* Gaya untuk Kalkulator & Konfigurator Layanan */
.calculator-section {
  padding: calc(var(--header-height) + 4rem) 2rem;
}
.config-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
}
.config-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--primary-color);
}
.config-header p {
  font-size: 1.1rem;
  color: var(--text-color);
  max-width: 65ch;
  margin: 1rem auto 0 auto;
}
.calculator-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: auto;
}
.service-category {
  border-bottom: 1px solid #282828;
  margin-bottom: 1.5rem;
}
.category-toggle {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.category-toggle h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.toggle-icon {
  font-size: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.category-toggle.active .toggle-icon {
  transform: rotate(180deg);
}
.category-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.config-item,
.config-item-select {
  display: flex;
  align-items: center;
  background-color: #1a1a1a;
  border: 1px solid #333;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  cursor: pointer;
}
.config-item-select {
  justify-content: space-between;
}
.config-select {
  background-color: #222;
  border: 1px solid #444;
  color: var(--primary-color);
  padding: 0.5rem;
  border-radius: 5px;
}
.item-label {
  flex-grow: 1;
  margin-left: 1rem;
}
.item-price {
  font-family: var(--font-heading);
  font-weight: 500;
}
.config-item input[type="checkbox"] {
  display: none;
}
.checkmark {
  height: 20px;
  width: 20px;
  background-color: #333;
  border: 1px solid #555;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.config-item input:checked + .checkmark {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}
.configurator-summary {
  position: relative;
}
/* GANTI CSS INI di wizard-style.css */

.summary-sticky-content {
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  background-color: #ffffff; /* Ubah background menjadi putih */
  border: 1px solid #e0e0e0; /* Border abu-abu terang */
  border-radius: 12px;
  padding: 2rem;
  color: #111; /* Ubah warna teks default menjadi gelap */
}

.summary-sticky-content h3 {
  font-family: var(--font-body); /* Gunakan font body yang lebih standar */
  font-size: 1.5rem; /* Ukuran font lebih kecil untuk "Project Summary" */
  font-weight: 700; /* Tebal */
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0; /* Garis pemisah abu-abu */
  padding-bottom: 1rem;
  color: #111; /* Pastikan warna teks gelap */
}

#summary-items-list {
  min-height: 150px;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
}

#summary-items-list .empty-state {
  color: #888; /* Warna teks untuk state kosong */
  font-style: normal;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem; /* Sedikit lebih banyak spasi antar item */
  font-size: 1rem;
}

.summary-item-label {
  color: #333; /* Warna teks item lebih gelap */
  max-width: 70%;
}

.summary-item-price {
  font-weight: 500;
  color: #111; /* Warna harga item hitam */
  font-family: var(--font-body); /* Samakan font */
}

/* === SOLUSI FINAL SESUAI GAMBAR TERBARU === */
/* Ganti semua CSS terkait .summary-total dengan blok di bawah ini */

.summary-total {
  border-top: 1px solid #e0e0e0;
  padding-top: 1.5rem;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center; /* DIUBAH: Menyejajarkan blok teks dan harga secara vertikal di tengah */
  gap: 1.5rem; /* Sedikit menambah jarak agar tidak terlalu rapat */
}

/* Selector BARU untuk blok teks "Estimated Total" */
.summary-total-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111;
  justify-self: start;
  line-height: 1.25; /* Mengatur jarak vertikal antara kata "Estimated" dan "Total" */
}

#total-price {
  font-family: var(--font-heading);
  font-size: 2.8rem; /* Sedikit lebih besar agar cocok dengan gambar */
  color: #3f51b5;
  font-weight: 700;
  justify-self: end;
}

#submit-config-btn {
  width: 100%;
  margin-top: 2rem;
  padding: 1rem;
  font-size: 1.1rem;
  background-color: #3f51b5; /* Warna biru untuk tombol */
  color: #ffffff; /* Teks putih */
  border: none;
  border-radius: 8px; /* Sedikit rounded corner */
  font-weight: 700;
}

#submit-config-btn:disabled {
  background-color: #cccccc;
  color: #888888;
  cursor: not-allowed;
}

/* AKHIR DARI CSS YANG DIGANTI */
.info-section {
  padding: 6rem 2rem;
}
.section-title-small {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-size: 3rem;
  text-align: center;
  margin-bottom: 4rem;
}
.process-section {
  background-color: #0c0c0c;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}
.process-step-item {
  text-align: center;
  padding: 2rem;
}
.step-number {
  width: 60px;
  height: 60px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent-color);
  margin: 0 auto 1.5rem auto;
}
.process-step-item h4 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.process-step-item p {
  color: var(--text-color);
  line-height: 1.6;
}
.faq-container {
  max-width: 800px;
  margin: auto;
}
.faq-item {
  border-bottom: 1px solid #282828;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  background: none;
  border: none;
  cursor: pointer;
}
.faq-question i {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}
.faq-question.active i {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}
.faq-answer p {
  padding: 0 0 1.5rem 0;
  color: var(--text-color);
  line-height: 1.7;
  max-width: 65ch;
}
/* =================================================================== */
/* FINAL MODAL STYLES - REFINED MINIMALIST BRUTALISM                   */
/* This complete block replaces all previous modal styles.             */
/* It uses a strict black, white, and grey monochrome palette.         */
/* =================================================================== */

/* --- Modal Overlay: Soft & Unobtrusive --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

/* --- Modal Content: Clean, Structured, and Refined --- */
.modal-content {
  background-color: #111111;
  color: #eaeaea;
  border: 1px solid #444;
  border-radius: 0;
  padding: 3rem;
  width: 100%;
  max-width: 600px;
  max-height: 95vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* --- Close Button: Integrated and Minimal --- */
.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  background-color: transparent;
  color: #888;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close-btn:hover {
  background-color: #222;
  color: #fff;
}

/* --- View Transitions & Typography Hierarchy --- */
.modal-view {
  display: none;
  animation: viewFadeIn 0.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.modal-view.active {
  display: block;
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 0 0 0.75rem 0;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -1px;
}

.modal-subtitle {
  text-align: left;
  margin: 0 0 2.5rem 0;
  color: #ff0000;
  font-weight: bolder;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 45ch;
}

/* --- Refined Form Elements --- */
#projectForm .form-group {
  margin-bottom: 1.5rem;
}

#projectForm input[type="text"],
#projectForm input[type="email"] {
  width: 100%;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid #444;
  border-radius: 0;
  padding: 1rem 0.5rem;
  color: #eaeaea;
  font-family: var(--font-body);
  font-size: 1.1rem;
  transition: border-color 0.3s ease;
}

#projectForm input[type="text"]:focus,
#projectForm input[type="email"]:focus {
  outline: none;
  border-color: #ffffff; /* FINAL COLOR */
}

.form-error-message {
  color: #ff9494;
  font-size: 0.9rem;
  padding-top: 8px;
  display: block;
}

/* --- Simplified Review & Summary View --- */
#summary-list-modal {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
  border-top: 1px solid #333;
}
#summary-list-modal .summary-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid #333;
  font-size: 1rem;
}
#summary-list-modal .summary-item-label {
  color: #aaa;
}
#summary-list-modal .summary-item-price {
  font-weight: 500;
  color: #fff;
}
#summary-list-modal .summary-total-modal {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

/* --- Simplified Security Guarantee --- */
.security-guarantee-box h4 {
  color: #fff;
  margin: 2.5rem 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
  border-top: 1px solid #333;
  padding-top: 2rem;
}
.security-guarantee-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #bbb;
}
.security-guarantee-box li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.security-guarantee-box li i {
  color: #00a6ff;
  margin-top: 5px;
  font-size: 1rem;
}

/* --- Clean Agreement Checkbox --- */
.agreement-group {
  margin: 2.5rem 0;
}
.agreement-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  color: #ccc;
}
.agreement-label input {
  display: none;
}
.agreement-label .checkmark {
  height: 24px;
  width: 24px;
  background-color: transparent;
  border: 2px solid #555;
  border-radius: 4px;
  transition: all 0.2s ease;
  margin-right: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.agreement-label .checkmark::after {
  content: "✓";
  font-size: 1.2rem;
  color: #111;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.agreement-label input:checked + .checkmark {
  background-color: #ffffff; /* FINAL COLOR */
  border-color: #ffffff; /* FINAL COLOR */
}
.agreement-label input:checked + .checkmark::after {
  opacity: 1;
  transform: scale(1);
}

/* --- Minimalist Payment Options --- */
.payment-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2.5rem 0;
}
.payment-option-btn {
  background-color: #1a1a1a;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease-out;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
}
.payment-option-btn:hover {
  background-color: #222;
  border-color: #666;
}
.payment-option-btn.selected {
  background-color: #fff;
  border-color: #fff;
}
.payment-option-btn.selected img {
  filter: brightness(0);
}
.payment-option-btn img {
  max-width: 80%;
  max-height: 40px;
  object-fit: contain;
  transition: filter 0.3s ease;
}
.payment-instructions-container {
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 1.5rem;
  color: #ccc;
  border: 1px solid #444;
}
.payment-instructions-container p {
  margin: 0.5rem 0;
  line-height: 1.6;
}
.payment-instructions-container strong {
  color: #ffffff;
  font-weight: 500;
  background-color: #333;
  padding: 2px 6px;
}
#final-confirmation {
  text-decoration: underline;
  color: #fff !important;
}

/* --- Elegant Success View --- */
.form-status-display {
  text-align: center;
  padding: 2rem 0;
  display: none;
}
.form-status-display.active {
  display: block;
}
.form-status-display i {
  font-size: 3rem;
  color: #111;
  background-color: #ffffff; /* FINAL COLOR */
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 2rem auto;
}
.form-status-display h3,
.form-status-display p {
  text-align: center;
}
.form-status-display h3 {
  margin: 0 auto 1rem auto;
  max-width: 15ch;
  line-height: 1.2;
}
.form-status-display p {
  max-width: 40ch;
  margin: 0 auto 2.5rem auto;
}

/* --- Universal CTA Button in Modal: Final Monochrome Version --- */
.modal-view .cta-button {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1.25rem;
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: 6px;
  border: none;
  background-color: #ffffff;
  color: #000000;
  text-align: center;
  text-transform: none;
  transition: all 0.2s ease-out;
  cursor: pointer;
}

.modal-view .cta-button:hover:not(:disabled) {
  background-color: #cccccc;
  color: #000000;
}

.modal-view .cta-button:disabled {
  background-color: #2a2a2a;
  color: #555;
  cursor: not-allowed;
}

/* --- Breakpoint untuk Tablet & Perangkat Horizontal Kecil (<= 1200px) --- */
@media (max-width: 1200px) {
  .calculator-container {
    /* Ubah layout utama dari 2 kolom menjadi 1 kolom */
    grid-template-columns: 1fr;
    gap: 2.5rem; /* Kurangi jarak antar elemen */
  }

  .summary-sticky-content {
    /* Nonaktifkan 'sticky' pada tablet agar ringkasan mengalir normal */
    position: static;
    top: auto;
  }

  #summary-items-list {
    /* Batasi tinggi maksimum agar tidak terlalu memanjang */
    max-height: 250px;
  }
}

/* --- Breakpoint untuk Perangkat Mobile (<= 768px) --- */
@media (max-width: 768px) {
  /* --- Penyesuaian Umum & Tipografi --- */
  .calculator-section {
    /* Kurangi padding pada layar kecil */
    padding: calc(var(--header-height) + 2rem) 1rem;
  }

  .config-header h1 {
    font-size: 2.2rem; /* Perkecil ukuran judul utama */
  }

  .config-header p {
    font-size: 1rem;
  }

  .info-section {
    padding: 4rem 1rem; /* Kurangi padding untuk bagian info & FAQ */
  }

  .section-title-small {
    font-size: 2.5rem; /* Perkecil judul bagian */
    margin-bottom: 3rem;
  }

  /* --- Layout Kalkulator --- */
  .calculator-container {
    gap: 2rem;
  }

  .category-toggle h3 {
    font-size: 1.4rem; /* Perkecil judul kategori layanan */
  }

  .config-item,
  .config-item-select {
    padding: 1rem;
    flex-direction: column; /* Susun item secara vertikal */
    align-items: flex-start; /* Ratakan ke kiri */
    gap: 0.75rem;
  }

  .item-label {
    margin-left: 0; /* Hapus margin kiri pada label */
  }

  .config-select {
    width: 100%; /* Buat dropdown memenuhi lebar kontainer */
    margin-top: 0.5rem;
  }

  /* --- Tata Letak Kolom Ringkasan --- */
  .summary-sticky-content {
    padding: 1.5rem;
  }

  .summary-total {
    /* Atur ulang layout total harga agar lebih rapi di mobile */
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.5rem;
  }

  .summary-total-label {
    justify-self: center; /* Posisikan label di tengah */
    line-height: 1.5;
  }

  #total-price {
    font-size: 2.5rem; /* Sesuaikan ukuran font total harga */
    justify-self: center; /* Posisikan harga di tengah */
  }

  /* --- Proses & FAQ --- */
  .process-steps {
    /* Grid sudah responsif, hanya kurangi jarak */
    gap: 1rem;
  }

  .faq-question {
    font-size: 1.1rem;
    padding: 1.25rem 0;
  }

  /* --- Modal Responsif --- */
  .modal-content {
    /* Kurangi padding modal dan batasi lebar agar tidak meluber */
    padding: 2.5rem 1.5rem;
    max-height: 90vh;
  }

  .modal-content h2 {
    font-size: 2rem; /* Perkecil judul di dalam modal */
  }

  .modal-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .payment-options-grid {
    /* Ubah grid pembayaran menjadi 1 kolom agar tidak sempit */
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .config-header h1 {
    font-size: 1.9rem;
  }
  .section-title-small {
    font-size: 2.1rem;
  }
  .modal-content h2 {
    font-size: 1.7rem;
  }
}
