:root {
    --primary-color: #c8191a;
    --secondary-color:#082b4c;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f6f8fa;
  color: #082b4c;
}

.container {
  max-width: 700px;
  margin: auto;
  padding: 30px 16px;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

.form-header {
  text-align: center;
  margin-bottom: 32px;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  border-radius: 10px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.brand img {
  height: 72px; /* kecil & profesional */
  width: auto;
}

.brand-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-color);
}

.form-header h1 {
  margin-top: 8px;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

h1 {
  color: var(--primary-color);
  font-size: 2.5em;
  margin: 16px 0;
}

.card h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 6px;
}

.summary h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
}

h2 {
  margin-top: 0;
}

p {
  margin: 6px 0;
}


.money-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.label-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.4;
}

.input-wrapper {
  position: relative;
  width: 160px;
}

.input-wrapper .currency {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
  font-size: 14px;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  height: 38px;
  box-sizing: border-box;
  padding-left: 24px; /* space for $ */
  text-align: center;
  
}

label {
  font-size: 14px;
}

input {
  border-radius: 4px;
  padding: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 1px rgba(8, 43, 76, 0.15);
}

.total {
  margin-top: 10px;
  font-weight: bold;
}

.summary {
  background: var(--secondary-color);
  color: #ffffff;
  border-radius: 8px;
  padding: 24px;
}

.summary-list {
  margin-top: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
}

.summary-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  margin: 16px 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.grand-total {
  font-size: 28px;
  margin-top: 10px;
}

.step {
  display: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.step-indicator {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

button {
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 6px;
  border: none;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

button:disabled {
  background-color: #cfd6dc;
  color: #7a8792;
  cursor: not-allowed;
}

button:hover:not(:disabled) {
  opacity: 0.9;
}

.note {
  font-size: 14px;
  color: var(--secondary-color);
  margin-bottom: 40px;
}

.step-warning {
  background: rgba(200, 25, 26, 0.08); /* soft red */
  color: var(--primary-color);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  margin-top: 14px;
  text-align: center;
  display: none;
}

.sticky-total {
  position: sticky;
  bottom: 0;
  background: #f9fafb;
  padding: 12px 16px;
  margin-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.1);

  display: flex;
  justify-content: space-between;
  align-items: center;

  font-weight: 600;
  color: var(--secondary-color);

  box-shadow: 0 -2px 6px rgba(0,0,0,0.05);
}

.confirmation {
  border: 2px solid rgba(8, 43, 76, 0.08);
}

.confirmation-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.confirmation-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--secondary-color);
}

.confirmation input {
  height: 40px;
  padding: 8px 12px;
  font-size: 14px;
}

.confirm-hint {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 10px;
}

.submit-btn {
  width: 100%;
  margin-top: 30px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  background: var(--primary-color);
}

input[readonly] {
  background: #f4f6f8;
  cursor: not-allowed;
}

.form-contact {
  margin-top: 40px;
  padding: 16px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 13px;
  color: #555;
  text-align: center;
}

.form-contact strong {
  color: var(--secondary-color);
  font-weight: 600;
}

.form-contact a {
  color: inherit;
  text-decoration: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 12px 0;
}

.field {
  display: flex;
  flex-direction: column;
  margin: 10px 0;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding: 10px;
  text-align: left;
}

.data-table input {
  width: 100%;
}

.data-table thead th {
  position: sticky;
  top: 0;
  background: #f9fafb;
  z-index: 2;
  border-bottom: 2px solid rgba(0,0,0,0.1);
}

.table-total {
  position: sticky;
  bottom: 0;
  background: #ffffff;
  font-weight: 600;
  border-top: 2px solid rgba(0,0,0,0.15);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -16px; /* align dengan container padding */
  padding: 0 16px;
}

/* ===============================
   YES / NO + EXPLANATION FIELDS
================================= */

.field select {
  height: 40px;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.2);
  background-color: #ffffff;
  color: var(--secondary-color);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none; /* remove default arrow (modern look) */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23082b4c' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}

.field select:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 0 1px rgba(8, 43, 76, 0.15);
}

/* Explanation textarea */
.field textarea {
  margin-top: 8px;
  min-height: 70px;
  resize: vertical;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.2);
  padding: 10px 12px;
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  background: #f9fafb; /* soft background */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 0 1px rgba(8, 43, 76, 0.15);
}

/* Optional: visual grouping for YES/NO questions */
.field select + textarea {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}


.sub-section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--secondary-color);
  margin: 24px 0 8px;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  padding-bottom: 6px;
}

.assets-section input[readonly] {
  background: #f4f6f8;
  color: #555;
  cursor: not-allowed;
}

/* ===============================
   HIDE NUMBER INPUT SPINNERS
================================= */

/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.income-note {
  display: block;
  font-size: 0.8em;
  font-weight: 400;
  color: #666;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

    .field select {
    font-size: 14px;
  }

  .field textarea {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .input-wrapper {
    width: 100%;
    max-width: 120px;
  }

  .nav-bar {
    flex-direction: column;
    gap: 20px;
  }
}