.prm-form {
    max-width: 1200px;
    margin: 30px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-family: Arial, sans-serif;
}

.prm-form h2 {
    margin-bottom: 20px;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 10px;
}

.prm-grid {
    display: grid;
    gap: 15px;
}

.prm-grid label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.prm-grid select,
.prm-grid input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccd0d4;
    border-radius: 5px;
    font-size: 14px;
}

.prm-grid select:focus,
.prm-grid input:focus {
    border-color: #2271b1;
    outline: none;
}

.prm-radio {
    margin-top: 25px;
    padding: 15px;
    background: #f6f7f7;
    border-radius: 6px;
}

.prm-radio label {
    margin-right: 20px;
    font-weight: 500;
}

.prm-form button {
    margin-top: 25px;
    padding: 12px 30px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.prm-form button:hover {
    background: #135e96;
}

@media (max-width: 992px) {
    .prm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .prm-grid {
        grid-template-columns: 1fr;
    }
}
/* ===============================
   GLOBAL FORM
=============================== */
.prm-form {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    margin-bottom: 30px;
}

/* ===============================
   GRID SYSTEM
=============================== */
.prm-grid {
    display: grid;
    gap: 15px;
   margin-bottom: 20px;
}

.prm-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.prm-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* ===============================
   FORM FIELDS
=============================== */
/* ===============================
   FIELDS
=============================== */
.prm-field label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
    color: #111827;
}

.prm-field input,
.prm-field select,
.prm-field textarea {
    width: 100%;
    padding: 9px 10px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #ffffff;
}

.prm-field input:focus,
.prm-field textarea:focus,
.prm-field select:focus {
    border-color: #2271b1;
    outline: none;
}
/* ===============================
   RADIO FIX
=============================== */
.prm-radio {
    margin-top: 15px;
}

.prm-radio label {
    margin-right: 20px;
    font-weight: normal;
}

/* ===============================
   TABLES (Witness / Land / Transfer)
=============================== */
.prm-table,
table.widefat {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.prm-table th,
.prm-table td,
table.widefat th,
table.widefat td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.prm-table th,
table.widefat th {
    background: #f1f5f9;
    font-weight: 600;
    color: #111827;
}

.prm-table tbody tr:hover,
table.widefat tbody tr:hover {
    background: #f8fafc;
}

/* ===============================
   ACTION BUTTONS IN TABLE
=============================== */
.edit-witness,
.edit-land,
.edit-transfer {
    background: #f59e0b;
    color: #fff;
    border: none;
    margin-right: 5px;
}

.delete-witness,
.delete-land,
.delete-transfer {
    background: #ef4444;
    color: #fff;
    border: none;
}

/* ===============================
   SUCCESS BOX
=============================== */
.prm-success-box {
    background: #ecfdf5;
    border: 1px solid #34d399;
    padding: 12px;
    border-radius: 6px;
    margin-top: 10px;
}

.prm-prop-id {
    font-weight: bold;
    color: #dc2626;
}

/* ===============================
   RADIO
=============================== */
.prm-radio label {
    margin-right: 15px;
    font-weight: 500;
}


/* ===============================
   MOBILE FIX
=============================== */
@media (max-width: 768px) {
    .prm-grid-3,
    .prm-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* FIX: Dropdown options rendering outside select (Theme conflict) */
.prm-form select {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 10;
}

.prm-form select option {
    display: block !important;
    position: static !important;
    background: #fff !important;
    color: #000 !important;
    padding: 6px 10px !important;
}

/* Prevent theme converting options to buttons */
.prm-form option::before,
.prm-form option::after {
    display: none !important;
    content: none !important;
}
/* HARD RESET FOR SELECT (Elementor / XStore FIX) */
.prm-form select,
.prm-form select:focus {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    background-image: none !important;
    background-color: #fff !important;
    color: #000 !important;
    border: 1px solid #ccc !important;
    height: 42px !important;
    line-height: 42px !important;
    padding: 6px 10px !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
    z-index: 9999 !important;
}

.prm-form option {
    display: block !important;
    position: static !important;
    float: none !important;
    background: #fff !important;
    color: #000 !important;
    padding: 6px 10px !important;
}

/* Kill theme pseudo elements */
.prm-form option::before,
.prm-form option::after,
.prm-form select::before,
.prm-form select::after {
    content: none !important;
    display: none !important;
}
.prm-success-box {
    background: #e7f7ec;
    border: 1px solid #46b450;
    padding: 12px 15px;
    margin-top: 12px;
    font-size: 15px;
}

.prm-prop-id {
    color: #d63638;
    font-weight: bold;
    font-size: 16px;
}



/* ===============================
   BUTTONS
=============================== */
.prm-actions,
.prm-form-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.prm-btn,
button.button {
    padding: 7px 14px;
    font-size: 14px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.prm-btn-primary,
.button-primary {
    background: #2271b1;
    color: #fff;
}

.prm-btn-primary:hover {
    background: #135e96;
}

.prm-btn-success {
    background: #16a34a;
    color: #fff;
}

.prm-btn-danger {
    background: #dc2626;
    color: #fff;
}
/* ===== RADIO GROUP FIX ===== */

.prm-radio {
    margin: 15px 0;
}

.prm-radio label {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    font-weight: 500;
    cursor: pointer;
}

.prm-radio input[type="radio"] {
    margin-right: 6px;
}
/* ===============================
   SELLER STEP FIX
=============================== */

#prm-step-2 {
    display: block;
    width: 100%;
}

#prm-step-2 .prm-form {
    overflow: visible !important;
    height: auto !important;
}

/* GRID FIX */
/* ===============================
   FORM LAYOUT
=============================== */
.prm-form,
.prm-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 20px;
    border-radius: 8px;
}

.prm-grid {
    display: grid;
    gap: 15px;
}

.prm-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.prm-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .prm-grid-2,
    .prm-grid-3 {
        grid-template-columns: 1fr;
    }
}


/* Mobile */



.prm-hidden {
    display: none;
}

.prm-step {
    display: none;
}

.prm-step.active {
    display: block;
}

/* Tabs */
/* ===============================
   STEP NAV (TABS)
=============================== */
.prm-steps-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.prm-step-btn {
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #f1f5f9;
    color: #1f2937;
    cursor: pointer;
}

.prm-step-btn:hover {
    background: #e2e8f0;
}

.prm-step-btn.active {
    background: #2271b1;
    color: #ffffff;
    border-color: #2271b1;
}



/* Hide all steps by default */
/* ===============================
   GLOBAL RESET (SAFE)
=============================== */
.prm-tab-content {
    display: none;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.prm-tab-content.active {
    display: block;
}

/* ===============================
   STEP-4 WITNESS UI
================================ */

#step-4 {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

#step-4 h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #1e293b;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

/* Witness block */
.witness-block {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.witness-block hr {
    display: none;
}

/* Form rows */
.prm-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.prm-row input,
.prm-row select,
.prm-row textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 14px;
}

.prm-row textarea {
    min-height: 70px;
    resize: vertical;
}

/* Buttons */
.prm-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

#add-witness {
    background: #0ea5e9;
    color: #fff;
    border: none;
}

#add-witness:hover {
    background: #0284c7;
}

#save-witness {
    background: #16a34a;
    color: #fff;
    border: none;
}

#save-witness:hover {
    background: #15803d;
}

.remove-witness {
    background: #ef4444;
    color: #fff;
    border: none;
}

.remove-witness:hover {
    background: #dc2626;
}

/* ===============================
   WITNESS TABLE
================================ */

#witness-table {
    margin-top: 20px;
    border-collapse: collapse;
}

#witness-table th {
    background: #f1f5f9;
    font-weight: 600;
    text-align: left;
}

#witness-table th,
#witness-table td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
}

#witness-table tbody tr:hover {
    background: #f8fafc;
}

/* Action buttons */
#witness-table .edit-witness {
    background: #f59e0b;
    color: #fff;
    border: none;
    margin-right: 6px;
}

#witness-table .edit-witness:hover {
    background: #d97706;
}

#witness-table .delete-witness {
    background: #ef4444;
    color: #fff;
    border: none;
}

#witness-table .delete-witness:hover {
    background: #dc2626;
}

/* ===============================
   MOBILE RESPONSIVE
================================ */

@media (max-width: 768px) {

    .prm-row {
        flex-direction: column;
    }

    .prm-actions {
        flex-direction: column;
    }

    #witness-table th,
    #witness-table td {
        font-size: 13px;
    }
}
.prm-step-title {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.prm-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 6px;
}

.prm-grid {
    display: grid;
    gap: 15px;
}

.prm-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.field label span {
    color: red;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: #2271b1;
    outline: none;
}

.prm-actions {
    margin-top: 20px;
}

.prm-actions button {
    padding: 8px 18px;
    font-size: 14px;
}
/* ======================================
   STEP-6 : LAND DETAILS UI POLISH
   (SAFE – CSS ONLY)
====================================== */

#step-6 {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 25px;
    margin-top: 20px;
}

/* Title */
#step-6 h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1e293b;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 8px;
}

/* Grid layout */
#step-6 .prm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

/* Field */
#step-6 label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}

#step-6 input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
}

#step-6 input[type="text"]:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px rgba(34,113,177,0.2);
}

/* Save button */
#save-land {
    margin-top: 10px;
    padding: 10px 26px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    background: #2271b1;
    color: #ffffff;
    border: none;
    cursor: pointer;
}

#save-land:hover {
    background: #135e96;
}

/* Divider */
#step-6 hr {
    margin: 30px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* ===============================
   LAND TABLE
=============================== */

#land-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#land-table thead th {
    background: #f1f5f9;
    font-weight: 600;
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

#land-table tbody td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

#land-table tbody tr:hover {
    background: #f8fafc;
}

/* Action buttons */
#land-table .button {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
}

#land-table .edit-land {
    background: #f59e0b;
    color: #fff;
    border: none;
    margin-right: 6px;
}

#land-table .edit-land:hover {
    background: #d97706;
}

#land-table .delete-land {
    background: #ef4444;
    color: #fff;
    border: none;
}

#land-table .delete-land:hover {
    background: #dc2626;
}

/* ===============================
   MOBILE RESPONSIVE
=============================== */
@media (max-width: 768px) {

    #step-6 .prm-grid {
        grid-template-columns: 1fr;
    }

    #save-land {
        width: 100%;
    }

    #land-table thead {
        display: none;
    }

    #land-table tbody tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        padding: 10px;
    }

    #land-table tbody td {
        display: flex;
        justify-content: space-between;
        border: none;
        padding: 6px 0;
    }

    #land-table tbody td:last-child {
        justify-content: flex-start;
        gap: 10px;
    }
}
.prm-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.prm-tab {
    padding: 8px 14px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    cursor: pointer;
}

.prm-tab.active {
    background: #2271b1;
    color: #fff;
}

.prm-photo-wrapper {
    max-width: 520px;
}


