:root {
    --qe-bg: #f4f6fb;
    --qe-text: #161c2a;
    --qe-muted: #6c7485;
    --qe-card-border: #e8ebf2;
    --qe-button-bg: #131722;
    --qe-button-bg-hover: #0a0d14;
}

.quote-engine-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #f7f9fc 0%, var(--qe-bg) 100%);
    color: var(--qe-text);
}

.quote-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.quote-layout {
    width: 100%;
    max-width: 760px;
    padding-inline: 0.75rem;
}

.quote-card {
    background-color: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--qe-card-border);
}

.quote-form {
    max-width: 560px;
    margin: 0 auto;
}

.quote-title {
    margin-bottom: 0.35rem;
    font-size: clamp(1.35rem, 2.3vw, 1.9rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.quote-description {
    margin-bottom: 1.25rem;
    color: var(--qe-muted);
    font-size: 0.95rem;
}

.quote-options {
    gap: 0.75rem;
}

.option-btn {
    min-height: 3.1rem;
    border-radius: 0.8rem;
    padding: 0.65rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    background-color: var(--qe-button-bg);
    border-color: var(--qe-button-bg);
}

.option-btn:hover,
.option-btn:focus-visible,
.option-btn:active {
    background-color: var(--qe-button-bg-hover);
    border-color: var(--qe-button-bg-hover);
}


.quote-intro-banner {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    margin-bottom: 1.1rem;
    padding: clamp(0.9rem, 3vw, 1.1rem);
    border: 1px solid #d9e8fb;
    border-radius: 1.05rem;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 35%),
        linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.1);
    text-align: left;
}

.quote-intro-icon,
.quote-submit-note-icon {
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    border-radius: 0.85rem;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.1), 0 8px 18px rgba(37, 99, 235, 0.12);
    font-size: 1.1rem;
}

.quote-intro-title,
.quote-helper-title {
    margin: 0 0 0.18rem;
    color: #172033;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.quote-intro-copy,
.quote-helper-copy {
    margin: 0;
    color: #526173;
    font-size: 0.94rem;
    line-height: 1.55;
}

.quote-trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.quote-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.35rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid #edf0f6;
    border-radius: 999px;
    background: #ffffff;
    color: #4b5565;
    font-size: 0.82rem;
    font-weight: 650;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.quote-trust-icon {
    color: #2563eb;
    font-size: 0.95rem;
    line-height: 1;
}

.quote-helper-card {
    margin-top: 0.85rem;
    padding: 0.95rem 1rem;
    border: 1px solid #bbf7d0;
    border-radius: 1rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #f7fff9 100%);
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.08);
    text-align: left;
}

.quote-helper-title {
    color: #14532d;
}

.quote-helper-copy {
    color: #3f5f49;
}

.quote-summary-card {
    border: 1px solid var(--qe-card-border);
    border-radius: 1rem;
    padding: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: 1rem;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.quote-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.72rem 0;
    border-bottom: 1px solid #edf0f6;
    color: var(--qe-muted);
}

.quote-summary-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.quote-summary-row strong {
    color: var(--qe-text);
    text-align: right;
}

.quote-submit-note {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #d9e8fb;
    border-radius: 1rem;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 38%),
        linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
    color: #2e3a4f;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
}

.quote-submit-disclaimer {
    margin: 0.65rem 0 0;
    color: #758195;
    font-size: 0.84rem;
    line-height: 1.45;
    text-align: center;
}

.quote-complete-title {
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    margin-bottom: 0.5rem;
}

@media (max-width: 575.98px) {
    .quote-shell {
        align-items: flex-start;
    }

    .quote-layout {
        max-width: 100%;
        padding-inline: 0.3rem;
    }

    .quote-card {
        border-radius: 1rem;
    }

    .quote-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .option-btn {
        min-height: 2.9rem;
        font-size: 0.96rem;
    }

    .quote-intro-banner,
    .quote-submit-note {
        gap: 0.7rem;
        padding: 0.85rem;
    }

    .quote-intro-icon,
    .quote-submit-note-icon {
        width: 2rem;
        height: 2rem;
        border-radius: 0.7rem;
        font-size: 1rem;
    }

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

    .quote-trust-item {
        justify-content: flex-start;
        border-radius: 0.85rem;
        padding-inline: 0.75rem;
    }
}

.quote-success {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(0.75rem, 3vw, 2rem) 0;
}

.quote-success-card {
    position: relative;
    overflow: hidden;
    width: min(100%, 620px);
    margin: 0 auto;
    padding: clamp(1.5rem, 6vw, 3rem);
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.12), transparent 35%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e4eaf3;
    border-radius: 1.5rem;
    text-align: center;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.quote-success-icon {
    width: clamp(4.25rem, 15vw, 5.5rem);
    height: clamp(4.25rem, 15vw, 5.5rem);
    margin: 0 auto 1.25rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: clamp(2rem, 6vw, 2.8rem);
    font-weight: 800;
    color: #047857;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    box-shadow:
        0 16px 34px rgba(16, 185, 129, 0.18),
        inset 0 0 0 1px rgba(4, 120, 87, 0.12);
}

.quote-success-copy {
    color: #4e586c;
    margin: 0.75rem auto 0;
    max-width: 44ch;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.65;
}

.quote-success-note {
    max-width: 46ch;
    margin: 1.1rem auto 0;
    color: #647084;
    font-size: 0.92rem;
    line-height: 1.55;
}

.quote-success-cta {
    margin-top: 1.5rem;
    width: 100%;
    min-height: 3.15rem;
    border: none;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, #111827 0%, #25324a 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 16px 30px rgba(17, 24, 39, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.quote-success-cta:hover,
.quote-success-cta:focus-visible {
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 20px 36px rgba(17, 24, 39, 0.28);
}

@media (max-width: 575.98px) {
    .quote-summary-row {
        flex-direction: column;
        gap: 0.2rem;
    }

    .quote-summary-row strong {
        text-align: left;
    }

    .quote-success-card {
        border-radius: 1.15rem;
        padding: 1.35rem;
    }

    .quote-success-note {
        font-size: 0.88rem;
    }
}

.quote-back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 2.5rem;
    margin-bottom: 0.8rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--qe-card-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--qe-text);
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.quote-back-button:hover,
.quote-back-button:focus-visible {
    border-color: #d5dbe8;
    background: #f8fafc;
}

.quantity-stepper {
    display: grid;
    grid-template-columns: 3.4rem minmax(5.5rem, 1fr) 3.4rem;
    align-items: stretch;
    width: min(100%, 18rem);
    margin: 0 auto;
    border: 1px solid var(--qe-card-border);
    border-radius: 0.95rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.quantity-stepper-button,
.quantity-stepper-value {
    min-height: 3.4rem;
    display: grid;
    place-items: center;
}

.quantity-stepper-button {
    border: 0;
    background: var(--qe-button-bg);
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
}

.quantity-stepper-button:hover,
.quantity-stepper-button:focus-visible {
    background: var(--qe-button-bg-hover);
}

.quantity-stepper-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.quantity-stepper-value {
    border-inline: 1px solid var(--qe-card-border);
    color: var(--qe-text);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}

@media (max-width: 575.98px) {
    .quote-back-button {
        min-height: 2.75rem;
        padding-inline: 1rem;
    }

    .quantity-stepper {
        grid-template-columns: 3.75rem minmax(5.75rem, 1fr) 3.75rem;
        width: 100%;
    }

    .quantity-stepper-button,
    .quantity-stepper-value {
        min-height: 3.75rem;
    }
}
