﻿.postcode-search-wrapper-home {
    position: relative;
}

.postcode-suggestions-home {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    z-index: 1000;
    max-height: 280px;
    overflow-y: auto;
}

.postcode-suggestion-item-home {
    width: 100%;
    border: 0;
    background: #fff;
    padding: 12px 16px;
    text-align: left;
    display: flex;
    align-items: center;
    color: #0b2948;
    cursor: pointer;
    transition: background 0.15s ease;
}

    .postcode-suggestion-item-home:hover {
        background: #f5f8fc;
    }

    .postcode-suggestion-item-home strong {
        display: block;
        font-size: 15px;
    }

    .postcode-suggestion-item-home span {
        display: block;
        font-size: 13px;
        color: #718096;
        margin-top: 2px;
    }
/* ==============================
   SELECTED POSTCODE AREA
============================== */

.selected-area-box-home {
    margin-top: 14px;
    min-height: 45px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #eef0ff;
    border-radius: 14px;
    font-size: 15px;
}


.selected-area-text-home {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    color: #0b2948;
}


.area-label-home {
    color: #4169e1;
    font-weight: 600;
}


.selected-area-postcode-home {
    color: #67738a;
}


.change-postcode-btn-home {
    border: none;
    background: transparent;
    color: #52627a;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 6px;
    cursor: pointer;
}


    .change-postcode-btn-home:hover {
        color: #4169e1;
    }


/* =========================================
   SERVICE QUESTIONS
========================================= */

.service-question-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 30, 52, 0.55);
    backdrop-filter: blur(5px);
    z-index: 99999;
}


    .service-question-overlay.active {
        display: flex;
    }


.service-question-modal {
    position: relative;
    width: 100%;
    max-width: 840px;
    max-height: calc(100vh - 40px);
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.25);
}


/* Progress */

.question-progress-wrapper {
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    height: 5px;
    border-radius: 20px;
    background: #edf0f5;
    overflow: hidden;
}


.question-progress {
    width: 0%;
    height: 100%;
    border-radius: 20px;
    background: #4962f4;
    transition: width .25s ease;
}


/* Close */

.question-close-btn {
    position: absolute;
    top: 14px;
    right: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #dbe1e8;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #082b4c;
    font-size: 20px;
    cursor: pointer;
}


/* Summary */

.question-search-summary {
    margin: 70px 25px 0;
    padding: 16px 20px;
    background: #f3f5ff;
    border-radius: 15px;
    font-size: 16px;
    color: #062848;
}


    .question-search-summary div + div {
        margin-top: 8px;
    }


    .question-search-summary span {
        color: #3f5cff;
        margin-right: 6px;
    }


    .question-search-summary strong {
        font-weight: 500;
    }


/* Content */

.question-content {
    padding: 22px 25px 20px;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
}


    .question-content h2 {
        text-align: center;
        color: #062848;
        font-size: 29px;
        font-weight: 700;
        margin: 0;
    }


    .question-content > p {
        text-align: center;
        color: #52677c;
        font-size: 17px;
        margin: 10px 0 25px;
    }


/* Options */

.question-options {
    border: 1px solid #dce3eb;
    border-radius: 16px;
    overflow: hidden;
}


.question-option {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #dce3eb;
    cursor: pointer;
    color: #082b4c;
    font-size: 17px;
    transition: background .15s ease;
}


    .question-option:last-child {
        border-bottom: 0;
    }


    .question-option:hover {
        background: #f8faff;
    }


    .question-option.selected {
        background: #f3f5ff;
    }


    .question-option input {
        display: none;
    }


.question-radio {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid #c1cad5;
    flex-shrink: 0;
    position: relative;
}


.question-option.selected .question-radio {
    border-color: #4962f4;
}


    .question-option.selected .question-radio::after {
        content: "";
        position: absolute;
        width: 13px;
        height: 13px;
        border-radius: 50%;
        background: #4962f4;
        top: 4px;
        left: 4px;
    }


/* Multi choice */

.question-checkbox {
    width: 25px;
    height: 25px;
    border-radius: 6px;
    border: 2px solid #c1cad5;
    flex-shrink: 0;
}


.question-option.selected .question-checkbox {
    border-color: #4962f4;
    background: #4962f4;
    position: relative;
}


    .question-option.selected .question-checkbox::after {
        content: "✓";
        display: block;
        color: #fff;
        text-align: center;
        font-size: 16px;
        line-height: 21px;
    }


/* Footer */

.question-footer {
    min-height: 86px;
    padding: 15px 25px;
    border-top: 1px solid #e0e5eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.question-back-btn {
    border: none;
    background: transparent;
    color: #597087;
    font-size: 16px;
    cursor: pointer;
}


    .question-back-btn:disabled {
        opacity: .35;
        cursor: default;
    }


.question-continue-btn {
    min-width: 155px;
    border: none;
    border-radius: 17px;
    padding: 15px 28px;
    background: #4962f4;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}


    .question-continue-btn:disabled {
        background: #9eaff7;
        cursor: not-allowed;
    }


body.question-modal-open {
    overflow: hidden;
}


@media (max-width: 767px) {

    .service-question-overlay {
        padding: 10px;
    }

    .service-question-modal {
        max-height: calc(100vh - 20px);
        border-radius: 18px;
    }

    .question-content h2 {
        font-size: 24px;
    }

    .question-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .question-search-summary {
        margin-left: 15px;
        margin-right: 15px;
    }

    .question-footer {
        padding-left: 15px;
        padding-right: 15px;
    }
}