/* Form mandiri Jemaat Perdana Hadir & Kartu Kunjungan */
.fv-page {
  --fv-bg: #f4f1ea;
  --fv-card: #fffdf9;
  --fv-border: #e7dfd3;
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
}

.fv-page .fv-card {
  background: var(--fv-card);
  border: 1px solid var(--fv-border);
  border-radius: 1.25rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 12px 40px rgba(46, 42, 38, 0.06);
}

.fv-notice {
  background: rgba(200, 155, 75, 0.12);
  border: 1px solid rgba(200, 155, 75, 0.35);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.fv-consent-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}

.fv-consent-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--fv-border);
  border-radius: 0.75rem;
  cursor: pointer;
  background: #fff;
}

.fv-consent-option:has(input:checked) {
  border-color: #c89b4b;
  background: rgba(200, 155, 75, 0.08);
}

.fv-consent-options.fv-source-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.35rem 0 0.65rem;
}

@media (min-width: 420px) {
  .fv-consent-options.fv-source-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.fv-consent-options.fv-source-options .fv-consent-option,
.fv-consent-options.fv-source-options .fv-source-option {
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.3rem;
  padding: 0.5rem 0.35rem;
  min-height: 0;
}

.fv-consent-options.fv-source-options .fv-source-option input[type="radio"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.fv-source-option__icon {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5c534a;
  pointer-events: none;
}

.fv-source-option__icon .ui-ico-svg {
  width: 1.35rem;
  height: 1.35rem;
}

.fv-source-option__icon img {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  display: block;
}

.fv-source-option__label {
  flex: 0 1 auto;
  min-width: 0;
  pointer-events: none;
}

.fv-source-option__label strong {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
}

.fv-source-option:has(input:checked) .fv-source-option__icon {
  color: #8a6b2e;
}

#fv-panel-source .fv-panel-head {
  margin-bottom: 0.65rem;
}

#fv-panel-source .fv-tick-field {
  margin-bottom: 0.5rem;
}

.fv-tick-field {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
  min-width: 0;
}

.fv-tick-field__legend {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  padding: 0;
  float: none;
  width: 100%;
}

.fv-worship-options {
  margin-top: 0;
}

.fv-willing-fields[hidden] {
  display: none !important;
}

.fv-visit-card {
  text-align: center;
  padding: 1.5rem;
}

.fv-visit-card__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.fv-visit-card__qr {
  max-width: 220px;
  margin: 1rem auto;
}

.fv-visit-card__meta {
  font-size: 0.9rem;
  color: #78716c;
  margin: 0.35rem 0;
}

.fv-visit-card__name {
  font-size: 1.8rem;
  line-height: 1.25;
  color: #292524;
  margin: 0.5rem 0 0.75rem;
}

.fv-visit-card__name strong {
  font-weight: 700;
}

.tqr-list__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #25d366;
}

td.tqr-list-actions.table-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
  vertical-align: middle;
}

td.tqr-list-actions .btn-icononly {
  flex-shrink: 0;
}

.tqr-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(200, 155, 75, 0.2);
  color: #92400e;
}

.tqr-badge--expired {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.tqr-badge--converted {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

/* Multi-step wizard */
.fv-page--wizard {
  max-width: 560px;
}

.fv-wizard-card__topbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0.75rem;
}

.fv-wizard-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.fv-wizard-card__lead {
  margin: 0 0 1rem;
}

.fv-wizard-alert {
  margin-bottom: 1rem;
}

.fv-wizard__progress {
  margin-bottom: 1.25rem;
}

.fv-wizard__progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--fv-border);
  overflow: hidden;
}

.fv-wizard__progress-fill {
  height: 100%;
  width: 25%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c89b4b, #a67c3a);
  transition: width 0.25s ease;
}

.fv-wizard__progress-text {
  display: none !important;
}

.fv-wizard__steps {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.fv-wizard__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.45;
  text-align: center;
}

.fv-wizard__step.is-active,
.fv-wizard__step.is-done {
  opacity: 1;
}

.fv-wizard__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid var(--fv-border);
  background: #fff;
}

.fv-wizard__step.is-active .fv-wizard__step-num {
  border-color: #c89b4b;
  background: rgba(200, 155, 75, 0.15);
  color: #92400e;
}

.fv-wizard__step.is-done .fv-wizard__step-num {
  border-color: #c89b4b;
  background: #c89b4b;
  color: #fff;
  font-size: 0;
}

.fv-wizard__step.is-done .fv-wizard__step-num::after {
  content: '✓';
  font-size: 0.85rem;
  color: #fff;
  line-height: 1;
}

.fv-wizard__step-label {
  font-size: 0.68rem;
  line-height: 1.2;
  color: #78716c;
}

@media (min-width: 400px) {
  .fv-wizard__step-label {
    font-size: 0.72rem;
  }
}

.fv-wizard__panel-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.fv-wizard__panel[hidden] {
  display: none !important;
}

.fv-segment-hint {
  margin-top: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  background: rgba(200, 155, 75, 0.1);
  border: 1px solid rgba(200, 155, 75, 0.25);
}

.fv-wizard__steps .fv-wizard__step[hidden] {
  display: none;
}

.fv-wizard__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.fv-wizard__nav .fv-wizard__nav-end {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

.fv-wizard__nav--review {
  align-items: center;
  margin-top: 1.25rem;
}

.fv-wizard__panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.fv-wizard__panel-actions .btn-primary {
  margin-left: auto;
}

#fv-client-alert[hidden],
#fv-server-alert[hidden] {
  display: none !important;
}

.fv-wizard__nav .btn {
  min-height: 2.75rem;
}

.fv-review-list {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.6;
}

.fv-review-list li {
  margin-bottom: 0.35rem;
}

/* Panel header + info banner */
.fv-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.fv-panel-head__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(200, 155, 75, 0.15);
  color: #92400e;
}

.fv-panel-head .fv-wizard__panel-title {
  margin: 0 0 0.2rem;
}

.fv-panel-head__sub {
  margin: 0;
}

.fv-info-banner {
  background: rgba(200, 155, 75, 0.1);
  border: 1px solid rgba(200, 155, 75, 0.28);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #57534e;
  margin-bottom: 1rem;
}

/* Jenis ibadah — kartu grid */
.fv-kind-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 420px) {
  .fv-kind-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.fv-pick-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  border: 1px solid var(--fv-border);
  border-radius: 0.85rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  font: inherit;
  color: inherit;
}

.fv-pick-card:hover {
  border-color: rgba(200, 155, 75, 0.55);
}

.fv-pick-card.is-selected {
  border-color: #c89b4b;
  background: rgba(200, 155, 75, 0.1);
  box-shadow: 0 0 0 1px rgba(200, 155, 75, 0.25);
}

.fv-pick-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.fv-pick-card__title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.fv-pick-card__sub {
  font-size: 0.78rem;
  color: #78716c;
}

.fv-pick-card__check {
  flex-shrink: 0;
  display: none;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: #c89b4b;
  color: #fff;
}

.fv-pick-card__check .ui-btn-ico,
.fv-pick-card__check svg {
  width: 1rem;
  height: 1rem;
}

.fv-pick-card.is-selected .fv-pick-card__check {
  display: inline-flex;
}

/* Jadwal ibadah — kartu sesi */
.fv-session-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.fv-session-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--fv-border);
  border-radius: 0.85rem;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.fv-session-card.is-selected {
  border-color: #c89b4b;
  background: rgba(200, 155, 75, 0.1);
}

.fv-session-card__main {
  flex: 1;
  min-width: 0;
}

.fv-session-card__when {
  margin: 0 0 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.fv-session-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.fv-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(200, 155, 75, 0.15);
  color: #78716c;
}

.fv-session-card__date {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #a8a29e;
}

.fv-session-card__pick {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--fv-border);
  background: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  color: #57534e;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fv-session-card__pick:hover {
  border-color: #c89b4b;
}

.fv-session-card.is-selected .fv-session-card__pick {
  border-color: #c89b4b;
  background: #c89b4b;
  color: #fff;
}

.fv-wizard__panel-actions--session {
  margin-top: 1rem;
  justify-content: space-between;
}

.fv-tag--kind {
  font-weight: 600;
}

.fv-session-empty {
  margin-top: 0.5rem;
}

/* Ringkasan */
.fv-review-blocks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fv-review-block {
  padding: 1rem;
  border: 1px solid var(--fv-border);
  border-radius: 0.85rem;
  background: #fff;
}

.fv-review-block__title {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #78716c;
}

.fv-review-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fv-review-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(231, 223, 211, 0.6);
  margin: 0;
}

.fv-review-list li:last-child {
  border-bottom: none;
}

.fv-review-k {
  color: #78716c;
  font-size: 0.88rem;
}

.fv-review-v {
  font-weight: 600;
  font-size: 0.88rem;
  text-align: right;
}

.fv-review-saving {
  margin: 1rem 0 0;
  text-align: center;
  color: #78716c;
  font-style: italic;
}

/* Halaman terima kasih — tamu tidak bersedia data pribadi */
.fv-thanks-card {
  text-align: center;
  padding: 2rem 1.75rem 1.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.fv-thanks-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.fv-thanks-card__icon .ui-ico-svg {
  width: 1.75rem;
  height: 1.75rem;
}

.fv-thanks-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #292524;
  line-height: 1.25;
}

.fv-thanks-card__lead {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: #57534e;
  line-height: 1.45;
}

.fv-thanks-card__info {
  text-align: left;
  background: rgba(200, 155, 75, 0.08);
  border: 1px solid rgba(200, 155, 75, 0.28);
  border-radius: 0.85rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
}

.fv-thanks-card__info-title {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #92400e;
}

.fv-thanks-card__list {
  margin: 0;
  padding-left: 1.15rem;
  color: #44403c;
  font-size: 0.92rem;
  line-height: 1.55;
}

.fv-thanks-card__list li {
  margin-bottom: 0.4rem;
}

.fv-thanks-card__list li:last-child {
  margin-bottom: 0;
}

.fv-thanks-card__actions {
  display: flex;
  justify-content: center;
  padding-top: 0.25rem;
}

.fv-page:has(.fv-thanks-card--anonymous) {
  padding-top: 2rem;
}

/* Kartu Kunjungan — halaman sukses (setelah daftar) */
.fv-page--visit-card {
  max-width: 24rem;
  padding: 1.25rem 0.75rem 2.5rem;
  background: #f5f1e8;
  border-radius: 1rem;
}

.fv-vcard {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #faf8f4;
  border: 1px solid #e8dfd3;
  box-shadow: 0 12px 40px rgba(46, 42, 38, 0.08);
}

.fv-vcard__inner {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
}

.fv-vcard__notice {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.45;
  background: rgba(200, 155, 75, 0.12);
  border: 1px solid rgba(200, 155, 75, 0.35);
  color: #57534e;
}

.fv-vcard__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
}

.fv-vcard__header-line {
  margin: 0;
  line-height: 1.35;
}

.fv-vcard__header-line--title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #a18b68;
}

.fv-vcard__header-line--brand {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #57534e;
}

.fv-vcard__qr-panel {
  margin-top: 0;
  background: #faf8f4;
  border-radius: 1rem;
  padding: 1.25rem 1rem 1rem;
  border: 1px solid #e8dfd3;
  /*
   * Kotak QR: ukuran luar tetap (px); gambar memakai max-width/max-height agar tidak terpotong atau ter-stretch.
   * Pola selaras kartu anggota (member-namecard). Pastikan zoom peramban 100% saat menangkap (html2canvas).
   */
  --fv-qr-box-size: 224px;
  --fv-qr-box-padding: 12px;
}

.fv-vcard__qr-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 1.25rem;
}

.fv-vcard__qr-box {
  box-sizing: border-box;
  flex-shrink: 0;
  width: min(var(--fv-qr-box-size), 100%);
  max-width: 100%;
  aspect-ratio: 1;
  padding: var(--fv-qr-box-padding);
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #efe8dc;
  box-shadow: 0 6px 20px rgba(46, 42, 38, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

/* Tanpa cover/stretch: gambar mengikuti rasio asli, muat penuh di dalam kotak */
.fv-vcard__qr-img {
  display: block;
  flex: 0 1 auto;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0;
  padding: 0;
  border: 0;
}

.fv-vcard__qr-missing {
  text-align: center;
  margin: 0;
}

.fv-vcard__qr-meta {
  margin-top: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: center;
}

.fv-vcard__qr-field-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #a18b68;
}

.fv-vcard__qr-field-value {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1f2937;
}

.fv-vcard__qr-field-value--number {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  color: #173a70;
}

.fv-vcard__qr-field-value--muted {
  font-size: 1rem;
  font-weight: 600;
  color: #57534e;
}

.fv-vcard__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.fv-vcard__btn {
  width: 100%;
  justify-content: center;
  border-radius: 1rem;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
  cursor: pointer;
  font-family: inherit;
}

.fv-vcard__btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.fv-vcard__btn:hover {
  transform: scale(1.01);
}

.fv-vcard__btn--primary {
  background: #c89b43 !important;
  border-color: #c89b43 !important;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(200, 155, 67, 0.35);
}

.fv-vcard__btn--primary:hover {
  background: #b8893a !important;
  border-color: #b8893a !important;
  color: #fff !important;
}

.fv-vcard__btn--secondary {
  background: #fff !important;
  border: 1px solid #eadfc9 !important;
  color: #6b7280 !important;
}

.fv-vcard__btn--secondary:hover {
  background: #faf7f1 !important;
  color: #57534e !important;
}

.fv-vcard__btn--secondary .ui-btn-ico {
  color: #25d366;
}

.fv-vcard__footer {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid #eee2cb;
  text-align: center;
}

.fv-vcard__footer p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #7b6b57;
}

.fv-vcard__footer-hint {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #a18b68;
}

.tqr-detail-card {
  margin-top: 0.5rem;
}

.tqr-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 0;
}

.tqr-detail-grid__item {
  margin: 0;
  min-width: 0;
}

.tqr-detail-grid__item--wide {
  grid-column: 1 / -1;
}

.tqr-detail-grid dt {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #78716c;
}

.tqr-detail-grid dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1c1917;
  line-height: 1.45;
  word-break: break-word;
}

@media (max-width: 520px) {
  .tqr-detail-grid {
    grid-template-columns: 1fr;
  }
}

