/*
 * Styling for the quote request stepper (block: quote_form).
 *
 * The original Webflow site has no quote page, so this is new — built from the
 * same design tokens as the rest of the site: the grey band, the white rounded
 * card, Satoshi, the 16px radius and the green accent.
 */

.section-quote {
    background-color: var(--_variable-collection---grey--100);
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: 0 80px 80px;
    display: flex;
}

/*
 * Directly under the navbar (i.e. the form is the first thing on the page, with
 * no hero above it) it needs the same top spacing as the hero sections, so the
 * card clears the fixed navbar.
 */
.navbar + .section-quote {
    padding-top: 240px;
}

.quote-card {
    background-color: var(--_variable-collection---white);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    max-width: 960px;
    padding: 56px 56px 48px;
}

.quote-title {
    margin: 0 0 10px;
    color: var(--_variable-collection---black--900);
    font-family: Satoshi, Impact, sans-serif;
    font-size: 32px;
    font-weight: 900;
    line-height: 120%;
}

.quote-head {
    max-width: 640px;
}

/* ------------------------------------------------------------- progress -- */

.quote-progress {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quote-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.quote-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 10px;
    border: 1px solid var(--_variable-collection---grey--200);
    border-radius: 999px;
    background-color: var(--_variable-collection---white);
    color: var(--_variable-collection---black--600);
    font-family: Satoshi, Impact, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.quote-step:hover {
    border-color: var(--_variable-collection---green--300);
    color: var(--_variable-collection---black--900);
}

.quote-step__number {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background-color: var(--_variable-collection---grey--100);
    color: var(--_variable-collection---black--600);
    font-size: 13px;
    font-weight: 700;
}

.quote-step__number svg {
    width: 14px;
    height: 14px;
}

.quote-step.is-active {
    border-color: var(--_variable-collection---green--500);
    color: var(--_variable-collection---black--900);
}

.quote-step.is-active .quote-step__number {
    background-color: var(--_variable-collection---green--500);
    color: var(--_variable-collection---white);
}

.quote-step.is-done .quote-step__number {
    background-color: var(--_variable-collection---green--100);
    color: var(--_variable-collection---green--800);
}

.quote-progress__bar {
    height: 6px;
    border-radius: 999px;
    background-color: var(--_variable-collection---grey--100);
    overflow: hidden;
}

.quote-progress__bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background-color: var(--_variable-collection---green--500);
    transition: width 0.35s ease;
}

.quote-progress__text {
    margin: 0;
    color: var(--_variable-collection---grey--700);
    font-size: 13px;
    font-weight: 500;
}

/* ----------------------------------------------------------------- steps -- */

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.quote-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 232px;
    animation: quote-step-in 0.32s ease both;
}

@keyframes quote-step-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.quote-fieldset {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    border: 0;
}

.quote-legend {
    margin: 0;
    padding: 0;
    color: var(--_variable-collection---black--900);
    font-family: Satoshi, Impact, sans-serif;
    font-size: 20px;
    font-weight: 900;
    line-height: 130%;
}

.quote-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quote-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--_variable-collection---grey--200);
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    line-height: 140%;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.quote-option:hover {
    border-color: var(--_variable-collection---green--300);
}

.quote-option:has(input:checked) {
    border-color: var(--_variable-collection---green--500);
    background-color: var(--_variable-collection---green--50);
}

.quote-option input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    accent-color: var(--_variable-collection---green--600);
}

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

.quote-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quote-label {
    color: var(--_variable-collection---black--800);
    font-size: 14px;
    font-weight: 700;
}

.quote-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--_variable-collection---grey--300);
    border-radius: 10px;
    background-color: var(--_variable-collection---white);
    color: var(--_variable-collection---black--900);
    font-family: Satoshi, Impact, sans-serif;
    font-size: 16px;
    line-height: 150%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea.quote-input {
    resize: vertical;
}

.quote-input:focus {
    outline: 0;
    border-color: var(--_variable-collection---green--500);
    box-shadow: 0 0 0 3px var(--_variable-collection---green--100);
}

.quote-error {
    margin: 0;
    color: #b42318;
    font-size: 13px;
    font-weight: 500;
}

.quote-error--block {
    padding: 10px 14px;
    border: 1px solid #fecdca;
    border-radius: 10px;
    background-color: #fef3f2;
}

/* --------------------------------------------------------------- summary -- */

.quote-summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    border: 1px solid var(--_variable-collection---grey--200);
    border-radius: 12px;
    overflow: hidden;
}

.quote-summary__row {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    align-items: start;
    gap: 16px;
    padding: 12px 16px;
    background-color: var(--_variable-collection---grey--50);
}

.quote-summary__row:nth-child(even) {
    background-color: var(--_variable-collection---white);
}

.quote-summary dt {
    color: var(--_variable-collection---grey--700);
    font-size: 14px;
    font-weight: 500;
}

.quote-summary dd {
    margin: 0;
    color: var(--_variable-collection---black--900);
    font-size: 15px;
    font-weight: 500;
    white-space: pre-line;
}

.quote-summary__edit {
    padding: 0;
    border: 0;
    background: none;
    color: var(--_variable-collection---green--700);
    font-family: Satoshi, Impact, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.quote-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--_variable-collection---black--600);
    font-size: 14px;
    line-height: 155%;
}

.quote-consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--_variable-collection---green--600);
}

.quote-consent a {
    color: var(--_variable-collection---green--700);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ------------------------------------------------------------- buttons --- */

.quote-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 4px;
}

.quote-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    background-color: var(--_variable-collection---green--500);
    color: var(--_variable-collection---white);
    font-family: Satoshi, Impact, sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.quote-button:hover:not(:disabled) {
    background-color: var(--_variable-collection---green--600);
}

.quote-button:disabled {
    opacity: 0.6;
    cursor: default;
}

.quote-button--ghost {
    background-color: transparent;
    border-color: var(--_variable-collection---grey--300);
    color: var(--_variable-collection---black--800);
    margin-right: auto;
}

.quote-button--ghost:hover:not(:disabled) {
    background-color: var(--_variable-collection---grey--100);
}

.quote-button__icon {
    display: flex;
    align-items: center;
    width: 16px;
    height: 16px;
}

.quote-button__icon svg {
    width: 100%;
    height: 100%;
}

.quote-alt {
    margin: 0;
    color: var(--_variable-collection---grey--700);
    font-size: 14px;
}

.quote-alt a {
    color: var(--_variable-collection---green--700);
    font-weight: 700;
}

/* -------------------------------------------------------------- success -- */

.quote-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 0 16px;
    text-align: center;
}

.quote-success__icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background-color: var(--_variable-collection---green--100);
    color: var(--_variable-collection---green--800);
}

.quote-success__icon svg {
    width: 34px;
    height: 34px;
}

.quote-success__title {
    margin: 0;
    color: var(--_variable-collection---black--900);
    font-family: Satoshi, Impact, sans-serif;
    font-size: 24px;
    font-weight: 900;
}

.quote-success__body {
    margin: 0;
    max-width: 520px;
    color: var(--_variable-collection---black--600);
    font-size: 16px;
    line-height: 155%;
}

.quote-success__note {
    margin: 0;
    color: var(--_variable-collection---grey--700);
    font-size: 14px;
}

/* ----------------------------------------------------------- responsive -- */

@media screen and (max-width: 991px) {
    .section-quote {
        padding: 0 5vw 56px;
    }

    .quote-card {
        padding: 40px 5vw 36px;
    }
}

@media screen and (max-width: 767px) {
    .quote-options,
    .quote-grid {
        grid-template-columns: 1fr;
    }

    .quote-title {
        font-size: 26px;
    }

    .quote-summary__row {
        grid-template-columns: 1fr auto;
    }

    .quote-summary dd {
        grid-column: 1 / -1;
    }

    .quote-nav {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .quote-button,
    .quote-button--ghost {
        justify-content: center;
        margin-right: 0;
        width: 100%;
    }
}

/* The whole step panel animates in; respect reduced-motion visitors. */
@media (prefers-reduced-motion: reduce) {
    .quote-panel {
        animation: none;
    }
}
