.estimation-main {
    background: #f7f4f0;
    padding-bottom: 0;
}

/* Force navbar to always appear with solid background on this page (no hero behind it) */
#navbar {
    background-color: rgba(44, 44, 44, 0.92) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.estimation-section {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    padding-top: 80px;
    min-height: 100vh;
}

.estimation-section .container {
    max-width: 100%;
    padding: 0 var(--spacing-md);
}

.estimation-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 0;
    align-items: stretch;
}

.progress-sidebar {
    background: linear-gradient(145deg, #4c4036 0%, #6c5848 38%, #c17956 100%);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.progress-sidebar::before {
    content: '';
    position: absolute;
    top: -54%;
    right: -4%;
    width: 400px;
    height: 400px;
    background: rgba(255, 248, 240, 0.09);
    border-radius: 50%;
    z-index: 0;
}

.progress-sidebar::after {
    content: '';
    position: absolute;
    right: -18px;
    bottom: -18px;
    width: 280px;
    height: 280px;
    background-image: url('/assests/Jassistays.avif');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.14;
    filter: grayscale(1) brightness(1.6) contrast(1);
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: 0;
}

.sidebar-step {
    position: relative;
    z-index: 1;
}

.sidebar-step h3 {
    margin: 0 0 8px;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #fff;
}

.sidebar-step p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.sidebar-summary {
    display: grid;
    gap: 14px;
}

.summary-row {
    display: grid;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.summary-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.summary-label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.summary-value {
    font-size: 0.98rem;
    line-height: 1.5;
    color: #fff;
}

.wizard-shell {
    background: #fff;
    border: 1px solid #eee4d7;
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(50, 38, 26, 0.08);
    overflow: hidden;
}

.wizard-header {
    padding: 30px 28px 20px;
    border-bottom: 1px solid #f1e8dc;
}

.wizard-header h2 {
    margin: 0 0 8px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 2.7vw, 2rem);
    color: #30271f;
}

.wizard-header p {
    margin: 0;
    color: #62554a;
}

.wizard-progress {
    margin-top: 16px;
    height: 8px;
    border-radius: 999px;
    background: #efe4d8;
    overflow: hidden;
}

.wizard-progress-bar {
    width: 20%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #c17956, #9f6548);
    transition: width 220ms ease;
}

.step-meta {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #7a6a5b;
}

.step-layout-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.step-content {
    flex: 1;
}

.step-map {
    flex: 1;
}

.step-map .map-card {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: 100%;
    margin-bottom: 0;
    aspect-ratio: 1 / 1;
}

.wizard-form {
    padding: 26px 28px 30px;
}

.wizard-step {
    display: none;
}

.wizard-step.is-active {
    display: block;
}

.wizard-step h3 {
    margin: 0 0 8px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 2.2vw, 1.85rem);
    color: #2f2620;
}

.step-description {
    margin: 0 0 16px;
    color: #63564b;
}

.map-card {
    border: 1px solid #ebdfd2;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
}

.morocco-map {
    height: 100%;
    min-height: 440px;
    width: 100%;
}

.map-hint {
    padding: 10px 14px;
    font-size: 0.9rem;
    color: #6e6054;
    background: #fbf7f2;
    border-top: 1px solid #efe4d8;
}

.field-grid {
    display: grid;
    gap: 14px;
}

.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field span {
    font-size: 0.92rem;
    color: #493d33;
}

.field input,
.field select {
    width: 100%;
    border: 1px solid #e4d6c7;
    border-radius: 10px;
    padding: 11px 12px;
    font: inherit;
    color: #2f2720;
    background: #fff;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: #c17956;
    box-shadow: 0 0 0 3px rgba(193, 121, 86, 0.15);
}

.unit-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.unit-input small {
    color: #766556;
}

.stepper-input {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    border: 1px solid #e4d6c7;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.stepper-input input {
    border: none;
    border-left: 1px solid #ecdccf;
    border-right: 1px solid #ecdccf;
    border-radius: 0;
    text-align: center;
    padding: 10px 8px;
}

.stepper-input input:focus {
    box-shadow: none;
}

.stepper-input input[type="number"]::-webkit-outer-spin-button,
.stepper-input input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.stepper-input input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.stepper-btn {
    width: 100%;
    height: 42px;
    border: none;
    background: #f7efe6;
    color: #5f4c3e;
    font-size: 0;
    line-height: 1;
    cursor: pointer;
    transition: background 150ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stepper-btn::before {
    font-size: 1.25rem;
    font-weight: 600;
    color: #5f4c3e;
}

.stepper-btn[data-stepper-action="decrease"]::before {
    content: "-";
}

.stepper-btn[data-stepper-action="increase"]::before {
    content: "+";
}

.stepper-btn:hover {
    background: #f0e1d1;
}

.counter-list {
    margin-top: 6px;
    display: grid;
    gap: 14px;
}

.counter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.counter-label {
    font-size: 1.02rem;
    color: #2f2720;
}

.counter-row .stepper-input {
    width: 168px;
    flex: 0 0 auto;
}

.counter-row .stepper-input {
    grid-template-columns: 42px 84px 42px;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.choice-card {
    border: 1px solid #e7dacc;
    border-radius: 12px;
    background: #fff;
    padding: 16px;
    cursor: pointer;
    transition: border-color 180ms ease, transform 180ms ease;
}

.choice-card:hover {
    border-color: #c17956;
    transform: translateY(-2px);
}

.choice-card input {
    margin-right: 8px;
}

.group-block {
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid #efe3d5;
    border-radius: 12px;
    background: #fcf9f5;
}

.group-block h4 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: #352b23;
}

.group-block p {
    margin: 0 0 10px;
    color: #65584c;
}

.checks-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.check-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid #e8dbc8;
    border-radius: 999px;
    background: #fff;
    color: #4e4237;
    font-size: 0.92rem;
}

.check-pill input {
    margin: 0;
}

.condition-block {
    margin-top: 14px;
    border: 1px solid #eddcc8;
    border-radius: 12px;
    padding: 14px;
    background: #fcf8f3;
}

.condition-block h4 {
    margin: 0 0 8px;
    color: #332922;
}

.choice-stack {
    display: grid;
    gap: 8px;
}

.choice-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4f4439;
}

.wizard-actions {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.wizard-btn {
    min-width: 172px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid #8f5f45;
    background: linear-gradient(135deg, #c17956 0%, #9f6548 100%);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 16px rgba(60, 41, 24, 0.12);
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.wizard-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(60, 41, 24, 0.14);
}

.wizard-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wizard-btn-secondary {
    background: #6f5e51;
    color: #fff;
}

.wizard-btn-secondary:hover {
    background: #5f5044;
}

@media (max-width: 1024px) {
    .three-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .estimation-hero {
        min-height: 48vh;
        padding: 128px 0 56px;
    }

    .wizard-header,
    .wizard-form {
        padding-left: 18px;
        padding-right: 18px;
    }

    .morocco-map {
        height: 340px;
    }

    .two-cols,
    .three-cols,
    .choice-grid {
        grid-template-columns: 1fr;
    }

    .counter-row {
        gap: 12px;
    }

    .counter-label {
        font-size: 0.98rem;
    }

    .counter-row .stepper-input {
        width: 158px;
    }

    .wizard-btn {
        width: 100%;
    }

    .wizard-actions {
        flex-direction: column-reverse;
        gap: 12px;
        justify-content: flex-start;
    }

    .wizard-actions .owner-btn {
        width: 100%;
    }

    .step-layout-side {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .step-map .map-card {
        aspect-ratio: auto;
        margin-bottom: 14px;
    }

    .morocco-map {
        height: 340px;
        min-height: 340px;
    }

    .estimation-wrapper {
        grid-template-columns: 1fr;
    }

    .progress-sidebar {
        display: none;
    }
}
