/* Estimator biaya event — memakai token warna dari style.css (tema terang).
   Sengaja dipisah supaya halaman utama tidak ikut menanggung CSS ini. */

.est-body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  margin: 0;
  padding-bottom: 96px;
}

/* ---------------------------------------------------------------- header */
.est-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px var(--pad);
  background: rgba(246, 245, 242, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.est-back {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.est-back:hover { text-decoration: underline; }
.est-head__title {
  font-family: var(--disp);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------------ layout */
.est-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.est-hero { padding: 48px 0 28px; max-width: 62ch; }
.est-hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.12;
  margin: 0 0 14px;
  letter-spacing: -.02em;
}
.est-hero p { color: var(--muted); font-size: 16px; line-height: 1.65; margin: 0; }

.est-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 22px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.est-panel--form, .est-summary { display: block; }
.est-panel h2 {
  font-family: var(--disp);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 16px;
}
.est-panel h2 span { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }

.est-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.est-field { display: flex; flex-direction: column; gap: 6px; }
.est-field--wide { grid-column: 1 / -1; }
.est-field label { font-size: 12px; font-weight: 600; color: var(--muted); }
.est-field input, .est-field select {
  font: inherit;
  font-size: 15px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--ink);
  width: 100%;
}
.est-field input:focus, .est-field select:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

/* ------------------------------------------------------------------ chips */
.est-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.est-chip {
  font: inherit;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.est-chip:hover { background: var(--paper-2); }
.est-chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ------------------------------------------------------------------ katalog */
.est-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  margin-bottom: 26px;
}
.est-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
}
.est-item__name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.est-item__spec { color: var(--muted); font-size: 13px; margin-top: 3px; line-height: 1.45; }
.est-item__meta { color: var(--muted); font-size: 11.5px; margin-top: 6px; text-transform: uppercase; letter-spacing: .04em; }
.est-item__side { text-align: right; flex-shrink: 0; }
.est-item__price { font-weight: 700; font-size: 15px; white-space: nowrap; margin-bottom: 8px; }
.est-tag {
  font-size: 10px;
  background: var(--ink);
  color: var(--paper);
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
  letter-spacing: .04em;
}
.est-add {
  font: inherit; font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  cursor: pointer;
}
.est-add:hover { opacity: .88; }
.est-qty { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; }
.est-qty button {
  font: inherit; font-size: 16px; line-height: 1;
  width: 26px; height: 26px; border-radius: 50%;
  border: none; background: var(--paper-2); color: var(--ink); cursor: pointer;
}
.est-qty button:hover { background: var(--line); }
.est-qty span { min-width: 20px; text-align: center; font-weight: 600; font-size: 14px; }
.est-empty { color: var(--muted); font-size: 14px; padding: 18px 0; margin: 0; }

/* ---------------------------------------------------------------- ringkasan */
.est-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.est-row__name { font-size: 14.5px; font-weight: 500; }
.est-row__name span { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; margin-top: 2px; }
.est-row__total { font-weight: 600; font-size: 14.5px; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.est-row__total button {
  font: inherit; font-size: 17px; line-height: 1;
  border: none; background: none; color: var(--muted); cursor: pointer; padding: 0 2px;
}
.est-row__total button:hover { color: #b3261e; }

.est-tot { margin: 20px 0 10px; display: grid; gap: 8px; }
.est-tot div { display: flex; justify-content: space-between; }
.est-tot dt { color: var(--muted); font-size: 14px; margin: 0; }
.est-tot dd { margin: 0; font-weight: 600; font-size: 14px; }
.est-tot__grand { border-top: 2px solid var(--ink); padding-top: 12px; margin-top: 6px; }
.est-tot__grand dt { color: var(--ink); font-weight: 700; font-size: 16px; }
.est-tot__grand dd { font-size: 21px; font-weight: 700; }

.est-note { color: var(--muted); font-size: 12.5px; margin: 4px 0 12px; }
.est-disclaimer { color: var(--muted); font-size: 12.5px; line-height: 1.6; margin: 0 0 16px; }

/* --------------------------------------------------------------- tombol/bar */
.est-btn {
  font: inherit; font-size: 14px; font-weight: 600;
  padding: 11px 18px; border-radius: 999px;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
}
.est-btn:hover { background: var(--paper-2); }
.est-btn--quiet { font-size: 13px; padding: 8px 14px; color: var(--muted); }
.est-btn--ghost { background: var(--white); }
.est-btn--wa { background: #25d366; border-color: #25d366; color: #06281a; }
.est-btn--wa:hover { opacity: .9; background: #25d366; }

.est-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px var(--pad);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.est-bar__total { flex: 1 1 auto; min-width: 120px; }
.est-bar__total span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.est-bar__total strong { font-size: 18px; }

.est-toast {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%);
  z-index: 40; background: var(--ink); color: var(--paper);
  padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 500;
}

.est-foot { text-align: center; padding: 34px var(--pad) 20px; color: var(--muted); font-size: 12.5px; }
.est-foot a { color: var(--ink); }

@media (max-width: 620px) {
  .est-hero { padding: 32px 0 22px; }
  .est-list { grid-template-columns: 1fr; }
  .est-bar { gap: 8px; }
  .est-btn { padding: 10px 14px; font-size: 13px; }
  .est-bar__total strong { font-size: 16px; }
}
