.quote-page {
    --quote-ink: #17191d;
    --quote-muted: #687080;
    --quote-red: #ed2935;
    --quote-line: #e4e7ec;
    --quote-green: #138a50;
    padding: clamp(34px, 5vw, 72px) 24px clamp(56px, 7vw, 96px);
    background:
        radial-gradient(circle at 5% 3%, rgba(237, 41, 53, 0.055), transparent 24rem),
        linear-gradient(180deg, #fbfbfc 0%, #fff 48%);
    color: var(--quote-ink);
}

/* Avoid animated browser scroll restoration on the quote page; wizard steps
   still scroll smoothly because their script requests that behavior directly. */
html:has(.quote-page) {
    scroll-behavior: auto !important;
}

.quote-page-container {
    width: min(1240px, 100%);
    margin: 0 auto;
}

.quote-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.78fr);
    align-items: stretch;
    gap: 24px;
}

.quote-wizard-card,
.quote-support-card {
    min-width: 0;
    border-radius: 22px;
    overflow: hidden;
}

.quote-wizard-card {
    position: relative;
    padding: clamp(26px, 3.3vw, 44px);
    background: #fff;
    border: 1px solid #e6e8ec;
    box-shadow: 0 22px 65px rgba(19, 22, 29, 0.075);
}

.quote-heading {
    max-width: 640px;
    margin-bottom: 30px;
}

.quote-eyebrow,
.quote-support-eyebrow {
    display: inline-block;
    color: var(--quote-red);
    font-family: "Khand", "Arial Narrow", sans-serif;
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.quote-heading h1 {
    margin: 13px 0 8px;
    color: var(--quote-ink);
    font-family: "Urbanist", "Inter", sans-serif;
    font-size: clamp(2.1rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 0.99;
    letter-spacing: -0.055em;
}

.quote-heading h1 span {
    color: var(--quote-red);
}

.quote-heading > p {
    margin: 0;
    color: var(--quote-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.quote-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.91rem;
}

.quote-alert > div,
.quote-alert > div span {
    display: block;
}

.quote-alert strong {
    display: block;
    margin-bottom: 2px;
}

.quote-alert-icon {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    border-radius: 50%;
    font-weight: 800;
}

.quote-alert-success {
    color: #11663f;
    background: #effaf4;
    border: 1px solid #bde8ce;
}

.quote-alert-success .quote-alert-icon {
    color: #fff;
    background: #179757;
}

.quote-alert-error {
    color: #8f2029;
    background: #fff4f4;
    border: 1px solid #f2c8cb;
}

.quote-alert-error .quote-alert-icon {
    color: #fff;
    background: var(--quote-red);
}

.quote-wizard-form {
    margin: 0;
}

.quote-progress {
    margin-bottom: 25px;
}

.quote-progress-track {
    height: 4px;
    overflow: hidden;
    border-radius: 99px;
    background: #eceef1;
}

.quote-progress-track span {
    display: block;
    width: 33.333%;
    height: 100%;
    border-radius: inherit;
    background: var(--quote-red);
    transition: width 260ms ease;
}

.quote-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 9px;
    color: #858b96;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.015em;
}

.quote-progress-meta span:last-child {
    color: var(--quote-ink);
}

.quote-step {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.quote-step[hidden] {
    display: none !important;
}

.quote-question {
    display: block;
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--quote-ink);
    font-family: "Urbanist", "Inter", sans-serif;
    font-size: clamp(1.48rem, 2.25vw, 1.95rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.quote-step-hint {
    margin: 6px 0 17px;
    color: var(--quote-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.quote-service-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.quote-service-option {
    position: relative;
    display: flex;
    min-height: 79px;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 13px 12px;
    border: 1px solid var(--quote-line);
    border-radius: 12px;
    color: var(--quote-ink);
    background: #fff;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.quote-service-option:hover {
    transform: translateY(-1px);
    border-color: rgba(237, 41, 53, 0.58);
    background: #fffafa;
    box-shadow: 0 8px 20px rgba(18, 20, 25, 0.08);
}

.quote-service-option.is-selected {
    border-color: #ed2935;
    background: #fff5f5;
    box-shadow: 0 0 0 2px rgba(237, 41, 53, 0.1);
}

.quote-service-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}

.quote-option-mark {
    position: relative;
    display: block;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin-top: 2px;
    border: 1.5px solid #aeb4bf;
    border-radius: 50%;
    background: transparent;
}

.quote-service-option.is-selected .quote-option-mark {
    border-color: #ed2935;
    background: #ed2935;
}

.quote-service-option.is-selected .quote-option-mark::after {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #fff;
    content: "";
}

.quote-option-copy {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
}

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

.quote-option-copy strong {
    color: var(--quote-ink);
    font-size: 0.85rem;
    font-weight: 750;
    line-height: 1.25;
}

.quote-option-copy small {
    margin-top: 4px;
    color: var(--quote-muted);
    font-size: 0.73rem;
    line-height: 1.35;
}

.quote-option-arrow {
    align-self: center;
    color: #8c929e;
    font-size: 0.9rem;
    transition: color 160ms ease, transform 160ms ease;
}

.quote-service-option:hover .quote-option-arrow {
    color: #ed2935;
}

.quote-service-option.is-selected .quote-option-arrow {
    transform: translate(1px, -1px);
    color: #ed2935;
}

.quote-fields {
    display: grid;
    gap: 15px;
    max-width: 520px;
    margin-top: 24px;
}

.quote-field {
    display: grid;
    gap: 7px;
    color: #2d313a;
    font-size: 0.83rem;
    font-weight: 700;
}

.quote-field > span small {
    color: #8a909a;
    font-size: 0.78rem;
    font-weight: 500;
}

.quote-field input,
.quote-field textarea {
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #d9dde3;
    border-radius: 10px;
    outline: 0;
    background: #fff;
    color: var(--quote-ink);
    font: 500 0.94rem/1.45 "Inter", sans-serif;
    box-shadow: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.quote-field input::placeholder,
.quote-field textarea::placeholder {
    color: #a0a6b0;
    font-weight: 400;
}

.quote-field input:focus,
.quote-field textarea:focus {
    border-color: var(--quote-red);
    box-shadow: 0 0 0 3px rgba(237, 41, 53, 0.12);
}

.quote-field textarea {
    min-height: 112px;
    resize: vertical;
}

.quote-field-message {
    margin-top: 18px;
}

.quote-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 14px;
    color: #737987;
    font-size: 0.76rem;
    line-height: 1.45;
    cursor: pointer;
}

.quote-consent input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 1px 0 0;
    accent-color: var(--quote-red);
}

.quote-delivery-note {
    margin: 17px 0 9px;
    color: #444a55;
    font-size: 0.8rem;
    font-weight: 700;
}

.quote-inline-error {
    min-height: 0;
    margin: 0;
    color: #bd1f2d;
    font-size: 0.8rem;
}

.quote-inline-error:not(:empty) {
    margin-top: 8px;
}

.quote-step-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.quote-step-actions-end {
    justify-content: flex-end;
}

.quote-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: "Inter", sans-serif;
    font-size: 0.87rem;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.quote-button:hover {
    transform: translateY(-1px);
}

.quote-button:focus-visible,
.quote-service-option:focus-within {
    outline: 3px solid rgba(237, 41, 53, 0.22);
    outline-offset: 2px;
}

.quote-button-primary {
    color: #fff;
    background: var(--quote-red);
    box-shadow: 0 7px 16px rgba(237, 41, 53, 0.17);
}

.quote-button-primary:hover {
    background: #d91f2d;
    box-shadow: 0 10px 20px rgba(237, 41, 53, 0.22);
}

.quote-button-back {
    padding-inline: 6px;
    color: #6e7480;
    background: transparent;
}

.quote-button-back:hover {
    color: var(--quote-ink);
}

.quote-final-actions {
    align-items: flex-end;
}

.quote-delivery-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.quote-delivery-actions .quote-button {
    min-height: 45px;
    padding-inline: 14px;
    font-size: 0.81rem;
}

.quote-button-whatsapp {
    color: #fff;
    background: var(--quote-green);
    box-shadow: 0 7px 16px rgba(19, 138, 80, 0.15);
}

.quote-button-whatsapp:hover {
    background: #0d7743;
    box-shadow: 0 10px 20px rgba(19, 138, 80, 0.2);
}

.quote-button-whatsapp svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.quote-whatsapp-hint {
    margin: 8px 0 0;
    color: #8a909a;
    font-size: 0.72rem;
    text-align: right;
}

.quote-submit-error {
    margin-top: 12px;
    padding: 11px 13px;
    border: 1px solid #f0c8cb;
    border-radius: 9px;
    color: #9d2029;
    background: #fff5f5;
    font-size: 0.84rem;
}

.quote-support-card {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(26px, 3vw, 38px);
    color: #fff;
    background: #17191d;
    isolation: isolate;
}

.quote-support-card::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(18, 20, 24, 0.02) 0%, #17191d 57%),
        url("../assets/portfolio/portfolio-hero-abstract.webp") center top / 100% auto no-repeat,
        #17191d;
    opacity: 0.92;
    content: "";
}

.quote-support-art {
    position: absolute;
    top: 42px;
    right: 34px;
    width: 172px;
    height: 172px;
    opacity: 0.92;
}

.quote-orbit {
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}

.quote-orbit-one {
    transform: rotate(-34deg) scaleX(0.74);
}

.quote-orbit-two {
    transform: rotate(38deg) scaleX(0.74);
}

.quote-art-core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 18px;
    color: #fff;
    background: rgba(237, 41, 53, 0.93);
    font-family: "Urbanist", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 10px 40px rgba(237, 41, 53, 0.26);
}

.quote-art-node {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid #17191d;
    border-radius: 50%;
    background: #ff4b56;
    box-shadow: 0 0 0 4px rgba(237, 41, 53, 0.18);
}

.quote-art-node-one { top: 24px; left: 32px; }
.quote-art-node-two { right: 20px; bottom: 35px; width: 8px; height: 8px; background: #fff; }

.quote-art-line {
    position: absolute;
    height: 1px;
    transform-origin: left center;
    background: rgba(255, 255, 255, 0.42);
}

.quote-art-line-one { top: 36px; left: 40px; width: 52px; transform: rotate(34deg); }
.quote-art-line-two { right: 22px; bottom: 44px; width: 54px; transform: rotate(-32deg); }

.quote-support-content {
    position: relative;
    z-index: 1;
    max-width: 370px;
    margin-top: 185px;
}

.quote-support-eyebrow {
    color: #ff5963;
    font-size: 0.98rem;
}

.quote-support-content h2 {
    margin: 13px 0 10px;
    color: #fff;
    font-family: "Urbanist", "Inter", sans-serif;
    font-size: clamp(1.8rem, 2.5vw, 2.35rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.quote-support-content > p {
    max-width: 340px;
    margin: 0;
    color: #c0c3ca;
    font-size: 0.9rem;
    line-height: 1.55;
}

.quote-support-points {
    display: grid;
    gap: 14px;
    margin: 25px 0 24px;
}

.quote-support-points > div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.quote-support-points > div > span {
    display: grid;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ff626b;
    font-family: "Khand", sans-serif;
    font-size: 1rem;
    line-height: 1;
}

.quote-support-points p,
.quote-support-points strong,
.quote-support-points small {
    display: block;
    margin: 0;
}

.quote-support-points strong {
    color: #fff;
    font-size: 0.84rem;
}

.quote-support-points small {
    margin-top: 2px;
    color: #aeb2bb;
    font-size: 0.76rem;
    line-height: 1.4;
}

.quote-support-socials {
    display: flex;
    gap: 10px;
    margin: 24px 0 19px;
}

.quote-support-socials a {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.quote-support-socials a:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.44);
    background: rgba(237, 41, 53, 0.88);
}

.quote-support-socials svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.quote-support-socials a:nth-child(2) svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.quote-support-socials .quote-support-icon-dot {
    fill: currentColor;
    stroke: none;
}

.quote-support-contacts {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.quote-support-contact {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: opacity 160ms ease;
}

.quote-support-contact:hover { opacity: .82; }

.quote-support-mail-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: var(--quote-red);
    font-size: 1.1rem;
    font-weight: 800;
}

.quote-support-contact-icon {
    border-radius: 11px;
    background: #138a50;
}

.quote-support-contact:last-child .quote-support-contact-icon { background: var(--quote-red); }

.quote-support-contact-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quote-support-contact:first-child .quote-support-contact-icon svg { fill: currentColor; stroke: none; }

.quote-support-contact > span:nth-child(2) {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.quote-support-contact small {
    color: #b8bbc2;
    font-size: 0.7rem;
}

.quote-support-contact strong {
    font-size: 0.86rem;
}

.quote-support-contact-arrow {
    margin-left: auto;
    color: #ff5963;
    font-size: 1.1rem;
}

.quote-success-state {
    padding: 28px 0 8px;
}

.quote-success-state[hidden] {
    display: none !important;
}

.quote-success-check {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #168b50;
    font-size: 1.55rem;
    font-weight: 800;
}

.quote-success-state h2 {
    max-width: 480px;
    margin: 12px 0 8px;
    color: var(--quote-ink);
    font-family: "Urbanist", sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.quote-success-state p {
    max-width: 480px;
    margin: 0 0 20px;
    color: var(--quote-muted);
    line-height: 1.55;
}

.quote-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

@media (max-width: 1000px) {
    .quote-page-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.85fr);
        gap: 18px;
    }

    .quote-wizard-card,
    .quote-support-card {
        border-radius: 18px;
    }

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

    .quote-service-option {
        min-height: 67px;
    }

    .quote-support-art {
        top: 30px;
        right: 22px;
        transform: scale(0.86);
        transform-origin: top right;
    }

    .quote-support-content {
        margin-top: 170px;
    }
}

@media (max-width: 760px) {
    .quote-page {
        padding: 16px 15px 54px;
    }

    .quote-page-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .quote-wizard-card {
        padding: 25px 20px 22px;
        border-radius: 16px;
    }

    .quote-heading {
        margin-bottom: 25px;
    }

    .quote-heading h1 {
        max-width: 430px;
        font-size: clamp(2.15rem, 10vw, 2.85rem);
    }

    .quote-heading > p {
        max-width: 370px;
        font-size: 0.92rem;
    }

    .quote-progress {
        margin-bottom: 22px;
    }

    .quote-service-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .quote-service-option {
        min-height: 66px;
        padding: 12px;
    }

    .quote-fields {
        margin-top: 21px;
    }

    .quote-final-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 11px;
    }

    .quote-final-actions > .quote-button-back {
        align-self: flex-start;
    }

    .quote-delivery-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .quote-delivery-actions .quote-button {
        width: 100%;
        min-height: 48px;
        font-size: 0.86rem;
    }

    .quote-whatsapp-hint {
        text-align: center;
    }

    .quote-support-card {
        min-height: unset;
        padding: 25px 22px 23px;
        border-radius: 16px;
    }

    .quote-support-card::before {
        background:
            linear-gradient(180deg, rgba(18, 20, 24, 0.05) 0%, #17191d 44%),
            url("../assets/portfolio/portfolio-hero-abstract.webp") 60% 0 / auto 270px no-repeat,
            #17191d;
    }

    .quote-support-art {
        top: 18px;
        right: 17px;
        transform: scale(0.68);
    }

    .quote-support-content {
        max-width: none;
        margin-top: 138px;
    }

    .quote-support-content h2 {
        max-width: 420px;
        font-size: 1.9rem;
    }

    .quote-support-points {
        gap: 12px;
        margin: 21px 0;
    }

    .quote-support-socials { margin: 20px 0 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .quote-page *,
    .quote-page *::before,
    .quote-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
