/*
 * Form Registrasi (Corporate & Biro Perjalanan Wisata) diseragamkan dengan
 * standar form di dalam aplikasi (reservation-form.css + nexora-theme.css):
 * judul seksi biru muda, label kiri 225px, isian 26px sudut 6px, Tahoma
 * 11.2px. Warnanya biru halaman ini (#1877f2) supaya serasi dengan latarnya.
 *
 * Hanya kartu form yang diubah; latar & gambar halaman tidak disentuh.
 * Dimuat SETELAH <style> inline halaman, dan setiap aturan diawali
 * "body .nx-registration" supaya selalu menang tanpa mengubah markup/JS.
 */

/* ---------- Warna & ukuran dasar (variabel dipakai CSS inline halaman) ---------- */
body .nx-registration {
    --nx-primary: #1877f2;
    --nx-primary-dark: #1466d1;
    --nx-soft: #eaf2f8;
    --nx-soft-border: #eaf2f8;
    --nx-border: #ced6e0;
    --nx-text: #1e3a8a;
    --nx-muted: #6c757d;
    --nx-input-h: 26px;
    --nx-input-py: 0;
    --nx-btn-h: 28px;
    --nx-btn-py: 4px;
    --nx-upload-py: 0;
    --nx-upload-icon: 24px;
}

/* ---------- Kartu ---------- */
body .nx-registration .nx-card {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 43, 74, .16);
    font-family: Tahoma, sans-serif;
    font-size: 11.2px;
}

/* Bulatan hijau/biru di pojok kartu bukan bagian standar */
body .nx-registration .nx-card-accent {
    display: none;
}

body .nx-registration .nx-heading-title {
    color: #1e3a8a;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .02em;
}

/* Subjudul dihapus dari markup: judul tanpa margin bawah supaya
   sejajar tengah (vertikal) dengan stepper di kanannya */
body .nx-registration .nx-heading-title {
    margin: 0;
}

/* ---------- Stepper ---------- */
body .nx-registration .nx-step-label {
    font-size: 9.6px;
}

/* Label step lebih lebar dari bulatannya, jadi label paling kanan
   ("Terms & Conditions", tebal saat aktif) keluar dari garis kanan isi.
   Stepper digeser 12px supaya labelnya rata dengan kotak section. */
@media (min-width: 992px) {
    body .nx-registration .nx-stepper {
        margin-right: 12px;
    }
}

body .nx-registration .nx-step-item.is-active .nx-step-bullet {
    box-shadow: 0 4px 10px rgba(24, 119, 242, .35);
}

/* ---------- Judul seksi: seperti .rsv-section-header ---------- */
body .nx-registration .nx-section-head,
body .nx-registration .nx-terms-head {
    gap: 10px;
    margin: 12px 0 8px;
    padding: 4px 12px;
    border: 0;
    border-radius: 6px;
    background: #eaf2f8;
}

body .nx-registration .nx-section-icon,
body .nx-registration .nx-terms-head-icon {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: #1e3a8a;
    font-size: 14px;
}

body .nx-registration .nx-section-title {
    color: #1e3a8a;
    font-size: 12.8px;
    font-weight: 700;
    letter-spacing: .02em;
}

/* ---------- Label + isian: seperti .rsv-row ---------- */
body .nx-registration .nx-grid {
    gap: 5px 12px;
}

@media (min-width: 768px) {
    body .nx-registration .nx-grid {
        grid-template-columns: 225px 1fr;
    }
}

body .nx-registration .nx-label {
    padding-top: 5px;
    color: #334155;
    font-size: 11.2px;
    font-weight: 400;
}

body .nx-registration .nx-pair > .nx-label,
body .nx-registration .nx-contact-body .nx-label {
    padding-top: 0;
}

body .nx-registration .nx-req {
    color: #dc3545;
}

body .nx-registration .nx-input.form-control {
    height: 26px;
    min-height: 26px;
    padding: 0 8px;
    border-color: #ced6e0;
    border-radius: 6px;
    color: #495057;
    font-size: 11.2px;
    box-shadow: none;
}

body .nx-registration .nx-input.form-control:focus,
body .nx-registration .select2-container--bootstrap4.select2-container--focus .select2-selection--single,
body .nx-registration .select2-container--bootstrap4.select2-container--open .select2-selection--single {
    border-color: #1877f2;
    box-shadow: 0 0 0 .15rem rgba(24, 119, 242, .15);
}

body .nx-registration .nx-input.form-control.is-invalid {
    border-color: #e3342f;
}

body .nx-registration .nx-field--icon .nx-input.form-control {
    padding-right: 26px;
}

body .nx-registration .nx-field-icon {
    right: 8px;
    font-size: 11.2px;
}

body .nx-registration .select2-container--bootstrap4 .select2-selection--single {
    height: 26px !important;
    padding: 0 8px;
    border-color: #ced6e0;
    border-radius: 6px;
    box-shadow: none;
}

body .nx-registration .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
    color: #495057;
    font-size: 11.2px;
}

body .nx-registration .nx-field em.invalid-feedback,
body .nx-registration .nx-terms em.invalid-feedback {
    margin-top: 2px;
    font-size: 10.4px;
}

/* +62 */
body .nx-registration .nx-inputgroup > .nx-prefix {
    padding: 0 8px;
    border-color: #ced6e0;
    border-radius: 6px 0 0 6px;
    background: #eaf2f8;
    color: #1e3a8a;
    font-size: 11.2px;
}

body .nx-registration .nx-inputgroup > .nx-input.form-control {
    border-radius: 0 6px 6px 0;
}

/* ---------- Upload dokumen ---------- */
body .nx-registration .nx-upload {
    gap: 6px;
    min-height: 26px;
    padding: 0 10px 0 6px;
    border-color: #ced6e0;
    border-radius: 6px;
    background: #ffffff;
}

body .nx-registration .nx-upload:hover {
    border-color: #1877f2;
    background: #f1f7ff;
}

body .nx-registration .nx-upload-icon {
    color: #1877f2;
    font-size: 14px;
}

body .nx-registration .nx-upload-title {
    color: #1e3a8a;
    font-size: 11.2px;
    font-weight: 600;
}

body .nx-registration .nx-upload-hint {
    font-size: 10.4px;
}

body .nx-registration .nx-upload-filename {
    font-size: 10.4px;
}

body .nx-registration .nx-pair {
    row-gap: 3px;
}

body .nx-registration .nx-pair > .nx-field {
    margin-bottom: 6px;
}

/* ---------- Contact Person: kepala seperti .rsv-subheader ---------- */
body .nx-registration .nx-contact-grid {
    gap: 10px;
}

body .nx-registration .nx-contact-card {
    border-color: #e3e9f1;
    border-radius: 6px;
}

body .nx-registration .nx-contact-card .nx-contact-head {
    gap: 6px;
    padding: 4px 10px;
    border-bottom: 0;
    background: #eaf2f8;
}

body .nx-registration .nx-contact-card .nx-contact-head i,
body .nx-registration .nx-contact-card .nx-contact-title {
    color: #1e3a8a;
    font-size: 11.2px;
}

body .nx-registration .nx-contact-title {
    font-weight: 700;
    text-transform: uppercase;
}

body .nx-registration .nx-contact-body {
    padding: 8px 10px;
}

body .nx-registration .nx-contact-body .nx-label {
    margin-bottom: 2px;
}

body .nx-registration .nx-contact-body .nx-field {
    margin-bottom: 5px;
}

/* ---------- Terms ---------- */
body .nx-registration .nx-terms {
    margin-top: 8px;
    padding: 8px 12px;
    border: 0;
    border-radius: 6px;
    background: #f1f7ff;
}

body .nx-registration .nx-terms .custom-control-label {
    color: #334155;
    font-size: 11.2px;
}

body .nx-registration .custom-control-input:checked ~ .custom-control-label::before {
    border-color: #1877f2;
    background-color: #1877f2;
}

/* ---------- Tombol: seperti .rsv-actions ---------- */
body .nx-registration .nx-card-foot {
    margin-top: 12px;
    padding-top: 10px;
}

body .nx-registration .nx-btn {
    min-width: 110px;
    min-height: 28px;
    padding: 4px 16px;
    border-radius: 6px;
    font-size: 11.2px;
    font-weight: 600;
}

body .nx-registration .nx-btn i {
    font-size: 10.4px;
}

body .nx-registration .nx-btn--primary {
    border-color: #1877f2;
    background: #1877f2;
    box-shadow: none;
}

body .nx-registration .nx-btn--primary:hover,
body .nx-registration .nx-btn--primary:focus {
    border-color: #1466d1;
    background: #1466d1;
}

body .nx-registration .nx-btn--ghost {
    border-color: #1877f2;
    color: #1877f2;
}

body .nx-registration .nx-btn--ghost:hover {
    background: #1877f2;
    color: #ffffff;
}

body .nx-registration .nx-save-note,
body .nx-registration .nx-login-link {
    font-size: 11.2px;
}

body .nx-registration .nx-login-link a {
    color: #1877f2;
}

/* ---------- Latar: satu gambar yang sama untuk semua step ----------
   Gambar & dekorasi lama per step (panggung .nx-reg-stage) disembunyikan,
   diganti satu latar bg_register.jpg supaya tiap step tampil sama. */
body .nx-registration .nx-reg-visual {
    background: #f4f9ff url('../images/registration/bg_register.jpg') center center / cover no-repeat;
}

body .nx-registration .nx-reg-stage {
    display: none;
}

/* Bawah latar: gradasi seperti awan, memudar ke warna footer (#f4f6f9)
   supaya tidak ada garis tegas antara gambar dan footer. */
body .nx-registration .nx-reg-visual::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 26%;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(244, 246, 249, 0) 62%, #f4f6f9 100%),
        radial-gradient(ellipse 22% 55% at 6% 100%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
        radial-gradient(ellipse 20% 60% at 24% 104%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%),
        radial-gradient(ellipse 24% 50% at 44% 100%, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0) 70%),
        radial-gradient(ellipse 20% 62% at 63% 104%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%),
        radial-gradient(ellipse 22% 52% at 81% 100%, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0) 70%),
        radial-gradient(ellipse 18% 58% at 97% 104%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
        linear-gradient(to bottom, rgba(244, 246, 249, 0) 0%, rgba(244, 246, 249, .55) 55%, #f4f6f9 100%);
}

/* ---------- Posisi kartu: di TENGAH untuk semua step ----------
   Lebar kartu sama di semua step (880px, lihat step 3 di bawah) supaya
   simetris dan tidak melompat saat ganti step. */
body .nx-registration .nx-reg-row {
    justify-content: center !important;
}

body .nx-registration .nx-card {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ---------- Semua data ditumpuk ke bawah (satu kolom) ----------
   Konsepnya seperti form Airline (judul seksi + baris label kiri/isian
   kanan), tapi tanpa blok yang bersebelahan kiri-kanan. */

/* Step 2: tiap dokumen jadi dua baris -> nomor, lalu upload di bawahnya.
   Urutan DOM .nx-pair: [label nomor, label upload, isian nomor, upload],
   jadi urutannya diatur dengan order tanpa mengubah markup. */
body .nx-registration .nx-pair {
    grid-template-columns: 1fr;
    gap: 3px 12px;
    margin-bottom: 6px;
}

body .nx-registration .nx-pair > :nth-child(1) { order: 1; }
body .nx-registration .nx-pair > :nth-child(3) { order: 2; }
body .nx-registration .nx-pair > :nth-child(2) { order: 3; }
body .nx-registration .nx-pair > :nth-child(4) { order: 4; }

@media (min-width: 768px) {
    body .nx-registration .nx-pair {
        grid-template-columns: 225px 1fr;
    }

    body .nx-registration .nx-pair > .nx-label {
        padding-top: 5px;
    }
}

body .nx-registration .nx-pair > .nx-field {
    margin-bottom: 0;
}

body .nx-registration .nx-pair .nx-upload {
    width: auto;
    max-width: 100%;
}

/* Step 3: 4 Contact Person ditumpuk ke bawah, isinya label kiri/isian kanan */
@media (min-width: 768px) {
    body .nx-registration .nx-contact-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body .nx-registration .nx-contact-body {
        display: grid;
        grid-template-columns: 213px 1fr;
        gap: 5px 12px;
        align-items: start;
    }

    body .nx-registration .nx-contact-body .nx-label {
        margin-bottom: 0;
        padding-top: 5px;
    }

    body .nx-registration .nx-contact-body .nx-field {
        margin-bottom: 0;
    }
}

@media (min-width: 992px) {
    /* Step 3 tidak perlu lebih lebar lagi karena kartunya tidak berjajar */
    body .nx-registration.is-step-3 .nx-card {
        max-width: 880px;
    }
}
