/*
 * Levi Solicitors Conveyancing Quote
 */

.levi-quote {
    font-family: Arial, Helvetica, sans-serif;
    color: #262626;
    background: #ffffff;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}


/* HERO */

.levi-quote-hero {
    background: #20252b;
    color: #ffffff;
    padding: 75px 20px 70px;
}

.levi-quote-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.levi-quote-kicker,
.levi-small-heading {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.levi-quote-kicker {
    color: #d7a0a4;
    margin-bottom: 18px;
}

.levi-quote-hero h1 {
    color: #ffffff;
    font-size: 52px;
    line-height: 1.08;
    margin: 0 0 25px;
    font-weight: 600;
}

.levi-quote-hero p {
    max-width: 650px;
    font-size: 20px;
    line-height: 1.6;
    margin: 0 0 30px;
}

.levi-quote-trust {
    display: inline-flex;
    align-items: center;
    margin-right: 30px;
    font-size: 15px;
}

.levi-quote-trust span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    border-radius: 50%;
    background: #a32735;
    color: white;
    font-weight: bold;
}


/* BODY */

.levi-quote-body {
    background: #f5f5f4;
    padding: 55px 20px 70px;
}

.levi-quote-container {
    max-width: 850px;
    margin: 0 auto;
}


/* PROGRESS */

.levi-progress {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.levi-progress-step {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #777;
    font-size: 14px;
}

.levi-progress-step span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    font-weight: bold;
}

.levi-progress-step.active {
    color: #20252b;
}

.levi-progress-step.active span {
    background: #a32735;
    color: white;
}

.levi-progress-line {
    flex: 1;
    height: 1px;
    background: #d5d5d5;
    margin: 0 15px;
}


/* CARD */

.levi-quote-card,
.levi-result-card {
    background: #ffffff;
    border-radius: 3px;
    padding: 45px;
    box-shadow: 0 8px 35px rgba(0,0,0,0.08);
}

.levi-card-heading h2,
.levi-result-header h2 {
    font-size: 32px;
    line-height: 1.2;
    margin: 8px 0 12px;
    font-weight: 600;
}

.levi-card-heading p,
.levi-result-header p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 30px;
}

.levi-small-heading {
    color: #a32735;
}


/* OPTIONS */

.levi-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.levi-option {
    cursor: pointer;
}

.levi-option input {
    position: absolute;
    opacity: 0;
}

.levi-option-content {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 78px;
    padding: 15px 18px;
    border: 2px solid #e1e1df;
    border-radius: 3px;
    transition: all .2s ease;
}

.levi-option:hover .levi-option-content {
    border-color: #a32735;
}

.levi-option input:checked + .levi-option-content {
    border-color: #a32735;
    background: #faf5f5;
}

.levi-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: #20252b;
    color: white;
    font-size: 20px;
}

.levi-option strong,
.levi-option small {
    display: block;
}

.levi-option strong {
    margin-bottom: 5px;
}

.levi-option small {
    color: #777;
}


/* FORM */

.levi-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 35px 0;
}

.levi-field {
    margin-bottom: 28px;
}

.levi-field label {
    display: block;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 7px;
}

.levi-help {
    color: #777;
    font-size: 14px;
    margin: 0 0 10px;
}

.levi-money-input {
    position: relative;
}

.levi-money-input span {
    position: absolute;
    left: 17px;
    top: 15px;
    font-size: 18px;
    font-weight: bold;
}

.levi-money-input input,
.levi-field select {
    width: 100%;
    box-sizing: border-box;
    height: 52px;
    padding: 12px 16px;
    border: 1px solid #c9c9c9;
    border-radius: 2px;
    background: white;
    font-size: 17px;
}

.levi-money-input input {
    padding-left: 38px;
}

.levi-money-input input:focus,
.levi-field select:focus {
    outline: none;
    border-color: #a32735;
    box-shadow: 0 0 0 2px rgba(163,39,53,.12);
}


/* CHECKBOX */

.levi-checkbox {
    margin: 5px 0 30px;
}

.levi-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.levi-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: #a32735;
}


/* BUTTONS */

.levi-primary-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 17px 25px;
    border: 0;
    border-radius: 2px;
    background: #a32735;
    color: white;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease;
}

.levi-primary-button:hover {
    background: #85212c;
}

.levi-primary-button span {
    font-size: 24px;
}

.levi-secure-note {
    text-align: center;
    color: #888;
    font-size: 12px;
    margin: 15px 0 0;
}


/* RESULT */

.levi-result-card {
    margin-top: 30px;
}

.levi-price-lines {
    border-top: 1px solid #ddd;
    margin-top: 25px;
}

.levi-price-lines > div {
    display: flex;
    justify-content: space-between;
    padding: 17px 0;
    border-bottom: 1px solid #eee;
}

.levi-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px -45px 0;
    padding: 25px 45px;
    background: #20252b;
    color: white;
    font-size: 20px;
}

.levi-total strong {
    font-size: 28px;
}

.levi-next-step {
    margin-top: 30px;
    padding: 30px;
    background: #f7eeee;
    border-left: 4px solid #a32735;
}

.levi-next-step h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.levi-next-step p {
    line-height: 1.6;
}

.levi-secondary-button {
    display: inline-block;
    margin-top: 8px;
    padding: 13px 22px;
    background: #20252b;
    color: white !important;
    text-decoration: none;
    border-radius: 2px;
    font-weight: 700;
}

.levi-disclaimer {
    color: #777;
    font-size: 12px;
    line-height: 1.6;
    margin-top: 25px;
}


/* WHY LEVI */

.levi-why {
    background: #020030; /* Levi navy (site header) - was #20252b, changed on staging 2026-09-14 at Martin's request */
    color: white;
    padding: 60px 20px;
}

.levi-why-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.levi-why .levi-small-heading {
    color: #d7a0a4;
}

.levi-why h2 {
    color: white;
    font-size: 32px;
    margin: 10px 0 30px;
}

.levi-why-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.levi-why-points strong,
.levi-why-points span {
    display: block;
}

.levi-why-points strong {
    margin-bottom: 8px;
    font-size: 17px;
}

.levi-why-points span {
    color: #ccc;
    line-height: 1.5;
}


/* MOBILE */

@media (max-width: 700px) {

    .levi-quote-hero {
        padding: 50px 20px;
    }

    .levi-quote-hero h1 {
        font-size: 38px;
    }

    .levi-quote-hero p {
        font-size: 17px;
    }

    .levi-quote-trust {
        display: flex;
        margin: 12px 0;
    }

    .levi-progress-step strong,
    .levi-progress-line {
        display: none;
    }

    .levi-progress {
        justify-content: space-between;
    }

    .levi-quote-card,
    .levi-result-card {
        padding: 25px;
    }

    .levi-options {
        grid-template-columns: 1fr;
    }

    .levi-card-heading h2,
    .levi-result-header h2 {
        font-size: 27px;
    }

    .levi-total {
        margin-left: -25px;
        margin-right: -25px;
        padding-left: 25px;
        padding-right: 25px;
    }

    .levi-why-points {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}
.levi-navigation-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 35px;
}

.levi-navigation-buttons .levi-primary-button {
    flex: 1;
}

.levi-back-button {
    border: 0;
    background: transparent;
    color: #20252b;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    padding: 15px 5px;
}

.levi-back-button:hover {
    color: #a32735;
}

.levi-contact-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.levi-contact-fields input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 15px;
}

.levi-contact-fields input:focus {
    outline: none;
    border-color: #a32735;
}

.levi-secondary-button {
    display: inline-block;
    margin-top: 15px;
}

@media (max-width: 700px) {

    .levi-navigation-buttons {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .levi-contact-fields {
        grid-template-columns: 1fr;
    }

}/* =========================================================
   PAGE BACKGROUND
   ========================================================= */
/* =========================================
   LEVI-STYLE QUOTING PAGE BACKGROUND
   ========================================= */

body {
    background:
        radial-gradient(circle at 15% 20%, rgba(40, 110, 180, 0.35), transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(0, 70, 130, 0.35), transparent 40%),
        linear-gradient(135deg, #071d35 0%, #0b3158 50%, #0d4775 100%) !important;

    min-height: 100vh;
}

/* Remove the large white WordPress content background */
.site,
.site-content,
.content-area,
.entry-content,
.page-content,
main {
    background: transparent !important;
}

/* Main quoting tool */
.conveyancing-quote,
.conveyancing-quote-container,
.quote-container {
    background: rgba(255, 255, 255, 0.97) !important;
    border-radius: 18px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.20);
}

/* If the plugin uses a generic wrapper */
.conveyancing-quote-wrapper {
    background: transparent !important;
}

/* Headings */
.conveyancing-quote h1,
.conveyancing-quote h2,
.conveyancing-quote h3 {
    color: #ffffff;;
}

/* Buttons */
.conveyancing-quote button,
.conveyancing-quote input[type="submit"] {
    background: #0875b9;
    border: none;
    color: #fff;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.conveyancing-quote button:hover,
.conveyancing-quote input[type="submit"]:hover {
    background: #075d94;
    transform: translateY(-1px);
}
.conveyancing-quote h1,
.conveyancing-quote h2 {
    color: #ffffff !important;
}

/* White hero title */
.levi-quote-hero h1 {
    color: #ffffff !important;
}

/* WordPress site title */
.wp-block-site-title,
.wp-block-site-title a {
    color: #ffffff !important;
}
/* WordPress page title */
.wp-block-post-title {
    color: #ffffff !important;
}
/* WordPress navigation title */
.wp-block-pages-list__item__link {
    color: #ffffff !important;
}




/* =========================================================
   WIDER CALCULATOR LAYOUT
   ========================================================= */

.levi-quote {
    width: 100%;
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
}

.levi-quote-hero-inner,
.levi-quote-container,
.levi-why-inner {
    width: 100%;
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.levi-quote-card,
.levi-result-card {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}



/* =========================================================
   STEP 2 TWO COLUMN LAYOUT
   ========================================================= */

.levi-step2-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 28px;
    align-items: start;
}

.levi-step2-grid .levi-field,
.levi-step2-grid .levi-checkbox {
    margin: 0;
}

/* Make purchase address span full width */
.levi-step2-grid .levi-field:nth-child(3) {
    grid-column: 1 / -1;
}

/* Make new-build checkbox span full width */
.levi-step2-grid .levi-checkbox {
    grid-column: 1 / -1;
}

/* Inputs/selects fill each column */
.levi-step2-grid input,
.levi-step2-grid select {
    width: 100%;
    box-sizing: border-box;
}

/* Mobile/tablet */
@media (max-width: 760px) {

    .levi-step2-grid {
        grid-template-columns: 1fr;
    }

    .levi-step2-grid .levi-field,
    .levi-step2-grid .levi-checkbox {
        grid-column: 1;
    }
}

/* =========================================================
   POSTCODE LOOKUP - STEP 2
   ========================================================= */

.levi-step2-grid .levi-address-lookup {
    display: flex !important;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
}

.levi-step2-grid .levi-address-lookup input {
    flex: 1 1 auto;
    width: auto !important;
    height: 44px;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #c9c9c9;
    box-sizing: border-box;
}

.levi-step2-grid .levi-address-lookup .levi-secondary-button {
    flex: 0 0 auto;
    width: auto;
    min-width: 110px;
    height: 44px;
    margin: 0 !important;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Manual address link */

#cc-manual-address {
    margin-top: 12px !important;
}


/* Mobile */

@media (max-width: 760px) {

    .levi-step2-grid .levi-address-lookup {
        flex-direction: column;
    }

    .levi-step2-grid .levi-address-lookup input,
    .levi-step2-grid .levi-address-lookup .levi-secondary-button {
        width: 100% !important;
    }
}
/* =========================================================
   MANUAL / RETURNED ADDRESS FIELDS
   ========================================================= */

#cc-manual-address-fields {
    width: 100%;
    margin-top: 18px !important;
}

#cc-manual-address-fields input {
    display: block;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 9px 12px !important;
    margin-top: 10px !important;

    font-size: 14px !important;
    line-height: 22px;

    border: 1px solid #c9c9c9;
    background: #ffffff;

    box-sizing: border-box;
}

/* Don't add unnecessary space above first address line */

#cc-manual-address-fields input:first-child {
    margin-top: 0 !important;
}
/* =========================================================
   NEW BUILD CHECKBOX
   ========================================================= */

.levi-step2-grid .levi-checkbox {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 6px !important;
}

.levi-step2-grid .levi-checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
}

.levi-step2-grid .levi-checkbox input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 18px;
}

.levi-step2-grid .levi-checkbox span {
    display: inline-block;
    margin: 0;
    line-height: 1.3;
    font-size: 19px;
}
/* =========================================================
   DISCOUNT CODE
   ========================================================= */

.levi-discount-box {
    margin: 25px 0 18px;
    padding: 18px;
    background: #f7f9fb;
    border: 1px solid #d8e0e6;
}

.levi-discount-box label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 10px;
}

.levi-discount-entry {
    display: flex;
    gap: 10px;
}

.levi-discount-entry input {
    flex: 1;
    height: 44px;
    padding: 10px 12px;
    box-sizing: border-box;
    text-transform: uppercase;
}

.levi-discount-entry button {
    min-width: 110px;
}

.levi-discount-message {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
}

.levi-discount-message.success {
    color: #25733b;
}

.levi-discount-message.error {
    color: #b5232e;
}

.levi-discount-line {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-weight: 600;
    color: #25733b;
}
/* =========================================================
   DISCOUNT INPUT / BUTTON ALIGNMENT
   ========================================================= */

.levi-discount-entry {
    display: flex !important;
    align-items: stretch !important;
    gap: 10px;
}

.levi-discount-entry input {
    flex: 1 1 auto;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    box-sizing: border-box;
}

.levi-discount-entry .levi-secondary-button {
    flex: 0 0 auto;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
}


/* =========================================================
   ALIGN TENURE WITH PROPERTY VALUE
   ========================================================= */

#cc-tenure {
    margin-top: 28px !important;
}




/* =========================================================
   RETRIEVE EXISTING QUOTE
   ========================================================= */

.levi-retrieve-quote {
    margin-top: 30px;
    text-align: center;
}

.levi-retrieve-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
}

.levi-retrieve-divider::before,
.levi-retrieve-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d8e0e6;
}

.levi-retrieve-button {
    min-width: 260px;
}

.levi-retrieve-box {
    max-width: 520px;
    margin: 20px auto 0;
    padding: 22px;
    background: #f7f9fb;
    border: 1px solid #d8e0e6;
    text-align: left;
    box-sizing: border-box;
}

.levi-retrieve-box label {
    display: block;
    margin: 14px 0 7px;
    font-size: 14px;
    font-weight: 600;
}

.levi-retrieve-box label:first-child {
    margin-top: 0;
}

.levi-retrieve-box input {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    box-sizing: border-box;
}

.levi-retrieve-box button {
    width: 100%;
    margin-top: 18px;
}

.levi-retrieve-message {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
}

.levi-retrieve-message.success {
    color: #25733b;
}

.levi-retrieve-message.error {
    color: #b5232e;
}

/* =========================================================
   RETRIEVE QUOTE - STEP 1 LAYOUT FIX
   ========================================================= */

#cc-step-1 .levi-retrieve-quote {
    display: block !important;
    width: 100%;
    margin: 30px 0 0 !important;
    padding: 25px 0 0 !important;
    border-top: 1px solid #d8e0e6;
    text-align: center;
    clear: both;
    box-sizing: border-box;
}


/* Remove the divider lines */

#cc-step-1 .levi-retrieve-divider {
    display: block !important;
    margin: 0 0 15px !important;
    padding: 0 !important;
    text-align: center;
    color: #333333 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

#cc-step-1 .levi-retrieve-divider::before,
#cc-step-1 .levi-retrieve-divider::after {
    display: none !important;
}


/* Retrieve button */

#cc-step-1 .levi-retrieve-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: auto !important;
    min-width: 280px;

    height: 46px;

    margin: 0 auto !important;
    padding: 0 24px !important;

    background: #1f252b;
    color: #ffffff;

    border: none;
    border-radius: 2px;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}


/* Retrieval form */

#cc-step-1 .levi-retrieve-box {
    display: none;
    width: 100%;
    max-width: 520px;

    margin: 20px auto 0 !important;
    padding: 22px;

    background: #f7f9fb;
    border: 1px solid #d8e0e6;

    text-align: left;
    box-sizing: border-box;
}


/* Mobile */

@media (max-width: 760px) {

    #cc-step-1 .levi-retrieve-button {
        width: 100% !important;
        min-width: 0;
    }

}
/* =========================================================
   INSTRUCT LEVI SOLICITORS
   ========================================================= */

.levi-instruct-button {
    width: 100%;
    min-height: 50px;
    margin-top: 14px;
    padding: 12px 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    background: #b22632;
    color: #ffffff;

    border: 0;
    border-radius: 2px;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}

.levi-instruct-button:hover {
    opacity: 0.92;
}

.levi-instruct-button:disabled {
    cursor: default;
    opacity: 0.75;
}

.levi-instruct-message {
    margin-top: 12px;
    padding: 12px 14px;

    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.levi-instruct-message.success {
    background: #eef8f0;
    color: #25733b;
    border: 1px solid #b9dbc1;
}

.levi-instruct-message.error {
    background: #fff1f1;
    color: #b5232e;
    border: 1px solid #e3b8bc;
}
/* =====================================================
   CALCULATOR PAGE - REMOVE WORDPRESS THEME HEADER/TITLE
   ===================================================== */

/* WordPress site header/navigation */
body:has(.levi-quote) header.wp-block-template-part {
    display: none !important;
}

/* WordPress page title */
body:has(.levi-quote) main > h1,
body:has(.levi-quote) .wp-block-post-title {
    display: none !important;
}

/* Remove the theme's large top spacing */
body:has(.levi-quote) main,
body:has(.levi-quote) .wp-site-blocks,
body:has(.levi-quote) .wp-block-post-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Bring calculator towards top of page */
body:has(.levi-quote) .levi-quote {
    margin-top: 0 !important;
}
/* =====================================================
   STEP 2 - ALIGN TWO COLUMN FIELDS
   ===================================================== */

/*
 * Property value has helper text underneath its label.
 * Add equivalent spacing above Number of buyers so
 * both controls start on the same horizontal line.
 */
#cc-number-buyers {
    margin-top: 22px !important;
}


/*
 * Purchase address has helper text underneath its label.
 * Add equivalent spacing above the Wales dropdown so
 * both controls start on the same horizontal line.
 */
#cc-wales {
    margin-top: 22px !important;
}

/* =====================================================
   STEP 2 - PURCHASE LAYOUT ALIGNMENT
   ===================================================== */

/*
 * Remove previous individual spacing fixes
 */
#cc-number-buyers,
#cc-wales,
#cc-tenure {
    margin-top: 0 !important;
}


/* -----------------------------------------------------
   PROPERTY VALUE + NUMBER OF BUYERS
   ----------------------------------------------------- */

/*
 * These naturally occupy columns 1 and 2.
 */
.levi-step2-grid > .levi-field {
    align-self: start;
}


/* -----------------------------------------------------
   TENURE + WALES
   ----------------------------------------------------- */

/*
 * Stop Tenure being forced across both columns.
 */
.levi-step2-grid > .levi-field:nth-of-type(3) {
    grid-column: 1 !important;
}


/* -----------------------------------------------------
   PURCHASE ADDRESS
   ----------------------------------------------------- */

/*
 * Purchase address occupies a complete row.
 */
.levi-step2-grid .levi-address-field {
    grid-column: 1 / -1 !important;
    width: 100%;
}


/*
 * Postcode lookup sits on its own line within
 * the full-width Purchase Address section.
 */
.levi-step2-grid .levi-address-lookup {
    display: flex !important;
    width: 100%;
    max-width: 100%;
    gap: 12px;
}


/*
 * Postcode box takes the available space.
 */
.levi-step2-grid .levi-address-lookup input {
    flex: 1 1 auto;
}


/*
 * Lookup button stays a sensible fixed width.
 */
.levi-step2-grid .levi-address-lookup .levi-secondary-button {
    flex: 0 0 auto;
    min-width: 120px;
}


/* -----------------------------------------------------
   ALIGN QUESTION PAIRS
   ----------------------------------------------------- */

/*
 * Outside UK            | Company / Trust
 * Previously owned      | Two or more properties
 *
 * Give labels the same minimum height so the
 * dropdowns underneath line up horizontally.
 */
.levi-step2-grid > .levi-field > label {
    min-height: 44px;
    display: flex;
    align-items: flex-end;
}


/*
 * Don't add artificial label height to the
 * Purchase Address section.
 */
.levi-step2-grid .levi-address-field > label {
    min-height: 0;
}


/* -----------------------------------------------------
   MOBILE
   ----------------------------------------------------- */

@media (max-width: 760px) {

    .levi-step2-grid > .levi-field,
    .levi-step2-grid > .levi-field:nth-of-type(3),
    .levi-step2-grid .levi-address-field {
        grid-column: 1 !important;
    }

    .levi-step2-grid > .levi-field > label {
        min-height: 0;
    }

    .levi-step2-grid .levi-address-lookup {
        flex-direction: column;
    }

    .levi-step2-grid .levi-address-lookup input,
    .levi-step2-grid .levi-address-lookup .levi-secondary-button {
        width: 100% !important;
    }
}
/* =====================================================
   STEP 2 - FINAL ROW POSITIONING
   ===================================================== */


/* -----------------------------------------------------
   PROPERTY VALUE - FULL WIDTH ROW
   ----------------------------------------------------- */

.levi-step2-grid > .levi-field:has(#cc-property-value) {
    grid-column: 1 / -1 !important;
}


/* -----------------------------------------------------
   NUMBER OF BUYERS + TENURE ON SAME ROW
   ----------------------------------------------------- */

.levi-step2-grid > .levi-field:has(#cc-number-buyers) {
    grid-column: 1 !important;
}

.levi-step2-grid > .levi-field:has(#cc-tenure) {
    grid-column: 2 !important;
}


/* Remove old Tenure positioning */
.levi-step2-grid > .levi-field:nth-of-type(3) {
    grid-column: auto !important;
}


/* -----------------------------------------------------
   PURCHASE ADDRESS - FULL WIDTH ROW
   ----------------------------------------------------- */

.levi-step2-grid .levi-address-field {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}


/* Postcode and lookup button use full available row */
.levi-step2-grid .levi-address-lookup {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 12px;
}

.levi-step2-grid .levi-address-lookup input {
    flex: 1 1 auto !important;
    width: auto !important;
}

.levi-step2-grid .levi-address-lookup .levi-secondary-button {
    flex: 0 0 120px !important;
    width: 120px !important;
}


/* -----------------------------------------------------
   MOBILE
   ----------------------------------------------------- */

@media (max-width: 760px) {

    .levi-step2-grid > .levi-field:has(#cc-property-value),
    .levi-step2-grid > .levi-field:has(#cc-number-buyers),
    .levi-step2-grid > .levi-field:has(#cc-tenure),
    .levi-step2-grid .levi-address-field {
        grid-column: 1 !important;
    }
}

/* =====================================================
   STEP 2 - FINAL ROW POSITIONING
   ===================================================== */


/* -----------------------------------------------------
   PROPERTY VALUE - FULL WIDTH ROW
   ----------------------------------------------------- */

.levi-step2-grid > .levi-field:has(#cc-property-value) {
    grid-column: 1 / -1 !important;
}


/* -----------------------------------------------------
   NUMBER OF BUYERS + TENURE ON SAME ROW
   ----------------------------------------------------- */

.levi-step2-grid > .levi-field:has(#cc-number-buyers) {
    grid-column: 1 !important;
}

.levi-step2-grid > .levi-field:has(#cc-tenure) {
    grid-column: 2 !important;
}


/* Remove old Tenure positioning */
.levi-step2-grid > .levi-field:nth-of-type(3) {
    grid-column: auto !important;
}


/* -----------------------------------------------------
   PURCHASE ADDRESS - FULL WIDTH ROW
   ----------------------------------------------------- */

.levi-step2-grid .levi-address-field {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}


/* Postcode and lookup button use full available row */
.levi-step2-grid .levi-address-lookup {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 12px;
}

.levi-step2-grid .levi-address-lookup input {
    flex: 1 1 auto !important;
    width: auto !important;
}

.levi-step2-grid .levi-address-lookup .levi-secondary-button {
    flex: 0 0 120px !important;
    width: 120px !important;
}


/* -----------------------------------------------------
   MOBILE
   ----------------------------------------------------- */

@media (max-width: 760px) {

    .levi-step2-grid > .levi-field:has(#cc-property-value),
    .levi-step2-grid > .levi-field:has(#cc-number-buyers),
    .levi-step2-grid > .levi-field:has(#cc-tenure),
    .levi-step2-grid .levi-address-field {
        grid-column: 1 !important;
    }
}


/* =====================================================
   WIDER DESKTOP CALCULATOR
   ===================================================== */

@media (min-width: 1000px) {

    /* Main calculator / page wrapper */
    .levi-calculator {
        width: 100% !important;
        max-width: 1000px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* If the WordPress content container is restricting us */
    .entry-content,
    .site-main,
    .wp-block-post-content {
        max-width: 1100px !important;
        width: 100% !important;
    }
}


/* =====================================================
   WIDER DESKTOP CALCULATOR + SHORTER STEP 1
   ===================================================== */

@media (min-width: 900px) {

    /*
     * Overall calculator width
     */
    .levi-quote {
        width: 100% !important;
        max-width: 1100px !important;
        margin: 30px auto !important;
    }


    /*
     * Make all major sections use the same width
     */
    .levi-quote-hero,
    .levi-quote-body,
    .levi-why {
        width: 100% !important;
        max-width: none !important;
    }


    /*
     * Internal content width
     */
    .levi-quote-hero-inner,
    .levi-quote-container,
    .levi-why-inner {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box;
    }


    /*
     * Reduce hero height
     */
    .levi-quote-hero-inner {
        padding: 40px 55px !important;
    }


    /*
     * Reduce whitespace around progress bar
     */
    .levi-quote-container {
        padding: 24px 30px 30px !important;
    }


    .levi-progress {
        margin-bottom: 22px !important;
    }


    /*
     * Reduce Step 1 card padding
     */
    #cc-step-1 {
        padding: 30px 40px !important;
    }


    /*
     * Keep the four transaction choices
     * in a compact 2 x 2 layout.
     */
    #cc-step-1 .levi-options {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 14px !important;
        margin-top: 22px !important;
    }


    /*
     * Slightly shorter option boxes
     */
    #cc-step-1 .levi-option-content {
        min-height: 72px !important;
        padding: 14px 18px !important;
        box-sizing: border-box;
    }


    /*
     * Continue button closer to options
     */
    #cc-step-1 .levi-navigation-buttons {
        margin-top: 18px !important;
    }


    /*
     * Reduce space before Retrieve Quote
     */
    #cc-step-1 .levi-retrieve-quote {
        margin-top: 18px !important;
        padding-top: 16px !important;
    }


    #cc-step-1 .levi-retrieve-divider {
        margin: 0 0 12px !important;
    }


    /*
     * Shorter footer
     */
    .levi-why-inner {
        padding: 28px 45px !important;
    }


    .levi-why {
        margin-top: 0 !important;
    }
}




/* =====================================================
   DESKTOP WIDTH FIX
   ===================================================== */

@media (min-width: 1000px) {

    .levi-quote {
        width: 90vw !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
    }

    .levi-quote-hero,
    .levi-quote-body,
    .levi-why {
        width: 100% !important;
        max-width: none !important;
    }

    .levi-quote-container,
    .levi-quote-hero-inner,
    .levi-why-inner {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box;
    }
}

/* =====================================================
   FINAL FULL-WIDTH PAGE + CENTRED CALCULATOR
   ===================================================== */

@media (min-width: 1000px) {

    /* -------------------------------------------------
       REMOVE WORDPRESS PAGE WIDTH RESTRICTIONS
       ------------------------------------------------- */

    body .site,
    body .site-content,
    body .content-area,
    body .site-main,
    body .entry-content,
    body .wp-block-post-content {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }


    /* -------------------------------------------------
       CENTRE THE CALCULATOR
       ------------------------------------------------- */

    .levi-quote {
        width: 1100px !important;
        max-width: calc(100vw - 60px) !important;

        margin-left: auto !important;
        margin-right: auto !important;

        display: block !important;
    }


    .levi-quote-hero,
    .levi-quote-body,
    .levi-why {
        width: 100% !important;
        max-width: none !important;
    }


    .levi-quote-hero-inner,
    .levi-quote-container,
    .levi-why-inner {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }


    /* -------------------------------------------------
       MAKE HERO MUCH SHORTER
       ------------------------------------------------- */

    .levi-quote-hero-inner {
        padding:
            24px
            44px
            20px !important;
    }


    .levi-quote-kicker {
        margin-bottom: 8px !important;
    }


    .levi-quote-hero h1 {
        margin:
            0
            0
            10px !important;

        line-height: 1.05 !important;
    }


    .levi-quote-hero p {
        margin:
            0
            0
            12px !important;
    }


    .levi-quote-trust {
        margin-top: 0 !important;
    }


    /* -------------------------------------------------
       REDUCE BODY HEIGHT
       ------------------------------------------------- */

    .levi-quote-container {
        padding:
            16px
            28px
            18px !important;
    }


    .levi-progress {
        margin-bottom:
            12px !important;
    }


    /* -------------------------------------------------
       STEP 1
       ------------------------------------------------- */

    #cc-step-1 {
        padding:
            18px
            28px !important;
    }


    #cc-step-1 .levi-card-heading {
        margin-bottom:
            10px !important;
    }


    #cc-step-1 .levi-card-heading h2 {
        margin:
            0
            0
            4px !important;
    }


    #cc-step-1 .levi-card-heading p {
        margin:
            0 !important;
    }


    /* -------------------------------------------------
       TRANSACTION BUTTONS
       ------------------------------------------------- */

    #cc-step-1 .levi-options {
        display:
            grid !important;

        grid-template-columns:
            1fr 1fr !important;

        gap:
            8px
            10px !important;

        margin-top:
            12px !important;
    }


    #cc-step-1 .levi-option-content {
        min-height:
            54px !important;

        padding:
            8px
            12px !important;

        box-sizing:
            border-box !important;
    }


    /* -------------------------------------------------
       CONTINUE
       ------------------------------------------------- */

    #cc-step-1 .levi-navigation-buttons {
        margin-top:
            10px !important;
    }


    /* -------------------------------------------------
       RETRIEVE EXISTING QUOTE
       ------------------------------------------------- */

    #cc-step-1 .levi-retrieve-quote {
        margin-top:
            8px !important;

        padding-top:
            8px !important;
    }


    #cc-step-1 .levi-retrieve-divider {
        margin:
            0
            0
            6px !important;
    }


    #cc-step-1 .levi-retrieve-button {
        margin-top:
            0 !important;
    }


    /* -------------------------------------------------
       FOOTER
       ------------------------------------------------- */

    .levi-why-inner {
        padding:
            18px
            30px !important;
    }
}
/* =====================================================
   COMPACT DESKTOP HEADER
   ===================================================== */

@media (min-width: 1000px) {

    /* Reduce overall header height */
    .levi-quote-hero-inner {
        padding: 18px 44px 16px !important;
    }

    /* Smaller kicker */
    .levi-quote-kicker {
        margin: 0 0 5px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    /* Smaller main heading */
    .levi-quote-hero h1 {
        font-size: 38px !important;
        line-height: 1.02 !important;
        margin: 0 0 8px !important;
    }

    /* Compact description */
    .levi-quote-hero p {
        font-size: 15px !important;
        line-height: 1.35 !important;
        margin: 0 0 10px !important;
    }

    /* Pull trust points upwards */
    .levi-quote-trust {
        margin: 0 !important;
        padding: 0 !important;
        gap: 26px !important;
    }

    .levi-quote-trust-item {
        font-size: 13px !important;
    }

    /* Remove any minimum height on the hero */
    .levi-quote-hero,
    .levi-quote-hero-inner {
        min-height: 0 !important;
        height: auto !important;
    }
}
/* =====================================================
   REMOVE TOP GAP
   ===================================================== */

@media (min-width: 1000px) {

    .levi-quote {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    body,
    .site,
    .site-content,
    .content-area,
    .site-main,
    .entry-content,
    .wp-block-post-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}
/* =====================================================
   FINAL DESKTOP STEP 1 LAYOUT
   ===================================================== */

@media (min-width: 1000px) {

    /* ---------------------------------------------
       PAGE / WORDPRESS WRAPPER
       --------------------------------------------- */

    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
    }

    body .site,
    body .site-content,
    body .content-area,
    body .site-main,
    body .entry-content,
    body .wp-block-post-content,
    body main {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }


    /* ---------------------------------------------
       WHOLE CALCULATOR
       --------------------------------------------- */

    .levi-quote {
        width: 1120px !important;
        max-width: calc(100vw - 40px) !important;

        margin: 0 auto !important;

        position: relative !important;
        left: auto !important;
        transform: none !important;
    }


    .levi-quote-hero,
    .levi-quote-body,
    .levi-why {
        width: 100% !important;
        max-width: none !important;
    }


    .levi-quote-hero-inner,
    .levi-quote-container,
    .levi-why-inner {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }


    /* ---------------------------------------------
       COMPACT HERO
       --------------------------------------------- */

    .levi-quote-hero,
    .levi-quote-hero-inner {
        min-height: 0 !important;
        height: auto !important;
    }


    .levi-quote-hero-inner {
        padding: 26px 48px 22px !important;
    }


    .levi-quote-kicker {
        margin: 0 0 6px !important;

        font-size: 11px !important;
        line-height: 1.2 !important;
    }


    .levi-quote-hero h1 {
        margin: 0 0 8px !important;

        font-size: 36px !important;
        line-height: 1.05 !important;
    }


    .levi-quote-hero p {
        margin: 0 0 10px !important;

        font-size: 15px !important;
        line-height: 1.35 !important;
    }


    /*
     * Trust items stay on one row
     */

    .levi-quote-trust {
        display: inline-flex !important;
        align-items: center !important;

        margin: 0 28px 0 0 !important;

        font-size: 13px !important;
    }


    /* ---------------------------------------------
       WHITE BODY
       --------------------------------------------- */

    .levi-quote-container {
        padding: 18px 48px 16px !important;
    }


    /* ---------------------------------------------
       PROGRESS BAR
       --------------------------------------------- */

    .levi-progress {
        margin: 0 0 14px !important;
    }


    /* ---------------------------------------------
       STEP 1 CARD
       --------------------------------------------- */

    #cc-step-1 {
        padding: 20px 28px 16px !important;
    }


    #cc-step-1 .levi-card-heading {
        margin: 0 0 12px !important;
    }


    #cc-step-1 .levi-small-heading {
        margin-bottom: 5px !important;
    }


    #cc-step-1 .levi-card-heading h2 {
        margin: 0 0 5px !important;

        font-size: 28px !important;
        line-height: 1.1 !important;
    }


    #cc-step-1 .levi-card-heading p {
        margin: 0 !important;
    }


    /* ---------------------------------------------
       FOUR TRANSACTION OPTIONS
       --------------------------------------------- */

    #cc-step-1 .levi-options {
        display: grid !important;

        grid-template-columns:
            1fr 1fr !important;

        gap: 8px 10px !important;

        margin: 14px 0 0 !important;
    }


    #cc-step-1 .levi-option {
        margin: 0 !important;
    }


    #cc-step-1 .levi-option-content {
        min-height: 60px !important;

        padding: 9px 14px !important;

        box-sizing: border-box !important;
    }


    #cc-step-1 .levi-option-content strong {
        font-size: 16px !important;
    }


    #cc-step-1 .levi-option-content small {
        font-size: 13px !important;
    }


    /* ---------------------------------------------
       CONTINUE BUTTON
       --------------------------------------------- */

    #cc-step-1 .levi-navigation-buttons {
        margin: 10px 0 0 !important;
    }


    #cc-step-1 .levi-primary-button {
        min-height: 50px !important;
    }


    /* ---------------------------------------------
       RETRIEVE QUOTE
       --------------------------------------------- */

    #cc-step-1 .levi-retrieve-quote {
        margin: 8px 0 0 !important;
        padding: 8px 0 0 !important;
    }


    #cc-step-1 .levi-retrieve-divider {
        margin: 0 0 6px !important;
    }


    #cc-step-1 .levi-retrieve-button {
        margin: 0 auto !important;
    }


    /* ---------------------------------------------
       DON'T LET FOOTER CREATE EXTRA GAP
       --------------------------------------------- */

    .levi-why {
        margin-top: 0 !important;
    }


    .levi-why-inner {
        padding: 18px 30px !important;
    }
}


/* =====================================================
   REMOVE BLUE STRIP ABOVE CALCULATOR
   ===================================================== */

@media (min-width: 1000px) {

    .levi-quote {
        margin-top: -100px !important;
    }

}


/* =====================================================
   REDUCE DARK HEADER HEIGHT
   ===================================================== */

@media (min-width: 1000px) {

    /* Remove any fixed/minimum height */
    .levi-quote-hero,
    .levi-quote-hero-inner {
        min-height: 0 !important;
        height: auto !important;
    }

    /* Reduce space above and below the header content */
    .levi-quote-hero-inner {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    /* Tighten spacing between header elements */
    .levi-quote-kicker {
        margin-top: 0 !important;
        margin-bottom: 4px !important;
    }

    .levi-quote-hero h1 {
        margin-top: 0 !important;
        margin-bottom: 6px !important;
    }

    .levi-quote-hero p {
        margin-top: 0 !important;
        margin-bottom: 8px !important;
    }

    .levi-quote-trust {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}


