:root {
    --primary: #243B73;
    --primary-dark: #1F3568;
    --secondary: #2F4A82;
    --light-blue: #EAF0FA;
    --white: #FFFFFF;
    --text: #243B73;
    --border: #D7DCE5;
}

/* =====================================
   PAGE HEADER
===================================== */

.registration-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

.registration-header h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--primary);
}

.registration-header p {
    margin: 4px 0 0;
    color: #5A6E85;
    font-size: 13px;
}

.form-section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 18px;
    letter-spacing: .3px;
    border-bottom: 2px solid var(--light-blue);
    padding-bottom: 6px;
}

/* =========================================
   SELECTED PLOT CARD
========================================= */

.selected-plot-card {
    margin-top: 20px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(36, 59, 115, 0.08);
}


/* =========================================
   HEADER
========================================= */

.selected-plot-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    background: var(--light-blue);
    border-bottom: 1px solid var(--border);
}

.selected-title {
    display: flex;
    align-items: center;
    gap: 13px;
}

.selected-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 20px;
}

.selected-title small {
    display: block;
    margin-bottom: 3px;
    color: var(--secondary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.selected-title h2,
.selected-title h3 {
    margin: 0;
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
}

.selected-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    background: #ffffff;
    color: var(--primary);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.selected-status i {
    font-size: 14px;
    color: var(--primary);
}


/* =========================================
   DETAIL GRID
========================================= */

.selected-plot-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 18px 20px;
}


.plot-detail-box {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #ffffff;
}

.plot-detail-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--light-blue);
    color: var(--primary);
    font-size: 17px;
}


.plot-detail-box span {
    display: block;

    color: #4b5d6f;

    font-size: 12px;
    font-weight: 600;

    line-height: 1.3;
}


.plot-detail-box small {
    display: block;

    margin-top: 1px;

    color: #8a98a6;

    font-size: 10px;
}


.plot-detail-box strong {
    display: block;

    margin-top: 6px;

    color: #162b40;

    font-size: 15px;
    font-weight: 700;

    line-height: 1.3;
}


.plot-detail-box em {
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    color: #6c7a88;
}


/* =========================================
   PAYMENT SUMMARY
========================================= */

.selected-payment-summary {
    margin: 0 20px 20px;

    border-top: 1px solid #e0e6ec;
}


.payment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 12px 4px;
}


.payment-row span {
    color: #536575;

    font-size: 13px;
    font-weight: 600;
}


.payment-row span small {
    display: block;

    margin-top: 2px;

    color: #8a98a6;

    font-size: 10px;
    font-weight: 500;
}


.payment-row strong {
    color: #1d3349;

    font-size: 15px;
}


.total-row {
    margin-top: 2px;

    padding: 14px 16px;

    border-radius: 8px;

    background: #f4f7fa;
}


.total-row span {
    color: #162b40;

    font-size: 14px;
    font-weight: 700;
}


.total-row strong {
    color: #162b40;

    font-size: 20px;
    font-weight: 800;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .selected-plot-card-header {
        align-items: flex-start;
        flex-direction: column;

        padding: 16px;
    }


    .selected-status {
        margin-left: 55px;
    }


    .selected-title h3 {
        font-size: 18px;
    }


    .selected-plot-details-grid {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 10px;
    }


    .plot-detail-box {
        padding: 12px;

        gap: 8px;
    }


    .plot-detail-icon {
        width: 30px;
        height: 30px;

        flex-basis: 30px;

        font-size: 14px;
    }


    .plot-detail-box strong {
        font-size: 13px;
    }


    .selected-payment-summary {
        margin: 0 15px 15px;
    }


    .total-row strong {
        font-size: 17px;
    }

}


@media (max-width: 420px) {

    .selected-plot-details-grid {
        grid-template-columns: 1fr;
    }

}

/* =====================================
           MAIN WRAPPER
        ===================================== */

.registration-wrapper {
    padding: 40px 0 70px;
    background: #f0f5ff;
}


/* =====================================
           FORM CARD
        ===================================== */

.registration-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e8eaed;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(16, 24, 40, 0.04);
}


/* =====================================
           STEP HEADER
        ===================================== */

.registration-top {
    padding: 25px 30px 22px;
    border-bottom: 1px solid #edf0f2;
    background: #ffffff;
}

.registration-top h5 {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 700;
    color: #1d2939;
}

.step-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #667085;
    margin-bottom: 8px;
}

.registration-progress {
    height: 6px;
    border-radius: 20px;
    background: #edf0f2;
}

.registration-progress .progress-bar {
    background: #111827;
    border-radius: 20px;
}


/* =====================================
           FORM CONTENT
        ===================================== */

.form-content {
    padding: 35px 30px;
}

.form-main-title {
    font-size: 18px;
    font-weight: 800;
    color: #1d2939;
    margin-bottom: 30px;
    letter-spacing: .3px;
}


/* =====================================
           FORM GROUP
        ===================================== */

.form-group-custom {
    margin-bottom: 22px;
}

.form-group-custom label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #344054;
    margin-bottom: 8px;
}

.form-group-custom label span {
    color: #dc2626;
}


/* =====================================
           INPUTS
        ===================================== */

.custom-input {
    min-height: 48px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 14px;
    color: #344054;
    box-shadow: none !important;
}

.custom-input:focus {
    border-color: #111827;
}

textarea.custom-input {
    min-height: 110px;
    resize: vertical;
}


/* =====================================
           RADIO BUTTONS
        ===================================== */

.radio-group-box {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.form-check-inline {
    margin-right: 0;
}

.form-check-input {
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    margin-bottom: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}


/* =====================================
           SECTION
        ===================================== */

.form-section {
    border-top: 1px solid #eaecf0;
    margin-top: 35px;
    padding-top: 28px;
}

.form-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1d2939;
}

.form-section h3 i {
    margin-right: 7px;
}

.form-section h3 span {
    color: #dc2626;
}


/* =====================================
           UPLOAD BOX
        ===================================== */

.upload-box {
    border: 1px dashed #98a2b3;
    border-radius: 9px;
    min-height: 110px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: .2s ease;
    background: #fafafa;
}

.upload-box:hover {
    border-color: #111827;
    background: #f8fafc;
}

.upload-box i {
    font-size: 24px;
    color: #667085;
    margin-bottom: 8px;
}

.upload-box::after {
    content: "Click to upload";
    font-size: 12px;
    color: #667085;
}

.upload-box input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-name {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    color: #667085;
    word-break: break-word;
}


/* =====================================
           DECLARATION
        ===================================== */

.declaration-box {
    margin-top: 30px;
    padding: 18px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #eaecf0;
}

.declaration-box .form-check-label {
    line-height: 1.6;
    color: #475467;
}


/* =====================================
           BUTTONS
        ===================================== */

.form-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.next-btn {
    background: #111827;
    color: #ffffff;
    border: none;
    min-width: 160px;
    min-height: 48px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: .2s ease;
}

.next-btn:hover {
    background: #000000;
    color: #ffffff;
}

.next-btn i {
    margin-left: 8px;
}


/* =====================================
           LOADER
        ===================================== */

.step-loader {
    padding: 80px 20px;
    text-align: center;
}


/* =====================================
           VALIDATION
        ===================================== */

.is-invalid {
    border-color: #dc3545 !important;
}


/* =====================================
           MOBILE
        ===================================== */

@media (max-width: 767.98px) {

    .registration-header {
        padding: 15px 0;
    }

    .registration-header h1 {
        font-size: 17px;
        line-height: 1.4;
    }

    .registration-header p {
        font-size: 12px;
    }

    .registration-wrapper {
        padding: 20px 10px 40px;
    }

    .registration-card {
        border-radius: 10px;
    }

    .registration-top {
        padding: 20px 18px;
    }

    .registration-top h5 {
        font-size: 15px;
        line-height: 1.5;
    }

    .form-content {
        padding: 25px 18px;
    }

    .form-main-title {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .radio-group-box {
        gap: 15px;
    }

    .form-group-custom {
        margin-bottom: 18px;
    }

    .form-section {
        margin-top: 25px;
        padding-top: 23px;
    }

    .form-section h3 {
        font-size: 15px;
    }

    .custom-input {
        font-size: 16px;
    }

    .form-action {
        margin-top: 25px;
    }

    .next-btn {
        width: 100%;
    }

    .upload-box {
        min-height: 100px;
    }

}

/* =====================================
   STEP DESCRIPTION
===================================== */

.step-description {
    font-size: 14px;
    color: #667085;
    margin-top: -15px;
    margin-bottom: 28px;
    line-height: 1.6;
}


/* =====================================
   PLOT SELECTION
===================================== */

.plot-selection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.plot-card {
    display: block;
    margin: 0;
    cursor: pointer;
}

.plot-card input {
    display: none;
}

.plot-card-content {
    min-height: 92px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.plot-card:hover .plot-card-content {
    border-color: #111827;
    transform: translateY(-2px);
}

.plot-card input:checked+.plot-card-content {
    border-color: #111827;
    background: #f9fafb;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.plot-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #98a2b3;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.plot-card input:checked+.plot-card-content .plot-radio {
    border-color: #111827;
}

.plot-card input:checked+.plot-card-content .plot-radio::after {
    content: "";
    width: 10px;
    height: 10px;
    background: #111827;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
}

.plot-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.plot-info strong {
    font-size: 18px;
    color: #1d2939;
}

.plot-info small {
    font-size: 11px;
    color: #667085;
    font-weight: 600;
    margin-top: 3px;
}

.plot-arrow {
    color: #98a2b3;
    font-size: 18px;
}

.plot-card input:checked+.plot-card-content .plot-arrow {
    color: #111827;
}


/* =====================================
   PAYMENT SUMMARY
===================================== */

.payment-summary {
    margin-top: 30px;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    padding: 24px;
    background: #ffffff;
}

.payment-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.summary-label {
    display: block;
    font-size: 12px;
    color: #667085;
    margin-bottom: 5px;
}

.payment-summary-header h3 {
    font-size: 20px;
    margin: 0;
    font-weight: 700;
    color: #1d2939;
}

.summary-rate {
    text-align: right;
}

.summary-rate span {
    display: block;
    font-size: 12px;
    color: #667085;
}

.summary-rate strong {
    display: block;
    font-size: 18px;
    color: #1d2939;
    margin-top: 3px;
}

.summary-rate small {
    font-size: 10px;
    color: #98a2b3;
}

.payment-divider {
    height: 1px;
    background: #eaecf0;
    margin: 22px 0;
}

.payment-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    font-size: 14px;
}

.payment-row span {
    color: #667085;
}

.payment-row strong {
    color: #344054;
    font-weight: 600;
}

.payment-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 18px;
    border-top: 1px solid #eaecf0;
}

.payment-total span {
    font-size: 14px;
    font-weight: 700;
    color: #1d2939;
}

.payment-total strong {
    font-size: 20px;
    color: #111827;
}


/* =====================================
   TERMS
===================================== */

.terms-box {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid #eaecf0;
    background: #f9fafb;
    border-radius: 9px;
}

.terms-box .form-check-label {
    font-size: 13px !important;
    line-height: 1.6;
    color: #475467;
}


/* =====================================
   STEP BUTTONS
===================================== */

.step-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.previous-btn,
.submit-btn {
    min-height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.previous-btn {
    border: 1px solid #d0d5dd;
    background: #ffffff;
    color: #344054;
}

.previous-btn:hover {
    background: #f9fafb;
    border-color: #98a2b3;
}

.submit-btn,
.submit-application-btn {
    background: var(--primary) !important;
    color: #ffffff !important;
    border: 1px solid var(--primary) !important;
    box-shadow: 0 4px 12px rgba(36, 59, 115, 0.25);
    transition: all 0.25s ease;
}

.submit-btn:hover,
.submit-application-btn:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(31, 53, 104, 0.35);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(36, 59, 115, 0.15) !important;
}

.plot-dropdown {
    border: 2px solid var(--primary) !important;
    background-color: #ffffff !important;
    color: var(--primary-dark) !important;
    font-weight: 600 !important;
}


/* =====================================
   MOBILE STEP 2
===================================== */

@media (max-width: 767.98px) {

    .plot-selection-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .plot-card-content {
        min-height: 78px;
        padding: 15px;
    }

    .payment-summary {
        padding: 18px;
    }

    .payment-summary-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .summary-rate {
        text-align: left;
    }

    .step-buttons {
        flex-direction: column-reverse;
    }

    .previous-btn,
    .submit-btn {
        width: 100%;
    }

}