/**
 * QanoonMarkaz
 * Registry Calculator CSS
 *
 * IMPORTANT:
 * This CSS is written for the existing
 * page-registry-calculator.php structure.
 * No class or ID names have been changed.
 */


/* ==========================================================
   MAIN PAGE
========================================================== */

.qm-registry-calculator-page {
    width: 100%;
    padding: 50px 20px 70px;
    background: #f5f7fa;
    box-sizing: border-box;
}

.qm-registry-calculator-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    align-items: start;
}

.qm-registry-calculator-main {
    min-width: 0;
}


/* ==========================================================
   HEADER
========================================================== */

.qm-registry-calculator-header {
    margin-bottom: 25px;
}

.qm-registry-calculator-header h1 {
    margin: 0 0 10px;
    color: #000e36;
    font-size: 34px;
    line-height: 1.25;
    font-weight: 700;
}

.qm-registry-calculator-header p {
    margin: 0;
    max-width: 850px;
    color: #5d6470;
    font-size: 16px;
    line-height: 1.7;
}

/* ==========================================================
   MAIN ADVERTISEMENT
   ========================================================== */

.qm-tools-ad-top {
    width: 100%;
    min-height: 220px;

    margin-bottom: 35px;

    background: #ffffff;

    border: 1px solid #dedede;
    border-radius: 4px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.qm-tools-ad-top::before {
    content: "ADVERTISEMENT";

    position: absolute;

    top: 10px;
    left: 14px;

    color: #aaaaaa;

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 1px;
}

.qm-tools-ad-top span {
    color: #aaaaaa;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: .5px;
}



/* ==========================================================
   CALCULATOR BOX
========================================================== */

.qm-registry-calculator-box {
    background: #ffffff;
    border: 1px solid #e3e7ed;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 18px rgba(0, 14, 54, 0.06);
    box-sizing: border-box;
}

#qmRegistryCalculator {
    width: 100%;
}


/* ==========================================================
   FORM SECTIONS
========================================================== */

.qm-form-section {
    margin: 0 0 28px;
    padding: 0 0 25px;
    border-bottom: 1px solid #e7eaf0;
}

.qm-form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.qm-form-section h2 {
    margin: 0 0 20px;
    padding-left: 12px;
    border-left: 4px solid #e0a800;
    color: #000e36;
    font-size: 21px;
    line-height: 1.4;
    font-weight: 700;
}


/* ==========================================================
   FORM ROW
========================================================== */

.qm-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.qm-form-row .qm-form-group {
    margin-bottom: 0;
}


/* ==========================================================
   FORM GROUP
========================================================== */

.qm-form-group {
    width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.qm-form-group:last-child {
    margin-bottom: 0;
}

.qm-form-group label {
    display: block;
    margin: 0 0 8px;
    color: #000e36;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
}

.qm-form-group input,
.qm-form-group select {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #cfd5df;
    border-radius: 6px;
    background: #ffffff;
    color: #222b38;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    box-sizing: border-box;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.qm-form-group input:hover,
.qm-form-group select:hover {
    border-color: #aeb7c5;
}

.qm-form-group input:focus,
.qm-form-group select:focus {
    border-color: #000e36;
    box-shadow: 0 0 0 3px rgba(0, 14, 54, 0.08);
}

.qm-form-group input::placeholder {
    color: #9aa2ad;
}

.qm-form-group select {
    cursor: pointer;
}

.qm-form-group small {
    display: block;
    margin-top: 6px;
    color: #737b87;
    font-size: 13px;
    line-height: 1.5;
}


/* ==========================================================
   SPECIFIC HIDDEN FIELD ROWS
   IDs preserved exactly
========================================================== */

#qm_construction_value_row,
#qm_gift_construction_row,
#qm_gift_property_fields {
    box-sizing: border-box;
}


/* ==========================================================
   PROPERTY VALUE PREVIEW
========================================================== */

.qm-property-value-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 5px 0 25px;
    padding: 17px 20px;
    border: 1px solid #dce2ea;
    border-left: 4px solid #e0a800;
    border-radius: 7px;
    background: #f8f9fb;
    box-sizing: border-box;
}

.qm-property-value-preview strong {
    color: #000e36;
    font-size: 16px;
    font-weight: 700;
}

.qm-property-value-preview span {
    color: #000e36;
    font-size: 18px;
    font-weight: 700;
    text-align: right;
}


/* ==========================================================
   RATE INFORMATION
========================================================== */

.qm-rate-information {
    margin: 5px 0 25px;
    padding: 22px 24px;
    border: 1px solid #dce2ea;
    border-radius: 8px;
    background: #f8f9fb;
    box-sizing: border-box;
}

.qm-rate-information h3 {
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dfe4eb;
    color: #000e36;
    font-size: 19px;
    line-height: 1.4;
    font-weight: 700;
}

.qm-rate-information p {
    margin: 0;
    padding: 8px 0;
    color: #4e5663;
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px solid #e9ecf1;
}

.qm-rate-information p:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.qm-rate-information strong {
    color: #000e36;
    font-weight: 700;
}


/* ==========================================================
   CALCULATE BUTTON
========================================================== */

.qm-calculator-action {
    margin-top: 25px;
    text-align: right;
}

.qm-calculator-action button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 28px;
    border: 1px solid #000e36;
    border-radius: 6px;
    background: #000e36;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.qm-calculator-action button:hover {
    background: #e0a800;
    border-color: #e0a800;
    color: #000e36;
    box-shadow: 0 5px 14px rgba(0, 14, 54, 0.15);
}

.qm-calculator-action button:active {
    transform: translateY(1px);
}

.qm-calculator-action button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(224, 168, 0, 0.25);
}


/* ==========================================================
   SIDEBAR
========================================================== */

.qm-registry-calculator-sidebar {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}


/* ==========================================================
   RESULT MODAL
========================================================== */

.qm-registry-result-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    width: 100%;
    height: 100%;
}

.qm-registry-result-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 14, 54, 0.72);
}

.qm-registry-result-window {
    position: relative;
    z-index: 2;
    width: calc(100% - 40px);
    max-width: 680px;
    max-height: calc(100vh - 60px);
    margin: 30px auto;
    overflow-y: auto;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}


/* ==========================================================
   RESULT CLOSE BUTTON
========================================================== */

.qm-registry-result-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 3;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f3f6;
    color: #000e36;
    font-family: Arial, sans-serif;
    font-size: 27px;
    font-weight: 400;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.qm-registry-result-close:hover {
    background: #e0a800;
    color: #000e36;
}

.qm-registry-result-close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(224, 168, 0, 0.25);
}


/* ==========================================================
   RESULT CONTENT
========================================================== */

.qm-registry-result-content {
    padding: 35px 35px 30px;
}

.qm-registry-result-content h2 {
    margin: 0 45px 25px 0;
    color: #000e36;
    font-size: 25px;
    line-height: 1.35;
    font-weight: 700;
}


/* ==========================================================
   RESULT PROPERTY VALUE
========================================================== */

.qm-result-property-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid #dce2ea;
    border-left: 4px solid #e0a800;
    border-radius: 7px;
    background: #f8f9fb;
    box-sizing: border-box;
}

.qm-result-property-value span {
    color: #4e5663;
    font-size: 15px;
    font-weight: 600;
}

.qm-result-property-value strong {
    color: #000e36;
    font-size: 18px;
    font-weight: 700;
    text-align: right;
}


/* ==========================================================
   RESULT ROWS
========================================================== */

.qm-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 4px;
    border-bottom: 1px solid #e7eaf0;
}

.qm-result-row span {
    color: #4d5562;
    font-size: 15px;
    line-height: 1.5;
}

.qm-result-row strong {
    color: #000e36;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
    text-align: right;
}


/* ==========================================================
   RESULT TOTAL
========================================================== */

.qm-result-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 7px;
    background: #000e36;
    box-sizing: border-box;
}

.qm-result-total span {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
}

.qm-result-total strong {
    color: #e0a800;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 700;
    text-align: right;
}


/* ==========================================================
   RESULT NOTE
========================================================== */

.qm-result-note {
    margin-top: 22px;
    padding: 16px 18px;
    border: 1px solid #e0e4ea;
    border-radius: 6px;
    background: #f8f9fb;
}

.qm-result-note p {
    margin: 0 0 10px;
    color: #68717d;
    font-size: 13px;
    line-height: 1.7;
}

.qm-result-note p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1000px) {

    .qm-registry-calculator-container {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 22px;
    }

    .qm-registry-calculator-box {
        padding: 25px;
    }

    .qm-registry-calculator-header h1 {
        font-size: 30px;
    }

}


/* ==========================================================
   MOBILE / SINGLE COLUMN
========================================================== */

@media (max-width: 800px) {

    .qm-registry-calculator-page {
        padding: 35px 15px 50px;
    }

    .qm-registry-calculator-container {
        display: block;
    }

    .qm-registry-calculator-sidebar {
        margin-top: 30px;
    }

    .qm-registry-calculator-header {
        margin-bottom: 20px;
    }

    .qm-registry-calculator-header h1 {
        font-size: 28px;
    }

    .qm-registry-calculator-header p {
        font-size: 15px;
    }

    .qm-registry-calculator-box {
        padding: 22px;
    }

    .qm-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 520px) {

    .qm-registry-calculator-page {
        padding: 25px 10px 40px;
    }

    .qm-registry-calculator-header h1 {
        font-size: 25px;
    }

    .qm-registry-calculator-header p {
        font-size: 14px;
        line-height: 1.6;
    }

    .qm-registry-calculator-box {
        padding: 18px;
        border-radius: 8px;
    }

    .qm-form-section {
        margin-bottom: 23px;
        padding-bottom: 21px;
    }

    .qm-form-section h2 {
        margin-bottom: 17px;
        font-size: 19px;
    }

    .qm-form-group {
        margin-bottom: 17px;
    }

    .qm-form-group input,
    .qm-form-group select {
        min-height: 46px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .qm-property-value-preview {
        display: block;
        padding: 15px 16px;
    }

    .qm-property-value-preview strong {
        display: block;
        margin-bottom: 6px;
        font-size: 14px;
    }

    .qm-property-value-preview span {
        display: block;
        font-size: 17px;
        text-align: left;
    }

    .qm-rate-information {
        padding: 18px;
    }

    .qm-rate-information h3 {
        font-size: 18px;
    }

    .qm-rate-information p {
        font-size: 13px;
    }

    .qm-calculator-action {
        text-align: left;
    }

    .qm-calculator-action button {
        width: 100%;
        min-height: 49px;
    }


    /* Result Modal */

    .qm-registry-result-window {
        width: calc(100% - 20px);
        max-height: calc(100vh - 30px);
        margin: 15px auto;
        border-radius: 8px;
    }

    .qm-registry-result-content {
        padding: 28px 18px 22px;
    }

    .qm-registry-result-content h2 {
        margin-right: 40px;
        margin-bottom: 20px;
        font-size: 21px;
    }

    .qm-registry-result-close {
        top: 9px;
        right: 9px;
        width: 35px;
        height: 35px;
        font-size: 25px;
        line-height: 33px;
    }

    .qm-result-property-value {
        display: block;
        padding: 15px 16px;
    }

    .qm-result-property-value span {
        display: block;
        margin-bottom: 5px;
    }

    .qm-result-property-value strong {
        display: block;
        font-size: 17px;
        text-align: left;
    }

    .qm-result-row {
        gap: 10px;
        padding: 12px 2px;
    }

    .qm-result-row span,
    .qm-result-row strong {
        font-size: 14px;
    }

    .qm-result-total {
        display: block;
        padding: 16px;
    }

    .qm-result-total span {
        display: block;
        margin-bottom: 5px;
        font-size: 15px;
    }

    .qm-result-total strong {
        display: block;
        font-size: 19px;
        text-align: left;
    }

    .qm-result-note {
        padding: 14px;
    }

    .qm-result-note p {
        font-size: 12px;
    }

}


/* ==========================================================
   VERY SMALL SCREENS
========================================================== */

@media (max-width: 360px) {

    .qm-registry-calculator-box {
        padding: 15px;
    }

    .qm-registry-result-content {
        padding: 25px 15px 20px;
    }

    .qm-result-row span,
    .qm-result-row strong {
        font-size: 13px;
    }

}

/* ==========================================================
   CALCULATOR MODE BUTTONS
========================================================== */

.qm-registry-calculator-modes {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
}

.qm-registry-calculator-mode {
    min-width: 120px;
    min-height: 44px;
    padding: 10px 22px;
    border: 1px solid #000e36;
    border-radius: 6px;
    background: #ffffff;
    color: #000e36;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.qm-registry-calculator-mode:hover {
    background: #f5f7fa;
    border-color: #e0a800;
}

.qm-registry-calculator-mode.active {
    background: #000e36;
    border-color: #000e36;
    color: #ffffff;
}

.qm-registry-calculator-mode.active:hover {
    background: #000e36;
    border-color: #000e36;
    color: #ffffff;
}

.qm-registry-calculator-mode:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(224, 168, 0, 0.22);
}


/* ==========================================================
   MOBILE MODE BUTTONS
========================================================== */

@media (max-width: 520px) {

    .qm-registry-calculator-modes {
        gap: 8px;
        margin-bottom: 15px;
    }

    .qm-registry-calculator-mode {
        flex: 1;
        min-width: 0;
        min-height: 44px;
        padding: 9px 15px;
        font-size: 14px;
    }

}

/* ==========================================================
   SIDEBAR
   ========================================================== */

.qm-tools-sidebar-inner {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


/* ==========================================================
   SIDEBAR ADVERTISEMENT
   ========================================================== */

.qm-sidebar-ad {
    width: 100%;
    min-height: 250px;

    background: #ffffff;

    border: 1px solid #dedede;

    border-radius: 4px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.qm-sidebar-ad::before {
    content: "ADVERTISEMENT";

    position: absolute;

    top: 10px;

    left: 50%;

    transform: translateX(-50%);

    color: #aaaaaa;

    font-size: 9px;

    letter-spacing: 1px;
}

.qm-sidebar-ad span {
    color: #aaaaaa;

    font-size: 11px;
}


/* ==========================================================
   SIDEBAR WIDGET
   ========================================================== */

.qm-sidebar-widget {
    background: #ffffff;

    border: 1px solid #dedede;

    border-radius: 4px;

    overflow: hidden;
}

.qm-sidebar-widget-content {
    padding: 0 20px 8px;
}


/* ==========================================================
   SIDEBAR TITLE
   ========================================================== */

.qm-sidebar-title {
    display: flex;

    align-items: center;

    gap: 9px;

    padding: 15px 20px;

    border-bottom: 1px solid #eeeeee;

    background: #ffffff;
}

.qm-sidebar-title-bar {
    width: 4px;
    height: 21px;

    flex-shrink: 0;

    background: #C79A1B;
}

.qm-sidebar-title h3 {
    margin: 0;

    color: #0B2D6B;

    font-size: 18px;

    line-height: 1.3;

    font-weight: 700;
}


/* ==========================================================
   SIDEBAR LIST
   ========================================================== */

.qm-sidebar-list {
    list-style: none;

    margin: 0;
    padding: 0;
}

.qm-sidebar-list li {
    border-bottom: 1px solid #eeeeee;
}

.qm-sidebar-list li:last-child {
    border-bottom: none;
}

.qm-sidebar-list li a {
    display: block;

    padding: 11px 0;

    color: #444444;

    text-decoration: none;

    font-size: 13px;

    line-height: 1.55;

    transition:
        color .2s ease,
        padding-left .2s ease;
}

.qm-sidebar-list li a:hover {
    color: #C79A1B;

    padding-left: 4px;
}


/* ==========================================================
   SIDEBAR ACTION BOX
   ========================================================== */

.qm-sidebar-action {
    background: #ffffff;

    border: 1px solid #dedede;

    border-radius: 4px;

    padding: 22px 20px;
}

.qm-sidebar-action h3 {
    margin: 0 0 9px;

    color: #0B2D6B;

    font-size: 19px;

    line-height: 1.35;

    font-weight: 700;
}

.qm-sidebar-description {
    margin: 0 0 17px;

    color: #666666;

    font-size: 13px;

    line-height: 1.7;
}


/* ==========================================================
   SIDEBAR BUTTON
   ========================================================== */

.qm-sidebar-action-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    background: #0B2D6B;

    color: #ffffff;

    border-radius: 3px;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition:
        background .25s ease,
        color .25s ease;
}

.qm-sidebar-action-button:hover {
    background: #C79A1B;

    color: #ffffff;
}

.qm-sidebar-action-button span {
    margin-left: 7px;
}


/* ==========================================================
   WHATSAPP
   ========================================================== */

.qm-sidebar-whatsapp {
    display: flex;

    align-items: center;

    gap: 13px;

    padding: 17px 18px;

    background: #ffffff;

    border: 1px solid #dedede;

    border-radius: 4px;

    text-decoration: none;

    transition:
        border-color .25s ease,
        box-shadow .25s ease;
}

.qm-sidebar-whatsapp:hover {
    border-color: #25D366;

    box-shadow: 0 5px 18px rgba(37, 211, 102, .12);
}

.qm-whatsapp-icon {
    flex: 0 0 44px;

    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #25D366;

    color: #ffffff;

    border-radius: 50%;

    font-size: 19px;
}

.qm-whatsapp-content {
    min-width: 0;
}

.qm-whatsapp-label {
    display: block;

    margin-bottom: 3px;

    color: #777777;

    font-size: 11px;
}

.qm-whatsapp-number {
    display: block;

    color: #128C45;

    font-size: 14px;

    font-weight: 700;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1100px) {

    .qm-tools-layout {
        grid-template-columns: 68% 32%;

        gap: 22px;
    }

    .qm-tools-grid {
        gap: 18px;
    }

    .qm-tool-content {
        padding: 20px;
    }

}


/* ==========================================================
   TABLET / MOBILE
   ========================================================== */

@media (max-width: 991px) {

    .qm-tools-layout {
        grid-template-columns: 1fr;
    }

    .qm-tools-sidebar {
        width: 100%;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .qm-tools-page {
        padding: 25px 0 45px;
    }


    /* Main Advertisement */

    .qm-tools-ad-top {
        min-height: 160px;

        margin-bottom: 28px;
    }


    /* Heading */

    .qm-tools-heading h1 {
        font-size: 26px;
    }

    .qm-tools-heading p {
        font-size: 14px;
    }


    /* Tools */

    .qm-tools-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    /* Image */

    .qm-tool-image {
        height: 200px;
    }


    /* Content */

    .qm-tool-content {
        padding: 21px;
    }

    .qm-tool-content h2 {
        font-size: 20px;
    }


    /* Coming Soon */

    .qm-coming-box {
        align-items: flex-start;

        padding: 20px;
    }

}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 480px) {

    .qm-tools-heading h1 {
        font-size: 23px;
    }

    .qm-tools-heading p {
        font-size: 13px;
    }

    .qm-tool-image {
        height: 180px;
    }

    .qm-tool-content {
        padding: 19px;
    }

    .qm-tool-content h2 {
        font-size: 19px;
    }

    .qm-tool-content p {
        font-size: 13px;
    }

    .qm-coming-box {
        flex-direction: column;
    }

    .qm-sidebar-action {
        padding: 20px;
    }

}


/* ==========================================================
   SEO INFORMATION SECTIONS
========================================================== */

.qm-registry-calculator-seo {
    width: 100%;
    margin-top: 30px;
}

.qm-registry-seo-section {
    margin-bottom: 25px;
    padding: 25px 28px;
    border: 1px solid #e2e6ec;
    border-radius: 8px;
    background: #ffffff;
    box-sizing: border-box;
}

.qm-registry-seo-section:last-child {
    margin-bottom: 0;
}

.qm-registry-seo-section h2 {
    margin: 0 0 15px;
    padding-left: 12px;
    border-left: 4px solid #e0a800;
    color: #000e36;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 700;
}

.qm-registry-seo-section p {
    margin: 0 0 13px;
    color: #555f6d;
    font-size: 15px;
    line-height: 1.8;
}

.qm-registry-seo-section p:last-child {
    margin-bottom: 0;
}

.qm-registry-seo-section ul {
    margin: 0;
    padding: 0 0 0 20px;
}

.qm-registry-seo-section li {
    margin: 0 0 10px;
    padding-left: 5px;
    color: #555f6d;
    font-size: 15px;
    line-height: 1.75;
}

.qm-registry-seo-section li:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   DISCLAIMER
========================================================== */

.qm-registry-disclaimer {
    background: #f8f9fb;
}

.qm-registry-disclaimer h2 {
    border-left-color: #000e36;
}


/* ==========================================================
   SEO MOBILE
========================================================== */

@media (max-width: 520px) {

    .qm-registry-calculator-seo {
        margin-top: 25px;
    }

    .qm-registry-seo-section {
        margin-bottom: 20px;
        padding: 20px;
        border-radius: 7px;
    }

    .qm-registry-seo-section h2 {
        margin-bottom: 13px;
        font-size: 19px;
    }

    .qm-registry-seo-section p,
    .qm-registry-seo-section li {
        font-size: 14px;
        line-height: 1.7;
    }

    .qm-registry-seo-section ul {
        padding-left: 18px;
    }

}
/* ==========================================================
   CALCULATOR BENEFIT COUNTER
========================================================== */

.qm-registry-benefit-counter {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 20px;
    padding: 14px 18px;
    background: #f8f9fb;
    border: 1px solid #e2e6ec;
    border-left: 4px solid #e0a800;
    border-radius: 7px;
    box-sizing: border-box;
}

.qm-registry-benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: #000e36;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
}

.qm-registry-benefit-counter div {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.qm-registry-benefit-counter strong {
    color: #000e36;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.qm-registry-benefit-counter span:not(.qm-registry-benefit-icon) {
    color: #555f6d;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 520px) {

    .qm-registry-benefit-counter {
        margin-bottom: 16px;
        padding: 12px 14px;
    }

    .qm-registry-benefit-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        font-size: 15px;
    }

    .qm-registry-benefit-counter strong {
        font-size: 18px;
    }

    .qm-registry-benefit-counter span:not(.qm-registry-benefit-icon) {
        font-size: 13px;
    }
}



/* ==========================================================
   ADVANCE REGISTRY CALCULATOR
========================================================== */

.qm-registry-advance-calculator {
    width: 100%;
    box-sizing: border-box;
}

.qm-advance-calculator-header {
    margin: 0 0 14px;
}

.qm-advance-calculator-header h2 {
    margin: 0 0 5px;
    color: #000e36;
    font-size: 22px;
    line-height: 1.35;
}

.qm-advance-calculator-header p {
    margin: 0;
    color: #555f6d;
    font-size: 13px;
    line-height: 1.5;
}


/* ==========================================================
   ADVANCE SECTIONS
========================================================== */

.qm-advance-section {
    margin-bottom: 11px;
    padding: 13px 15px;
    border: 1px solid #e2e6ec;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}

.qm-advance-section h3 {
    margin: 0 0 10px;
    padding-left: 8px;
    border-left: 3px solid #e0a800;
    color: #000e36;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
}

.qm-advance-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.qm-advance-field {
    min-width: 0;
}

.qm-advance-field label {
    display: block;
    margin: 0 0 4px;
    color: #000e36;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.qm-advance-field input,
.qm-advance-field select {
    display: block;
    width: 100%;
    height: 38px;
    padding: 7px 9px;
    border: 1px solid #d7dce3;
    border-radius: 5px;
    background: #fff;
    color: #333;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    box-sizing: border-box;
    outline: none;
}

.qm-advance-field input:focus,
.qm-advance-field select:focus {
    border-color: #000e36;
}

.qm-advance-field small {
    display: block;
    margin-top: 3px;
    color: #777f8b;
    font-size: 10px;
    line-height: 1.4;
}


/* ==========================================================
   MEASUREMENT
========================================================== */

.qm-advance-measurement-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, .72fr);
    gap: 13px;
    align-items: start;
}

.qm-advance-help-text {
    margin: 0 0 7px;
    color: #777f8b;
    font-size: 11px;
    line-height: 1.45;
}

.qm-advance-measurement-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
}

.qm-advance-measurement-grid .qm-advance-field input {
    height: 36px;
    padding: 6px 7px;
}

.qm-advance-measurement-result {
    padding: 10px 12px;
    border: 1px solid #e2e6ec;
    border-radius: 5px;
    background: #f8f9fb;
    box-sizing: border-box;
}

.qm-advance-measurement-result h4 {
    margin: 0 0 5px;
    color: #000e36;
    font-size: 13px;
    line-height: 1.4;
}

.qm-advance-conversion-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #e7eaf0;
}

.qm-advance-conversion-row:last-child {
    border-bottom: 0;
}

.qm-advance-conversion-row span {
    color: #626b77;
    font-size: 11px;
}

.qm-advance-conversion-row strong {
    color: #000e36;
    font-size: 12px;
}


/* =========================================================
   PROPERTY VALUATION HEADER
========================================================= */

.qm-property-valuation-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
    margin-bottom: 12px;
}

.qm-property-valuation-header h3 {
    margin: 0;
    white-space: nowrap;
}


/* =========================================================
   DC RATE QUESTION + OPTIONS
========================================================= */

.qm-property-valuation-header .qm-advance-dc-rate-options {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
}

.qm-dc-rate-question {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.qm-property-valuation-header .qm-advance-dc-rate-options label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}

.qm-property-valuation-header
.qm-advance-dc-rate-options input[type="radio"] {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
}


/* =========================================================
   DC + FBR INPUTS
========================================================= */

.qm-advance-section .qm-advance-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}


/* =========================================================
   CALCULATED VALUES
========================================================= */

.qm-advance-calculated-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    width: 100%;
    margin-top: 10px;
}

.qm-advance-calculated-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    min-height: 42px;
    padding: 8px 12px;
    box-sizing: border-box;
}

.qm-advance-calculated-value span {
    font-size: 13px;
    white-space: nowrap;
}

.qm-advance-calculated-value strong {
    font-size: 14px;
    white-space: nowrap;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .qm-property-valuation-header {
        flex-wrap: wrap;
        gap: 8px 18px;
    }

    .qm-property-valuation-header .qm-advance-dc-rate-options {
        flex-wrap: wrap;
    }

    .qm-advance-section .qm-advance-row {
        grid-template-columns: 1fr;
    }

    .qm-advance-calculated-values {
        grid-template-columns: 1fr;
    }

}
/* ==========================================================
   CALCULATED FBR VALUE
========================================================== */

.qm-advance-calculated-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
    padding: 8px 11px;
    border-radius: 5px;
    background: #f8f9fb;
}

.qm-advance-calculated-value span {
    color: #555f6d;
    font-size: 12px;
}

.qm-advance-calculated-value strong {
    color: #000e36;
    font-size: 14px;
}


/* ==========================================================
   SELLER / PURCHASER ROWS
========================================================== */

.qm-advance-person-rows {
    margin-top: 10px;
}

.qm-advance-person-row {
    display: grid;
    grid-template-columns: 1.15fr 1fr .75fr;
    gap: 7px;
    align-items: end;
    margin-bottom: 7px;
    padding: 8px;
    border: 1px solid #e6e9ee;
    border-radius: 5px;
    background: #fafbfc;
    box-sizing: border-box;
}

.qm-advance-person-number {
    grid-column: 1 / -1;
    margin-bottom: -2px;
    color: #000e36;
    font-size: 11px;
    font-weight: 700;
}


/* ==========================================================
   CALCULATE BUTTON
========================================================== */

.qm-registry-advance-calculator .qm-calculator-action {
    margin: 13px 0;
    text-align: center;
}

.qm-registry-advance-calculator .qm-calculator-action button {
    min-height: 40px;
    padding: 9px 20px;
    border: 0;
    border-radius: 5px;
    background: #000e36;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.qm-registry-advance-calculator .qm-calculator-action button:hover {
    background: #e0a800;
    color: #000e36;
}


/* ==========================================================
   ADVANCE RESULT
========================================================== */

.qm-registry-advance-result {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid #e2e6ec;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}

.qm-registry-advance-result h3 {
    margin: 0 0 10px;
    color: #000e36;
    font-size: 18px;
    line-height: 1.4;
}

.qm-advance-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #edf0f4;
}

.qm-advance-result-row span {
    color: #555f6d;
    font-size: 12px;
}

.qm-advance-result-row strong {
    color: #000e36;
    font-size: 12px;
}

.qm-advance-result-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 5px;
    background: #000e36;
}

.qm-advance-result-total span {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.qm-advance-result-total strong {
    color: #e0a800;
    font-size: 17px;
}


/* ==========================================================
   RESULT NOTES
========================================================== */

.qm-advance-result-notes {
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid #e2e6ec;
}

.qm-advance-result-notes h4 {
    margin: 0 0 6px;
    color: #000e36;
    font-size: 14px;
}

.qm-advance-result-notes p {
    margin: 0 0 6px;
    color: #626b77;
    font-size: 11px;
    line-height: 1.55;
}

.qm-advance-result-notes p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   DOWNLOAD
========================================================== */

.qm-advance-download {
    margin-top: 12px;
    text-align: center;
}

.qm-advance-download button {
    min-height: 36px;
    padding: 7px 17px;
    border: 1px solid #000e36;
    border-radius: 5px;
    background: #fff;
    color: #000e36;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.qm-advance-download button:hover {
    background: #000e36;
    color: #fff;
}


/* ==========================================================
   DISCLAIMER
========================================================== */

.qm-advance-disclaimer {
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid #e2e6ec;
}

.qm-advance-disclaimer h4 {
    margin: 0 0 6px;
    color: #000e36;
    font-size: 13px;
}

.qm-advance-disclaimer p {
    margin: 0 0 6px;
    color: #777f8b;
    font-size: 10px;
    line-height: 1.55;
}

.qm-advance-disclaimer p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 800px) {

    .qm-advance-measurement-layout {
        grid-template-columns: 1fr;
    }

    .qm-advance-measurement-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 520px) {

    .qm-advance-section {
        margin-bottom: 9px;
        padding: 11px;
    }

    .qm-advance-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .qm-advance-measurement-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qm-advance-person-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .qm-advance-person-number {
        grid-column: auto;
    }

    .qm-advance-result-row {
        gap: 7px;
    }

    .qm-advance-result-total {
        gap: 7px;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 360px) {

    .qm-advance-measurement-grid {
        grid-template-columns: 1fr 1fr;
    }

    .qm-advance-calculator-header h2 {
        font-size: 19px;
    }

}
/* =========================================================
   SELLER / PURCHASER — ALL INPUTS IN ONE ROW
========================================================= */

.qm-advance-person-row {
    padding: 8px 10px;
    margin-bottom: 8px;
}


/* Entire input section in one row */
.qm-advance-person-row {
    display: grid;
    grid-template-columns:
        1.7fr
        0.9fr
        0.7fr
        0.7fr
        0.7fr
        0.7fr
        0.7fr;
    gap: 6px;
    align-items: end;
}


/* Remove Seller 1 / Seller 2 / Purchaser 1 / Purchaser 2 */
.qm-advance-person-number {
    display: none !important;
}


/* Name, status and measurement fields */
.qm-advance-person-row
.qm-advance-field {
    min-width: 0;
}


/* Field labels */
.qm-advance-person-row
.qm-advance-field label {
    display: block;
    font-size: 11px;
    line-height: 1.2;
    margin-bottom: 3px;
    white-space: nowrap;
}


/* All inputs and status select */
.qm-advance-person-row
.qm-advance-field input,
.qm-advance-person-row
.qm-advance-field select {
    width: 100%;
    height: 34px;
    min-height: 34px;
    padding: 4px 7px;
    font-size: 12px;
    box-sizing: border-box;
}


/* Remove number spinner buttons */
.qm-advance-person-rows input[type="number"]::-webkit-outer-spin-button,
.qm-advance-person-rows input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qm-advance-person-rows input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}


/* =========================================================
   REMOVE "LAND / PROPERTY SHARE"
========================================================= */

.qm-advance-person-measurement-title {
    display: none !important;
}


/* =========================================================
   MEASUREMENT FIELDS
========================================================= */

.qm-advance-person-measurement {
    display: contents;
}

.qm-advance-person-measurement
.qm-advance-measurement-grid {
    display: contents;
}


/* =========================================================
   SHARE INFORMATION — FULL WIDTH BELOW INPUT ROW
========================================================= */

.qm-advance-person-share-result {
    grid-column: 1 / -1;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 7px;
    flex-wrap: nowrap;
    white-space: nowrap;

    margin-top: 3px;
    padding: 6px 9px;

    min-height: 32px;
    box-sizing: border-box;

    overflow-x: auto;
}


.qm-advance-person-share-result > span,
.qm-advance-person-share-result > strong {
    display: inline-block;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.2;
}


.qm-advance-person-share-feet {
    margin-right: 10px;
}

.qm-advance-person-share-percent {
    margin-right: 10px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .qm-advance-person-row {
        grid-template-columns:
            1.6fr
            0.9fr
            0.65fr
            0.65fr
            0.65fr
            0.65fr
            0.65fr;

        gap: 4px;
    }

    .qm-advance-person-row
    .qm-advance-field label {
        font-size: 9px;
    }

    .qm-advance-person-row
    .qm-advance-field input,
    .qm-advance-person-row
    .qm-advance-field select {
        height: 32px;
        min-height: 32px;
        padding: 3px 5px;
        font-size: 11px;
    }

}


/* ==========================================================
   236C / 236K RATE DISPLAY
========================================================== */

.qm-advance-person-tax-rate {
    min-width: 0;
}

.qm-advance-person-tax-rate span {
    display: block;
    margin: 0 0 3px;
    color: #000e36;
    font-size: 9px;
    line-height: 1.3;
    font-weight: 600;
    white-space: nowrap;
}

.qm-advance-person-tax-rate strong {
    display: block;
    height: 33px;
    padding: 7px 6px;
    border: 1px solid #d7dce3;
    border-radius: 4px;
    background: #f8f9fb;
    color: #000e36;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
    box-sizing: border-box;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1100px) {

    .qm-advance-person-row {
        grid-template-columns:
            55px
            105px
            95px
            minmax(260px, 1fr)
            95px
            80px;
        gap: 5px;
    }

}

@media (max-width: 850px) {

    .qm-advance-person-row {
        grid-template-columns: 55px 1fr 90px;
    }

    .qm-advance-person-measurement {
        grid-column: 1 / -1;
    }

    .qm-advance-person-share-result {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        grid-column: 1 / -1;
    }

    .qm-advance-person-tax-rate {
        grid-column: auto;
    }

}

@media (max-width: 520px) {

    .qm-advance-person-row {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .qm-advance-person-number {
        grid-column: 1 / -1;
        padding-bottom: 0;
    }

    .qm-advance-person-measurement {
        grid-column: 1 / -1;
    }

    .qm-advance-person-share-result {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        grid-column: 1 / -1;
    }

    .qm-advance-person-tax-rate {
        grid-column: 1 / -1;
    }

}
