/* ===== UI/UX refresh: Registrasi Pasien (selaras dengan login v3) ===== */
body { background: radial-gradient(1200px 600px at 10% -10%, #e3ecfb 0%, transparent 60%), radial-gradient(900px 500px at 100% 110%, #fdeedd 0%, transparent 55%), #f6f8fc !important; background-attachment: fixed !important; font-family: 'Inter', 'Poppins', sans-serif; color: #1f2a44; -webkit-font-smoothing: antialiased; }
#kt_subheader { background: #fff !important; box-shadow: 0 1px 0 #e8edf6, 0 6px 20px rgba(15,42,107,.05); padding: 10px 0 !important; margin-bottom: 24px; }
#kt_subheader h3 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.15rem; color: #0f2a6b !important; letter-spacing: -.01em; display: flex; align-items: center; gap: 12px; }
#kt_subheader h3 img.reg-logo { width: 46px; height: auto; aspect-ratio: 360 / 294; object-fit: cover; object-position: top; border-radius: 8px; }
#kt_subheader .btn-warning { background: #fff !important; color: #183e9f !important; border: 1px solid #d5dcea !important; border-radius: 10px; font-weight: 600; padding: 8px 16px; }
#kt_subheader .btn-warning:hover { background: #f3f6fc !important; border-color: #b7c2da !important; }
#form_card_pasien { border: 0 !important; border-radius: 20px; background: #fff !important; box-shadow: 0 24px 60px rgba(15,42,107,.12), 0 2px 8px rgba(15,42,107,.05); overflow: hidden; max-width: 980px; margin: 0 auto 40px; }
#form_card_pasien .wizard-nav { background: linear-gradient(180deg, #f7f9fe, #fff); border-bottom: 1px solid #eef1f7 !important; }
#form_card_pasien .wizard-step .wizard-label .wizard-title { font-family: 'Poppins', sans-serif; font-size: .82rem; font-weight: 500; color: #8a94ab; }
#form_card_pasien .wizard-step[data-wizard-state="current"] .wizard-label .wizard-title,
#form_card_pasien .wizard-step[data-wizard-state="done"] .wizard-label .wizard-title { color: #183e9f !important; font-weight: 600; }
#form_card_pasien .panel { border: 1px solid #e8edf6; border-radius: 14px; overflow: hidden; margin-bottom: 22px; box-shadow: 0 2px 10px rgba(15,42,107,.04); }
#form_card_pasien .panel-heading { background: #f3f6fc !important; border-bottom: 1px solid #e8edf6 !important; padding: 12px 18px; }
#form_card_pasien .panel-heading h3 { font-family: 'Poppins', sans-serif; font-size: .95rem !important; font-weight: 600; color: #0f2a6b; margin: 0; }
#form_card_pasien .panel-body { padding: 20px 22px; }
#form_card_pasien label { font-size: .8rem; font-weight: 600; color: #3a4560; margin-bottom: 6px; }
#form_card_pasien .form-control { height: 46px; border: 1px solid #d5dcea; border-radius: 10px; background: #fbfcfe; font-size: .94rem; color: #1f2a44; transition: border-color .15s, box-shadow .15s; }
#form_card_pasien textarea.form-control { height: auto; }
#form_card_pasien .form-control:hover { border-color: #b7c2da; }
#form_card_pasien .form-control:focus { background: #fff; border-color: #183e9f; box-shadow: 0 0 0 4px rgba(24,62,159,.12); }
#form_card_pasien .select2-container .select2-selection--single { height: 46px; border: 1px solid #d5dcea; border-radius: 10px; background: #fbfcfe; }
#form_card_pasien .select2-container .select2-selection--single .select2-selection__rendered { line-height: 44px; padding-left: 14px; }
#form_card_pasien .select2-container .select2-selection--single .select2-selection__arrow { height: 44px; }
#form_card_pasien .card-body .form-group { margin-bottom: 14px !important; }
#form_card_pasien .btn { border-radius: 10px; font-weight: 600; letter-spacing: .01em; text-transform: none !important; min-height: 46px; }
#form_card_pasien .btn-primary { background: linear-gradient(180deg, #2152c4, #183e9f) !important; border: 0 !important; box-shadow: 0 6px 16px rgba(24,62,159,.28); }
#form_card_pasien .btn-primary:hover { box-shadow: 0 8px 20px rgba(24,62,159,.36); }
#form_card_pasien .btn-warning { background: #fff !important; color: #183e9f !important; border: 1px solid #d5dcea !important; }
#form_card_pasien .btn-warning:hover { background: #f3f6fc !important; }
#form_card_pasien .border-top { border-color: #eef1f7 !important; }
#form_card_pasien .is-invalid, .is-invalid { border-color: #e5484d !important; box-shadow: 0 0 0 4px rgba(229,72,77,.12); }
@media (max-width: 768px) {
  #kt_subheader h3 { font-size: 1rem; }
  #kt_subheader h3 img.reg-logo { width: 38px; }
  #form_card_pasien { border-radius: 0; box-shadow: none; margin-bottom: 0; }
  #form_card_pasien .panel-body { padding: 16px; }
  #form_card_pasien .wizard-steps { padding: 18px 12px !important; }
  #form_card_pasien .btn { min-height: 48px; }
  .container { padding-left: 0; padding-right: 0; }
}

/* ----- Form 3 langkah ----- */
.reg-intro { margin-bottom: 22px; }
.reg-intro h2 { font-family: 'Poppins', sans-serif; font-size: 1.35rem; font-weight: 600; color: #0f2a6b; margin: 0 0 6px; letter-spacing: -.01em; }
.reg-intro p { margin: 0; color: #667089; font-size: .92rem; line-height: 1.5; }
#form_card_pasien .row > .form-group { margin-bottom: 16px !important; }
#form_card_pasien .field-hint { display: block; margin-top: 6px; font-size: .78rem; color: #8a94ab; min-height: 1em; }
#form_card_pasien .field-hint.ok { color: #1a8f5a; }
#form_card_pasien .fv-plugins-message-container .fv-help-block { font-size: .78rem; color: #e5484d; margin-top: 4px; }
/* Pilihan jenis kelamin sebagai tombol segmented */
.seg-radio { display: flex; gap: 10px; flex-wrap: wrap; }
.seg-opt { flex: 1 1 140px; margin: 0 !important; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span { display: flex; align-items: center; justify-content: center; height: 46px; border: 1px solid #d5dcea; border-radius: 10px; background: #fbfcfe; font-weight: 600; font-size: .92rem; color: #3a4560; transition: all .15s; }
.seg-opt:hover span { border-color: #b7c2da; }
.seg-opt input:checked + span { background: #eef3ff; border-color: #183e9f; color: #183e9f; box-shadow: 0 0 0 3px rgba(24,62,159,.12); }
.seg-opt input:focus-visible + span { outline: 3px solid rgba(24,62,159,.3); outline-offset: 2px; }
/* Centang alamat sama */
.switch-line { display: flex; align-items: center; gap: 10px; margin: 0 !important; cursor: pointer; font-weight: 500 !important; color: #3a4560; font-size: .9rem !important; }
.switch-line input { width: 20px; height: 20px; accent-color: #183e9f; flex: none; }
/* Kotak lokasi */
.loc-box { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid #e8edf6; background: #f7f9fe; }
.loc-box > i { font-size: 1.2rem; color: #183e9f; flex: none; }
.loc-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.loc-text strong { font-size: .9rem; color: #1f2a44; }
.loc-text span { font-size: .8rem; color: #667089; line-height: 1.4; }
.loc-box[data-state="ok"] { background: #effaf4; border-color: #c4ead6; }
.loc-box[data-state="ok"] > i { color: #1a8f5a; }
.loc-box[data-state="err"] { background: #fff5f5; border-color: #f5cfd1; }
.loc-box[data-state="err"] > i { color: #e5484d; }
/* Ringkasan */
.review-card { margin-top: 26px; padding: 18px 20px; border-radius: 14px; background: #f7f9fe; border: 1px solid #e8edf6; }
.review-card h4 { font-family: 'Poppins', sans-serif; font-size: .95rem; font-weight: 600; color: #0f2a6b; margin: 0 0 12px; }
.review-card dl { margin: 0; display: grid; gap: 8px; }
.review-card dl > div { display: flex; gap: 12px; font-size: .86rem; }
.review-card dt { flex: 0 0 150px; color: #8a94ab; font-weight: 500; }
.review-card dd { margin: 0; color: #1f2a44; font-weight: 500; word-break: break-word; }
@media (max-width: 768px) {
  .reg-intro h2 { font-size: 1.2rem; }
  #form_card_pasien .wizard-nav .wizard-steps { display: flex !important; flex-direction: row !important; gap: 4px; justify-content: space-between; padding: 16px 8px 14px !important; }
  #form_card_pasien .wizard-nav .wizard-steps .wizard-step { flex: 1 1 0; margin: 0 !important; padding: 0 2px !important; }
  #form_card_pasien .wizard-nav .wizard-step .wizard-label { flex-direction: column !important; align-items: center; text-align: center; padding: 0 !important; }
  #form_card_pasien .wizard-nav .wizard-step .wizard-label .wizard-icon { font-size: 1.6rem !important; margin: 0 0 6px !important; }
  #form_card_pasien .field-hint { min-height: 0; margin-top: 4px; }
  #form_card_pasien .wizard-step .wizard-label .wizard-title { font-size: .72rem; }
  #form_card_pasien .wizard-step .wizard-arrow { display: none; }
  .review-card dl > div { flex-direction: column; gap: 2px; }
  .review-card dt { flex: none; }
  #form_card_pasien .d-flex.justify-content-between.border-top { gap: 10px; }
  #form_card_pasien .d-flex.justify-content-between.border-top > div:first-child { flex: 0 0 auto; margin: 0 !important; }
  #form_card_pasien .d-flex.justify-content-between.border-top > div:last-child { flex: 1 1 auto; margin: 0 !important; }
  #form_card_pasien .d-flex.justify-content-between.border-top > div:last-child .btn { width: 100%; }
}

/* Tombol: seragam dengan halaman login (tinggi 52, radius 12) */
#form_card_pasien [data-wizard-type="action-prev"],
#form_card_pasien [data-wizard-type="action-next"],
#form_card_pasien [data-wizard-type="action-submit"] { height: 52px; min-height: 52px; min-width: 170px; padding: 0 28px !important; border-radius: 12px !important; font-size: 1rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1; }
#form_card_pasien [data-wizard-type="action-next"]::after { content: "\2192"; font-size: 1.1em; transition: transform .15s; }
#form_card_pasien [data-wizard-type="action-next"]:hover::after { transform: translateX(3px); }
#form_card_pasien [data-wizard-type="action-prev"]::before { content: "\2190"; font-size: 1.1em; }
#form_card_pasien [data-wizard-type="action-prev"] { border: 1.5px solid #d5dcea !important; color: #183e9f !important; background: #fff !important; box-shadow: none; }
#form_card_pasien .btn:focus-visible { outline: 3px solid rgba(24,62,159,.3); outline-offset: 2px; }
#kt_subheader .btn-warning { min-height: 42px; }
@media (max-width: 575px) {
  #form_card_pasien [data-wizard-type="action-prev"] { min-width: 0; flex: 0 0 auto; padding: 0 20px !important; }
  #form_card_pasien [data-wizard-type="action-next"], #form_card_pasien [data-wizard-type="action-submit"] { min-width: 0; width: 100%; }
}
/* jaga logika tampil/sembunyi tombol wizard (state first/between/last) */
#form_card_pasien [data-wizard-state="first"] [data-wizard-type="action-prev"],
#form_card_pasien [data-wizard-state="first"] [data-wizard-type="action-submit"],
#form_card_pasien [data-wizard-state="between"] [data-wizard-type="action-submit"],
#form_card_pasien [data-wizard-state="last"] [data-wizard-type="action-next"] { display: none !important; }
