/* ===========================
   RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family: 'Poppins', sans-serif;
    background:#E8F0F7;
    color:#1b1b1b;
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
    padding:40px;
}

a{
    color:#1864AB;
}

/* ===========================
   CONTAINER
=========================== */

.container{
    width:100%;
    max-width:760px;
}

.wizard{
    background:white;
    border-radius:30px;
    overflow:hidden;
    box-shadow:0 15px 45px rgba(0,0,0,.08);
}

.back-to-site{
    display:inline-block;
    margin-bottom:14px;
    font-size:13.5px;
    font-weight:600;
    color:#1864AB;
    text-decoration:none;
}

.back-to-site:hover{
    text-decoration:underline;
}

.logo-icon{
    cursor:pointer;
}

/* ===========================
PROGRESS
=========================== */

.progress-container{
    height:8px;
    background:#E8F0F7;
}

.progress-bar{
    width:14%;
    height:100%;
    background:#1864AB;
    transition:.4s;
}

.progress-text{
    text-align:center;
    font-size:14px;
    color:#6b7280;
    padding:18px;
    font-weight:600;
}

/* ===========================
STEP
=========================== */

.step{
    padding:55px;
    animation:fade .45s ease;
}

@keyframes fade{
    from{ opacity:0; transform:translateY(15px); }
    to{ opacity:1; transform:translateY(0); }
}

/* ===========================
TYPOGRAPHY
=========================== */

h1{
    text-align:center;
    font-size:36px;
    margin-top:10px;
    margin-bottom:0;
}

h2{
    text-align:center;
    font-size:28px;
    margin-bottom:28px;
}

p{
    text-align:center;
    color:#64748b;
    margin-top:20px;
    margin-bottom:0;
    line-height:1.7;
}

.hint{
    display:block;
    font-weight:400;
    color:#64748b;
    font-size:12px;
    margin-top:6px;
}
.hint[hidden]{
    display:none;
}

/* ===========================
ICON
=========================== */

.hero-icon,.bespoke-icon{
    width:90px;
    height:90px;
    margin:0 auto 10px;
    background:#E8F0F7;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
}

.logo-icon{
    width:46px;
    height:46px;
    object-fit:contain;
}

/* ===========================
BUTTONS
=========================== */

button{
    cursor:pointer;
    border:none;
    transition:.3s;
    font-family:inherit;
    font-size:16px;
}

.next{
    width:100%;
    margin-top:35px;
    padding:18px;
    border-radius:14px;
    background:#1864AB;
    color:white;
    font-size:16px;
    font-weight:600;
}

.next:hover{
    opacity:.9;
}

.buttons{
    display:flex;
    gap:15px;
    margin-top:35px;
}

.back{
    width:170px;
    border-radius:14px;
    background:#E8F0F7;
    color:#1864AB;
    font-weight:600;
}

.back:hover{
    opacity:.85;
}

.buttons button:last-child{
    flex:1;
}

.buttons .next,
.buttons .back{
    margin-top:0;
}

/* ===========================
CARDS (service / property type / bedrooms / yes-no)
=========================== */

.cards{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
}

.cards.cols-2{
    grid-template-columns:repeat(2,1fr);
}

.cards label{
    cursor:pointer;
}

.cards input{
    display:none;
}

.card-option{
    border:2px solid #e5e7eb;
    border-radius:18px;
    padding:22px 18px;
    text-align:center;
    transition:.25s;
    font-weight:600;
    height:100%;
}

.card-option small{
    display:block;
    font-weight:400;
    font-size:12.5px;
    margin-top:6px;
    opacity:.85;
    line-height:1.5;
}

.cards input:checked+.card-option{
    background:#1864AB;
    border-color:#1864AB;
    color:white;
    transform:translateY(-3px);
}

/* ===========================
CONDITION LIST
=========================== */

.condition-list{
    display:flex;
    flex-direction:column;
    gap:14px;
    margin-bottom:10px;
}

.condition-list label{
    cursor:pointer;
}

.condition-list input{
    display:none;
}

.condition-option{
    border:2px solid #e5e7eb;
    border-radius:16px;
    padding:20px 22px;
    transition:.2s;
}

.condition-option h3{
    font-size:16px;
    margin-bottom:6px;
}

.condition-option p{
    margin:0;
    text-align:left;
    color:#64748b;
    font-size:13.5px;
    line-height:1.6;
}

.condition-list input:checked+.condition-option{
    border-color:#1864AB;
    background:#E8F0F7;
}

/* ===========================
COUNTERS
=========================== */

.counter-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    padding:14px 0;
    border-bottom:1px solid #edf2ef;
    text-align:left;
}

.counter-row:last-of-type{
    border-bottom:none;
}

.counter-label{
    font-weight:600;
    font-size:14.5px;
}

.counter{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:16px;
    flex-shrink:0;
}

.counter button{
    width:60px;
    height:60px;
    border-radius:50%;
    background:#1864AB;
    color:white;
    font-size:30px;
}

.counter.compact button{
    width:40px;
    height:40px;
    font-size:19px;
}

.counter button:hover{
    transform:scale(1.08);
}

.counter span{
    font-size:54px;
    font-weight:700;
    width:80px;
    text-align:center;
}

.counter.compact span{
    font-size:22px;
    width:34px;
}

/* ===========================
FORMS
=========================== */

.form-group{
    margin-bottom:20px;
    text-align:left;
}

.form-group label{
    display:block;
    font-weight:600;
    font-size:13.5px;
    margin-bottom:8px;
}

.form-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

input[type=text],
input[type=tel],
input[type=email],
input[type=date],
input[type=number],
select,
textarea{
    width:100%;
    padding:13px 14px;
    border:2px solid #e5e7eb;
    border-radius:12px;
    font-family:inherit;
    font-size:14.5px;
    color:#1b1b1b;
    background:white;
}

input:focus,
select:focus,
textarea:focus{
    outline:none;
    border-color:#1864AB;
}

input[type=file]{
    width:100%;
    padding:10px 0;
    font-size:13px;
    border:none;
}

.info-note{
    background:#E8F0F7;
    color:#1864AB;
    padding:10px 14px;
    border-radius:10px;
    font-size:12.5px;
    margin-top:-6px;
    margin-bottom:14px;
    text-align:left;
}

textarea{
    min-height:85px;
    resize:vertical;
}

.checkbox-row{
    display:flex;
    gap:10px;
    align-items:flex-start;
    text-align:left;
    font-size:13.5px;
    color:#374151;
}

.checkbox-row input{
    width:19px;
    height:19px;
    margin-top:2px;
    flex-shrink:0;
}

.form-errors{
    background:#fef2f2;
    border:1px solid #fecaca;
    color:#b91c1c;
    padding:14px 18px;
    border-radius:12px;
    margin-bottom:22px;
    font-size:13.5px;
    text-align:left;
}

.form-errors ul{
    margin:4px 0 0 18px;
}

/* ===========================
SUMMARY BOX
=========================== */

.summary-box{
    background:#E8F0F7;
    border-radius:16px;
    padding:20px 22px;
    margin-bottom:28px;
    font-size:13.5px;
    color:#374151;
    text-align:left;
}

.summary-box h3{
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.06em;
    color:#6b7280;
    margin-bottom:10px;
}

.summary-box ul{
    list-style:none;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px 20px;
}

.summary-box li strong{
    color:#111827;
}

.summary-edit-btn{
    background:none;
    border:none;
    color:#1864AB;
    font-weight:600;
    font-size:11.5px;
    cursor:pointer;
    text-decoration:underline;
    padding:0;
    margin-left:8px;
}

.photo-preview{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:10px;
}

.photo-thumb{
    position:relative;
    width:64px;
    height:64px;
    border-radius:10px;
    overflow:hidden;
    background:#E8F0F7;
    border:2px solid #E8F0F7;
}

.photo-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.photo-remove{
    position:absolute;
    top:2px;
    right:2px;
    width:20px;
    height:20px;
    border:none;
    border-radius:50%;
    background:rgba(15,23,42,0.75);
    color:#fff;
    font-size:14px;
    line-height:20px;
    text-align:center;
    padding:0;
    cursor:pointer;
}
.photo-remove:hover{
    background:#0f172a;
}

/* ===========================
RESULT
=========================== */

.price{
    font-size:56px;
    color:#1864AB;
    font-weight:800;
    margin:30px 0;
    text-align:center;
}

/* ===========================
POSTCODE CHECKER
=========================== */

.postcode-input-row{
    display:flex;
    gap:12px;
    margin-top:20px;
    margin-bottom:10px;
}

.postcode-input-row input{
    flex:1;
    text-transform:uppercase;
}

.postcode-input-row button{
    flex-shrink:0;
    padding:0 26px;
    border-radius:12px;
    background:#1864AB;
    color:white;
    font-weight:600;
    font-size:16px;
}

.postcode-input-row button:hover{
    opacity:.9;
}

.postcode-result{
    border-radius:16px;
    padding:20px 22px;
    margin:18px 0;
    text-align:left;
}

.postcode-result.covered{
    background:#E8F0F7;
    color:#1864AB;
}

.postcode-result.e1{
    background:#E8F0F7;
    color:#1864AB;
}

.postcode-result.outside{
    background:#fef2f2;
    color:#b91c1c;
}

.postcode-result p{
    text-align:left;
    color:inherit;
    margin:0;
}

/* ===========================
EXTRAS (OPTIONAL SERVICES)
=========================== */

.extras-toggle{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    border:2px solid #e5e7eb;
    border-radius:16px;
    padding:18px 20px;
    margin-bottom:14px;
    text-align:left;
}

.extras-toggle.active{
    border-color:#1864AB;
    background:#E8F0F7;
}

.extras-toggle h3{
    font-size:15px;
    margin-bottom:4px;
}

.extras-toggle p{
    margin:0;
    text-align:left;
    color:#64748b;
    font-size:13px;
}

.extras-switch{
    width:52px;
    height:30px;
    border-radius:20px;
    background:#e5e7eb;
    flex-shrink:0;
    position:relative;
    transition:.2s;
}

.extras-toggle.active .extras-switch{
    background:#1864AB;
}

.extras-switch::after{
    content:"";
    position:absolute;
    top:3px;
    left:3px;
    width:24px;
    height:24px;
    border-radius:50%;
    background:white;
    transition:.2s;
}

.extras-toggle.active .extras-switch::after{
    left:25px;
}

/* ===========================
RESPONSIVE
=========================== */

@media(max-width:768px){

body{
    padding-left:1.5rem;
    padding-right:1.5rem;
}

.step{
    padding:1.5rem;
}

.cards,
.cards.cols-2{
    grid-template-columns:1fr;
}

.form-row{
    grid-template-columns:1fr;
}

.summary-box ul{
    grid-template-columns:1fr;
}

.price{
    font-size:40px;
}

h1{
    font-size:26px;
}

h2{
    font-size:22px;
}

.counter span{
    font-size:42px;
}

.buttons{
    flex-direction:column;
}

.back{
    width:100%;
}

.postcode-input-row{
    flex-direction:column;
}

.postcode-input-row button{
    padding:16px;
}

}
