/* ============================================================
   PAGE: Feedback — Kirim Masukan
   Hero gradient Comika + form inline (bukan popup).
============================================================ */

/* ── TOPBAR transparan di atas hero ──────────────────────── */
.site-top {
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
html[data-hero]:not(.topbar-solid) .site-top {
  background: linear-gradient(135deg, #264284 0%, #246DA9 45%, #1FC3F3 100%);
  border-bottom-color: rgba(255,255,255,.12);
}

/* ── HERO ─────────────────────────────────────────────────── */
.fb-hero {
  position: relative;
  width: 100%;
  min-height: 52vh;
  display: flex;
  align-items: center;
  padding: clamp(6rem,13vw,9rem) 0 clamp(3rem,6vw,5rem);
  background: linear-gradient(135deg, #264284 0%, #246DA9 45%, #1FC3F3 100%);
  overflow: hidden;
}
.fb-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 50%, #000, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 50%, #000, transparent 80%);
  pointer-events: none;
}
.fb-hero::after {
  content: '';
  position: absolute;
  width: clamp(220px,32vw,400px);
  height: clamp(220px,32vw,400px);
  right: clamp(-80px,-5vw,-40px);
  bottom: clamp(-80px,-5vw,-40px);
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.15);
  pointer-events: none;
}
.fb-hero-in {
  position: relative;
  z-index: 1;
  max-width: 620px;
}
.fb-hero .eyebrow { color: rgba(255,255,255,.75); margin-bottom: 1rem; letter-spacing: .22em; }
.fb-hero-title {
  font-family: var(--f-h);
  font-size: clamp(2.2rem,5.5vw,4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
  color: #fff;
  margin: 0 0 1rem;
}
.fb-hero-title::after {
  content: '';
  display: block;
  width: 48px; height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.4);
  margin-top: .85rem;
}
.fb-hero-lead {
  font-size: clamp(.95rem,1.5vw,1.08rem);
  color: rgba(255,255,255,.78);
  line-height: 1.76;
  max-width: 50ch;
  margin: 0;
}

/* ── FORM SECTION ─────────────────────────────────────────── */
.fb-sec {
  padding: clamp(3rem,7vw,5.5rem) 0 clamp(4rem,9vw,7rem);
}

/* Desktop: 2-col — sidebar kiri sticky, form kanan */
.fb-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(2.5rem,5vw,5rem);
  align-items: start;
}

/* SIDEBAR */
.fb-sidebar {
  position: sticky;
  top: 90px;
}
.fb-sec-title {
  font-family: var(--f-h);
  font-size: clamp(1.3rem,2.2vw,1.65rem);
  font-weight: 700;
  color: var(--ink2);
  margin: 0 0 .5rem;
  letter-spacing: -.015em;
}
.fb-sec-sub {
  font-size: .92rem;
  color: var(--muted);
  margin: 0 0 1.8rem;
  line-height: 1.68;
}
.fb-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.fb-sidebar-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.55;
}
.fb-sidebar-list i,
.fb-sidebar-list svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--b3); margin-top: 1px; }

/* ── FORM ─────────────────────────────────────────────────── */
.fb-form { display: flex; flex-direction: column; gap: 1.1rem; }

.fb-form-row { display: flex; flex-direction: column; gap: .38rem; }

.fb-form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* label */
.fb-label {
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink);
}
.fb-label-opt {
  font-weight: 400;
  color: var(--muted);
  font-size: .78rem;
}

/* input + icon wrapper */
.fb-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.fb-input-wrap .fb-input { padding-left: 2.55rem; }
.fb-input-icon {
  position: absolute;
  left: .8rem;
  width: 15px; height: 15px;
  color: var(--muted);
  pointer-events: none;
  flex-shrink: 0;
  transition: color .2s;
}
.fb-input-wrap:focus-within .fb-input-icon { color: var(--b2); }

/* base input */
.fb-input,
.fb-select,
.fb-textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg2);
  color: var(--ink2);
  font-family: var(--f-b);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  box-sizing: border-box;
}
.fb-input::placeholder,
.fb-textarea::placeholder { color: var(--muted); opacity: .6; }
.fb-input:focus,
.fb-select:focus,
.fb-textarea:focus {
  border-color: var(--b3);
  box-shadow: 0 0 0 3px rgba(33,152,206,.14);
  background: var(--bg);
}
[data-theme="dark"] .fb-input,
[data-theme="dark"] .fb-select,
[data-theme="dark"] .fb-textarea { background: var(--bg3); }
[data-theme="dark"] .fb-input:focus,
[data-theme="dark"] .fb-select:focus,
[data-theme="dark"] .fb-textarea:focus { background: var(--bg2); }

/* select arrow */
.fb-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.fb-textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.65;
}

/* ── DIVIDER ──────────────────────────────────────────────── */
.fb-divider {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: .4rem 0;
}
.fb-divider::before,
.fb-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ── RADIO GROUP (Ya / Belum) ─────────────────────────────── */
.fb-radio-group {
  display: flex;
  gap: .6rem;
}
.fb-radio-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .7rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg2);
  color: var(--muted);
  font-family: var(--f-b);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
  user-select: none;
}
.fb-radio-btn:hover { border-color: var(--b3); color: var(--ink2); }
.fb-radio-btn.selected {
  border-color: var(--b3);
  background: rgba(33,152,206,.08);
  color: var(--b2);
  box-shadow: 0 0 0 3px rgba(33,152,206,.12);
}
[data-theme="dark"] .fb-radio-btn.selected { background: rgba(33,152,206,.18); }
.fb-radio-btn svg { width: 16px; height: 16px; }

/* ── RATING 1–10 ──────────────────────────────────────────── */
.fb-rating {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.fb-rating-btn {
  width: 44px; height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg2);
  color: var(--muted);
  font-family: var(--f-h);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .18s, background .18s, color .18s, transform .18s;
}
.fb-rating-btn:hover { border-color: var(--b3); color: var(--b2); transform: translateY(-2px); }
.fb-rating-btn.selected {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(38,66,132,.28);
}
.fb-rating-labels {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--muted);
  margin-top: .4rem;
}

/* ── ACTIONS ──────────────────────────────────────────────── */
.fb-form-actions { margin-top: .6rem; display: flex; flex-direction: column; gap: .65rem; }

.fb-form-error[hidden] { display: none !important; }
.fb-form-error {
  font-size: .855rem;
  color: #c0392b;
  background: rgba(192,57,43,.08);
  border: 1px solid rgba(192,57,43,.22);
  border-radius: 10px;
  padding: .65rem 1rem;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: .45rem;
}
.fb-form-error::before { content: '⚠'; flex-shrink: 0; }
[data-theme="dark"] .fb-form-error { background: rgba(192,57,43,.15); }

.fb-submit-btn {
  width: 100%;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.5rem !important;
  background: var(--grad) !important;
  color: #fff !important;
  border: none !important;
  font-size: .96rem !important;
  letter-spacing: .02em;
  transition: transform .25s var(--ease), box-shadow .25s !important;
}
.fb-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 30px rgba(38,66,132,.3) !important;
}
.fb-submit-btn:disabled { opacity: .65 !important; cursor: not-allowed !important; }
.fb-submit-btn svg { width: 16px; height: 16px; }

.fb-form-note {
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

/* ── SUCCESS ──────────────────────────────────────────────── */
.fb-success[hidden],
.fb-form[hidden] { display: none !important; }

.fb-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  gap: 1rem;
}
.fb-success-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--b1), var(--cy));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 12px 36px rgba(38,66,132,.3);
}
.fb-success-icon svg { width: 36px; height: 36px; }
.fb-success-title {
  font-family: var(--f-h);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink2);
  margin: 0;
  letter-spacing: -.015em;
}
.fb-success p { font-size: .94rem; color: var(--muted); line-height: 1.72; margin: 0; max-width: 40ch; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .fb-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .fb-sidebar {
    position: static;
    /* di mobile sidebar jadi intro singkat di atas form */
  }
  .fb-sidebar-list { display: none; } /* hide bullet list di mobile — redundant */
}

@media (max-width: 640px) {
  .fb-hero { min-height: 45vh; }
  .fb-form-2col { grid-template-columns: 1fr; gap: .9rem; }
  .fb-rating-btn { width: 38px; height: 38px; font-size: .82rem; }
  .fb-form { gap: .9rem; }
  .fb-input, .fb-select, .fb-textarea { font-size: 1rem; }
}
