/* Formulir peminat v5 (Figma 5277:5936). Dimuat layout untuk peminat. */
/* Ukuran mengikuti mode mobile Figma: Title 2 22/28, Body 14/20, Subhead 13/18, Footnote 12/16. */
.spmbfront-v5 .peminat-alert { background: #fff1de; color: #7a4100; }
.spmbfront-v5 .peminat-alert .container { display: flex; align-items: center; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.spmbfront-v5 .peminat-alert .material-icons-outlined { flex: none; font-size: 16px; }
.spmbfront-v5 .peminat-alert p { margin: 0; font-size: 12px; line-height: 16px; }

/* Hero memakai pola detail brosur; Figma peminat hanya gradien, tanpa foto. 24px bawah ditutup lembar konten. */
.spmbfront-v5 .peminat-hero { padding-bottom: 48px; background: linear-gradient(90deg, #082747, #124c84); }
.spmbfront-v5 .peminat-hero::before { display: none; }
.spmbfront-v5 .peminat-hero p { color: rgba(255, 255, 255, .75); }

.spmbfront-v5 .peminat-sheet { position: relative; margin-top: -24px; padding: 24px 0 16px; background: #f8f9fb; border-radius: 20px 20px 0 0; }
/* Mobile dengan header ringkas: hero disembunyikan (wizard.css), jadi lembar tidak lagi menumpuk dan tidak menutupi banner status. */
@media (max-width: 1199.98px) {
    .spmbfront-v5.has-form-header .peminat-sheet { margin-top: 0; border-radius: 0; }
}
.spmbfront-v5 .peminat-container { display: flex; flex-direction: column; gap: 16px; }
.spmbfront-v5 .peminat-card { background: #fff; border: 1px solid #eceff3; border-radius: 16px; }

/* Kartu "Jalur yang kamu minati" + rentang pendaftaran dan mulai kuliah */
.spmbfront-v5 .peminat-jalur { padding: 20px 16px; }
.spmbfront-v5 .peminat-jalur-head { display: flex; align-items: center; gap: 12px; }
.spmbfront-v5 .peminat-jalur-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; background: #eef4fa; border-radius: 12px; color: #124c84; }
.spmbfront-v5 .peminat-jalur-icon .material-icons-outlined { font-size: 20px; }
.spmbfront-v5 .peminat-jalur-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.spmbfront-v5 .peminat-jalur-text p { margin: 0; font-size: 13px; line-height: 18px; color: #666d80; }
.spmbfront-v5 .peminat-jalur-text h2 { margin: 0; font-size: 14px; line-height: 20px; font-weight: 400; color: #0d0d12; overflow-wrap: anywhere; }
.spmbfront-v5 .peminat-jalur-text small { margin-top: -4px; font-size: 12px; line-height: 16px; color: #666d80; }
.spmbfront-v5 .peminat-jalur-facts { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid #eceff3; }
.spmbfront-v5 .peminat-jalur-facts > div { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 18px; }
.spmbfront-v5 .peminat-jalur-facts .material-icons-outlined { flex: none; font-size: 16px; line-height: 18px; color: #666d80; }
.spmbfront-v5 .peminat-jalur-facts dt { flex: none; font-weight: 400; color: #666d80; }
.spmbfront-v5 .peminat-jalur-facts dd { margin: 0 0 0 auto; color: #0d0d12; text-align: right; }

/* Kartu "Data peminat": isian per baris (2 kolom di desktop), tampilan isian seperti langkah data diri wizard. */
.spmbfront-v5 .peminat-data { display: flex; flex-direction: column; gap: 20px; padding: 28px 16px; }
.spmbfront-v5 .peminat-card-head h2 { margin: 0; font-size: 14px; line-height: 20px; font-weight: 400; color: #0d0d12; }
.spmbfront-v5 .peminat-card-head p { margin: 4px 0 0; font-size: 13px; line-height: 18px; color: #666d80; }
.spmbfront-v5 .peminat-data .wizard-error-summary { margin: 0; }
.spmbfront-v5 .peminat-data .wizard-error-summary:focus { outline: 0; }
.spmbfront-v5 .peminat-row { display: flex; flex-direction: column; gap: 16px; }
.spmbfront-v5 .peminat-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.spmbfront-v5 .peminat-field .wizard-help { margin: 0; }
.spmbfront-v5 .peminat-label { margin: 0; font-size: 13px; line-height: 18px; font-weight: 500; color: #0d0d12; }
.spmbfront-v5 .peminat-required { margin-left: 1px; font-weight: 400; color: #c70a24; }
.spmbfront-v5 .peminat-input { display: block; width: 100%; height: 42px; margin: 0; padding: 0 16px; background: #fff; border: 1px solid #d2d7de; border-radius: 12px; font-family: inherit; font-size: 13px; line-height: 18px; color: #0d0d12; box-shadow: none; }
.spmbfront-v5 .peminat-input::placeholder { color: #808897; opacity: 1; }
.spmbfront-v5 .peminat-input:focus { border-color: #124c84; box-shadow: 0 0 0 3px rgba(18, 76, 132, .12); outline: 0; }
/* Chevron 16px (Figma "Icon / Chevron", warna ikon normal) pada select native. */
.spmbfront-v5 .peminat-select { padding-right: 40px; font-size: 14px; line-height: 20px; text-overflow: ellipsis; -webkit-appearance: none; appearance: none; cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23666D80' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 16px 16px; }
.spmbfront-v5 .peminat-select:invalid { color: #808897; }
.spmbfront-v5 .peminat-select option { color: #0d0d12; }
.spmbfront-v5 .peminat-field.is-invalid .peminat-input { border-color: #c70a24; }
.spmbfront-v5 .peminat-field.is-invalid .peminat-input:focus { box-shadow: 0 0 0 3px rgba(199, 10, 36, .12); }
/* Pilihan prodi bisa dicari (select2): kotak sama dengan .peminat-select, panel dropdown di dalam isiannya. */
.spmbfront-v5 .peminat-field { position: relative; }
.spmbfront-v5 .peminat-field .select2-container { display: block; width: 100% !important; }
.spmbfront-v5 .peminat-field .select2-selection--single { display: flex; align-items: center; height: 42px; padding: 0 40px 0 16px; border: 1px solid #d2d7de; border-radius: 12px; outline: 0;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23666D80' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 16px 16px; }
.spmbfront-v5 .peminat-field .select2-selection__arrow { display: none; }
.spmbfront-v5 .peminat-field .select2-selection__rendered { flex: 1; min-width: 0; padding: 0 !important; font-size: 14px; line-height: 20px !important; color: #0d0d12 !important; }
.spmbfront-v5 .peminat-field .select2-selection__rendered[title='Pilih program studi'], .spmbfront-v5 .peminat-field .select2-selection__rendered[title='Tidak ada pilihan kedua'] { color: #808897 !important; }
.spmbfront-v5 .peminat-field .select2-selection--single:focus, .spmbfront-v5 .peminat-field .select2-container--open .select2-selection--single { border-color: #124c84; box-shadow: 0 0 0 3px rgba(18, 76, 132, .12); }
.spmbfront-v5 .peminat-field.is-invalid .select2-selection--single { border-color: #c70a24; }
.spmbfront-v5 .peminat-field .select2-dropdown { margin-top: 8px; overflow: hidden; border: 1px solid #eceff3; border-radius: 12px; box-shadow: 0 8px 24px rgba(13, 13, 18, .12); }
.spmbfront-v5 .peminat-field .select2-dropdown--above { margin-top: -8px; }
.spmbfront-v5 .peminat-field .select2-search--dropdown { padding: 6px; }
.spmbfront-v5 .peminat-field .select2-search__field { height: 36px; padding: 0 12px 0 34px; border: 1px solid #d2d7de !important; border-radius: 8px; font-size: 13px; outline: 0;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath fill='%23666d80' d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") no-repeat 12px center / 16px 16px; }
.spmbfront-v5 .peminat-field .select2-search__field:focus { border-color: #124c84 !important; }
.spmbfront-v5 .peminat-field .select2-results__options { max-height: 260px !important; }
.spmbfront-v5 .peminat-field .select2-results__option { padding: 10px 12px; font-size: 13px; line-height: 19px; color: #0d0d12; }
.spmbfront-v5 .peminat-field .select2-results__option[aria-selected='true'], .spmbfront-v5 .peminat-field .select2-results__option--selected { background: #eef4fa; color: #124c84; }
.spmbfront-v5 .peminat-field .select2-results__option--highlighted, .spmbfront-v5 .peminat-field .select2-container--default .select2-results__option--highlighted[aria-selected] { background: #f6f8fa; color: #0d0d12; }

.spmbfront-v5 .peminat-consent-row { display: flex; align-items: flex-start; gap: 10px; }
.spmbfront-v5 .peminat-check { flex: none; width: 18px; height: 18px; margin: 0; background: #fff; border: 1px solid #808897; border-radius: 4px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.spmbfront-v5 .peminat-check:checked { background: #124c84 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4.5 9.5L7.5 12.5L13.5 6' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat; border-color: #124c84; }
.spmbfront-v5 .peminat-check:focus-visible { outline: 2px solid #124c84; outline-offset: 2px; }
.spmbfront-v5 .peminat-consent label { margin: 0; font-size: 13px; line-height: 18px; color: #353849; cursor: pointer; }
.spmbfront-v5 .peminat-consent.is-invalid .peminat-check { border-color: #c70a24; }

/* Bar aksi (Figma "Bar aksi"): menempel di bawah layar selama formulir terlihat, berhenti di atas footer. */
.spmbfront-v5 .peminat-actions { position: sticky; bottom: 0; z-index: 20; padding: 16px 0 max(24px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #eceff3; box-shadow: 0 -6px 8px rgba(8, 39, 71, .1), 0 -1px 1.5px rgba(8, 39, 71, .08); }
.spmbfront-v5 .peminat-actions-inner { display: flex; gap: 16px; }
.spmbfront-v5 .peminat-actions .btn { flex: 1 1 0; min-width: 0; min-height: 44px; margin: 0; padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; }

/* Panel berhasil (setelah redirect) */
.spmbfront-v5 .peminat-success { display: flex; flex-direction: column; align-items: center; padding: 28px 16px; text-align: center; }
.spmbfront-v5 .peminat-success-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 16px; background: #e7f5ef; border-radius: 999px; color: #047b5d; }
.spmbfront-v5 .peminat-success-icon .material-icons-outlined { font-size: 28px; }
.spmbfront-v5 .peminat-success h2 { margin: 0 0 6px; font-size: 17px; line-height: 24px; font-weight: 600; color: #0d0d12; }
.spmbfront-v5 .peminat-success > p { margin: 0; font-size: 13px; line-height: 18px; color: #353849; }
.spmbfront-v5 .peminat-summary { display: flex; flex-direction: column; gap: 10px; align-self: stretch; margin: 20px 0 0; padding: 16px; background: #f8f9fb; border-radius: 12px; text-align: left; }
.spmbfront-v5 .peminat-summary > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 18px; }
.spmbfront-v5 .peminat-summary dt { flex: none; font-weight: 400; color: #666d80; }
.spmbfront-v5 .peminat-summary dd { min-width: 0; margin: 0; font-weight: 500; color: #0d0d12; text-align: right; overflow-wrap: anywhere; }
.spmbfront-v5 .peminat-success .peminat-note { margin-top: 16px; font-size: 12px; line-height: 16px; color: #666d80; }

@media (min-width: 1200px) {
    /* Desktop: hero seperti detail brosur (tanpa lembar menumpuk), konten satu kolom 720px. */
    .spmbfront-v5 .peminat-hero { padding: 28px 0 32px; }
    .spmbfront-v5 .peminat-hero h1 { margin: 0; font-size: 32px; line-height: 48px; font-weight: 500; }
    .spmbfront-v5 .peminat-hero p { font-size: 15px; line-height: 22px; }
    .spmbfront-v5 .peminat-sheet { margin-top: 0; padding: 32px 0 20px; border-radius: 0; }
    .spmbfront-v5 .peminat-container, .spmbfront-v5 .peminat-actions-inner { max-width: 760px; }
    .spmbfront-v5 .peminat-jalur { padding: 20px 24px; }
    .spmbfront-v5 .peminat-jalur-facts { flex-direction: row; flex-wrap: wrap; gap: 8px 32px; }
    .spmbfront-v5 .peminat-jalur-facts dd { margin-left: 4px; text-align: left; }
    .spmbfront-v5 .peminat-data { padding: 28px 24px; }
    .spmbfront-v5 .peminat-card-head h2 { font-size: 16px; line-height: 24px; font-weight: 500; }
    .spmbfront-v5 .peminat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
    /* Pilihan prodi 2 disembunyikan (tidak ada prodi lain): pilihan 1 selebar baris, tanpa kolom kosong. */
    .spmbfront-v5 .peminat-row > [data-peminat-prodi-field="idunit1"]:has(+ [hidden]) { grid-column: 1 / -1; }
    /* Tombol (Figma Aksi formulir 7189:19068): di bawah kartu formulir dalam alur halaman, Kembali di kiri dan kirim di kanan. */
    .spmbfront-v5 .peminat-actions { position: static; padding: 0 0 40px; background: #f8f9fb; border-top: 0; box-shadow: none; }
    .spmbfront-v5 .peminat-actions-inner { justify-content: space-between; }
    .spmbfront-v5 .peminat-actions .btn { flex: 0 0 auto; min-width: 0; padding: 12px 24px; border-radius: 12px; font-weight: 500; }
    .spmbfront-v5 .peminat-actions .btn-outline-primary { padding-left: 20px; padding-right: 20px; border-radius: 10px; }
    /* Tata letak dua kolom (Figma 7189:18980) saat halaman memuat kartu jalur: formulir di kiri, kartu "Jalur yang kamu minati" 368px di kanan. */
    .spmbfront-v5 .peminat-form.has-jalur .peminat-container { display: grid; grid-template-columns: minmax(0, 1fr) 368px; align-items: start; gap: 0 32px; max-width: 1120px; }
    .spmbfront-v5 .peminat-form.has-jalur .peminat-data { grid-column: 1; grid-row: 1; }
    .spmbfront-v5 .peminat-form.has-jalur .peminat-jalur { grid-column: 2; grid-row: 1; padding: 20px; }
    .spmbfront-v5 .peminat-form.has-jalur .peminat-jalur-facts { flex-direction: column; gap: 8px; }
    .spmbfront-v5 .peminat-form.has-jalur .peminat-jalur-facts dd { margin-left: auto; text-align: right; }
    .spmbfront-v5 .peminat-form.has-jalur .peminat-actions-inner { display: grid; grid-template-columns: auto 1fr auto 400px; column-gap: 0; max-width: 1120px; }
    .spmbfront-v5 .peminat-form.has-jalur .peminat-actions-inner > a { grid-column: 1; }
    .spmbfront-v5 .peminat-form.has-jalur .peminat-actions-inner > button { grid-column: 3; }
    .spmbfront-v5 .peminat-success { padding: 40px 48px; }
    .spmbfront-v5 .peminat-summary { align-self: center; width: 100%; max-width: 480px; }
}

/* Ringkasan minat (Figma 5296:108477): sheet bawah, baris label 140px + ": nilai", biaya cokelat, satu tombol penuh. */
.spmbfront-v5 .peminat-review .modal-content { border-radius: 24px 24px 0 0; }
.spmbfront-v5 .peminat-review .modal-header { padding: 20px 0 16px; }
.spmbfront-v5 .peminat-review .modal-title { margin: 0 0 4px; font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: -.2px; color: rgba(10, 13, 20, .9); }
.spmbfront-v5 .peminat-review .modal-header p { margin: 0; font-size: 14px; line-height: 20px; color: #6b6f74; }
.spmbfront-v5 .peminat-review-list, .spmbfront-v5 .peminat-done-list { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.spmbfront-v5 .peminat-review-list > div, .spmbfront-v5 .peminat-done-list > div { display: flex; gap: 4px; font-size: 14px; line-height: 20px; }
.spmbfront-v5 .peminat-review-list dt, .spmbfront-v5 .peminat-done-list dt { flex: none; width: 140px; font-weight: 400; color: #6b6f74; }
.spmbfront-v5 .peminat-review-list dd, .spmbfront-v5 .peminat-done-list dd { flex: 1; min-width: 0; margin: 0; font-weight: 500; color: rgba(10, 13, 20, .9); overflow-wrap: anywhere; }
.spmbfront-v5 .peminat-review-list dd::before, .spmbfront-v5 .peminat-done-list dd::before { content: ': '; }
.spmbfront-v5 .peminat-review-list .is-fee dd { color: #803500; }
.spmbfront-v5 .peminat-review .modal-footer .btn { flex: 1; }
/* Data terkirim (Figma 5296:108674): dialog tengah, ikon centang hijau, ringkasan di kotak abu-abu, tombol bertumpuk. */
.spmbfront-v5 .peminat-done .modal-body { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 20px 24px; text-align: center; }
.spmbfront-v5 .peminat-done-icon { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin-bottom: 12px; border-radius: 999px; background: #e7f6ef; color: #047b5d; }
.spmbfront-v5 .peminat-done-icon .material-icons-outlined { font-size: 28px; }
.spmbfront-v5 .peminat-done h2 { margin: 0; font-size: 18px !important; line-height: 28px; }
.spmbfront-v5 .peminat-done p { margin: 0 0 8px; font-size: 14px; line-height: 20px; color: #6b6f74; }
.spmbfront-v5 .peminat-done-list { gap: 12px; width: 100%; margin-bottom: 12px; padding: 20px; border-radius: 12px; background: #f6f8fa; text-align: left; }
.spmbfront-v5 .peminat-done-list dt { width: 136px; }
.spmbfront-v5 .peminat-done .btn { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 14px; font-weight: 500; }
/* Gagal kirim (ALPHA-1957 F04): beda dari galat isian. Kuning peringatan, judul + penjelasan; kirim ulang lewat tombol
   Daftar Peminat. is-online = koneksi sudah kembali (hijau), menunggu pengunjung mengirim ulang. */
.spmbfront-v5 .wizard-error-summary.is-send-error { align-items: flex-start; flex-wrap: wrap; gap: 10px 12px; padding: 14px 16px; background: #fff8e6; border-color: #f3d38a; color: #5c4200; }
.spmbfront-v5 .wizard-error-summary.is-send-error .peminat-send-error-icon { flex: none; margin-top: 1px; font-size: 20px; color: #b26b00; }
.spmbfront-v5 .peminat-send-error-body { flex: 1 1 0; min-width: 0; }
.spmbfront-v5 .peminat-send-error-body strong { display: block; font-size: 14px; line-height: 20px; font-weight: 600; color: #3d2c00; }
.spmbfront-v5 .peminat-send-error-body p { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: #5c4200; }
.spmbfront-v5 .wizard-error-summary.is-send-error.is-online { background: #ecfdf3; border-color: #a6e2bf; color: #0b5a33; }
.spmbfront-v5 .wizard-error-summary.is-send-error.is-online .peminat-send-error-icon { color: #12805a; }
.spmbfront-v5 .wizard-error-summary.is-send-error.is-online .peminat-send-error-body strong,
.spmbfront-v5 .wizard-error-summary.is-send-error.is-online .peminat-send-error-body p { color: #0b5a33; }
/* Honeypot (ALPHA-1847): di luar layar, bukan display:none (sebagian bot melewati isian yang disembunyikan). */
.spmbfront-v5 .peminat-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
