:root {
    --yms-quote-ink: #211914;
    --yms-quote-muted: #6d6158;
    --yms-quote-brand: #a35f32;
    --yms-quote-brand-dark: #75401f;
    --yms-quote-paper: #fffdf9;
    --yms-quote-wash: #f4eee8;
    --yms-quote-line: #dfd4cb;
    --yms-quote-focus: #1559a6;
    --yms-quote-success: #315e46;
}

.yms-quote-page {
    overflow: hidden;
    background: var(--yms-quote-paper);
}

.yms-quote {
    color: var(--yms-quote-ink);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.65;
}

.yms-quote *,
.yms-quote *::before,
.yms-quote *::after {
    box-sizing: border-box;
}

.yms-quote img {
    max-width: 100%;
}

.yms-quote__hero,
.yms-quote__intro,
.yms-quote__shell,
.yms-quote__after {
    width: min(100% - 48px, 1180px);
    margin-inline: auto;
}

.yms-quote__hero {
    display: grid;
    min-height: 720px;
    padding: 86px 0 70px;
    align-items: center;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr);
    gap: clamp(44px, 7vw, 92px);
}

.yms-quote__hero-copy {
    max-width: 680px;
}

.yms-quote__eyebrow {
    margin: 0 0 14px;
    color: var(--yms-quote-brand);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .15em;
    line-height: 1.3;
    text-transform: uppercase;
}

.yms-quote__hero h1 {
    max-width: 720px;
    margin: 0 0 24px;
    color: var(--yms-quote-ink);
    font-family: var(--thm-font-2, Georgia, serif);
    font-size: clamp(44px, 5.2vw, 72px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.01;
}

.yms-quote__hero-copy > p:not(.yms-quote__eyebrow) {
    max-width: 640px;
    margin: 0;
    color: var(--yms-quote-muted);
    font-size: clamp(17px, 1.45vw, 20px);
}

.yms-quote__hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.yms-quote__hero-points li {
    position: relative;
    padding-left: 19px;
    color: #42352d;
    font-size: 13px;
    font-weight: 750;
}

.yms-quote__hero-points li::before {
    position: absolute;
    left: 0;
    color: var(--yms-quote-brand);
    content: "\2713";
    font-weight: 900;
}

.yms-quote__hero-media {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 2px 48px 2px 2px;
    background: #ded1c5;
    box-shadow: 0 36px 90px rgba(65, 39, 22, .18);
}

.yms-quote__hero-media::after {
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, .58);
    content: "";
    pointer-events: none;
}

.yms-quote__hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yms-quote__hero-media figcaption {
    position: absolute;
    z-index: 2;
    right: 22px;
    bottom: 22px;
    left: 22px;
    max-width: 330px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(28, 19, 14, .78);
    color: rgba(255, 255, 255, .92);
    font-size: 12px;
    line-height: 1.45;
    backdrop-filter: blur(8px);
}

.yms-quote__intro {
    max-width: 790px;
    padding: 48px 0 42px;
    text-align: center;
}

.yms-quote__intro h2,
.yms-quote__after h2 {
    margin: 0 0 16px;
    color: var(--yms-quote-ink);
    font-family: var(--thm-font-2, Georgia, serif);
    font-size: clamp(29px, 3vw, 42px);
    letter-spacing: -.025em;
    line-height: 1.12;
}

.yms-quote__intro > p:last-child,
.yms-quote__after > p {
    margin: 0;
    color: var(--yms-quote-muted);
    font-size: 17px;
}

.yms-quote__shell {
    max-width: 1080px;
    margin-bottom: 92px;
    scroll-margin-top: 92px;
    overflow: hidden;
    border: 1px solid var(--yms-quote-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(63, 39, 25, .1);
}

.yms-quote__progress {
    padding: 28px clamp(24px, 4vw, 48px) 25px;
    border-bottom: 1px solid var(--yms-quote-line);
    background: #fbf7f2;
}

.yms-quote__progress-heading {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--yms-quote-ink);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.yms-quote__progress-label {
    color: var(--yms-quote-brand);
}

.yms-quote__progress-steps {
    display: grid;
    margin: 0 0 18px;
    padding: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    list-style: none;
}

.yms-quote__progress-steps li {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: #8b817a;
}

.yms-quote__progress-steps li:not(:last-child)::after {
    position: absolute;
    z-index: 0;
    top: 14px;
    right: 8px;
    left: 38px;
    height: 1px;
    background: #ddd2c9;
    content: "";
}

.yms-quote__progress-steps span {
    position: relative;
    z-index: 1;
    display: inline-grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border: 1px solid #d7cbc2;
    border-radius: 50%;
    place-items: center;
    background: #fff;
    color: #796d65;
    font-size: 12px;
    font-weight: 850;
}

.yms-quote__progress-steps em {
    position: relative;
    z-index: 1;
    padding-right: 8px;
    overflow: hidden;
    background: #fbf7f2;
    font-size: 11px;
    font-style: normal;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yms-quote__progress-steps li.is-complete span {
    border-color: var(--yms-quote-success);
    background: var(--yms-quote-success);
    color: #fff;
}

.yms-quote__progress-steps li.is-complete:not(:last-child)::after {
    background: var(--yms-quote-success);
}

.yms-quote__progress-steps li.is-active {
    color: var(--yms-quote-ink);
}

.yms-quote__progress-steps li.is-active span {
    border-color: var(--yms-quote-brand);
    background: var(--yms-quote-brand);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(163, 95, 50, .1);
}

.yms-quote__progress-track {
    display: block;
    width: 100%;
    height: 4px;
    overflow: hidden;
    border-radius: 99px;
    background: #e9dfd7;
}

.yms-quote__progress-track span {
    display: block;
    width: 20%;
    height: 100%;
    border-radius: inherit;
    background: var(--yms-quote-brand);
    transition: width .22s ease;
}

.yms-quote__notice {
    margin: 28px clamp(24px, 5vw, 58px) 0;
    padding: 14px 16px;
    border-left: 4px solid #a52d2d;
    border-radius: 4px;
    background: #fff1f1;
    color: #712020;
}

.yms-quote__form {
    padding: clamp(30px, 5vw, 58px) clamp(24px, 6vw, 70px) 0;
}

.yms-quote__honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.yms-quote__steps {
    position: relative;
    min-height: 0;
    overflow: hidden;
    transition: height .2s ease;
}

.yms-quote__step {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.yms-quote__step:focus {
    outline: 0;
}

.yms-quote__step + .yms-quote__step {
    margin-top: 42px;
    padding-top: 42px;
    border-top: 1px solid var(--yms-quote-line);
}

.yms-quote--enhanced .yms-quote__step + .yms-quote__step {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.yms-quote__step legend {
    width: 100%;
    margin: 0 0 10px;
    padding: 0;
    color: var(--yms-quote-ink);
    font-family: var(--thm-font-2, Georgia, serif);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.16;
}

.yms-quote__step > p {
    max-width: 730px;
    margin: 0 0 26px;
    color: var(--yms-quote-muted);
}

.yms-quote__choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.yms-quote__choice {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.yms-quote__choice input {
    position: absolute;
    opacity: 0;
}

.yms-quote__choice span {
    position: relative;
    display: block;
    height: 100%;
    min-height: 132px;
    padding: 22px 48px 22px 22px;
    border: 1px solid var(--yms-quote-line);
    border-radius: 10px;
    background: var(--yms-quote-paper);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.yms-quote__choice span::after {
    position: absolute;
    top: 20px;
    right: 20px;
    display: grid;
    width: 22px;
    height: 22px;
    border: 1px solid #d4c8bf;
    border-radius: 50%;
    place-items: center;
    color: transparent;
    content: "\2713";
    font-size: 12px;
    font-weight: 900;
}

.yms-quote__choice strong,
.yms-quote__choice small {
    display: block;
}

.yms-quote__choice strong {
    margin-bottom: 6px;
    color: var(--yms-quote-ink);
    font-size: 17px;
}

.yms-quote__choice small {
    color: var(--yms-quote-muted);
    font-size: 14px;
    line-height: 1.5;
}

.yms-quote__choice input:checked + span {
    border-color: var(--yms-quote-brand);
    background: #fffaf5;
    box-shadow: 0 9px 28px rgba(112, 65, 34, .1);
    transform: translateY(-2px);
}

.yms-quote__choice input:checked + span::after {
    border-color: var(--yms-quote-brand);
    background: var(--yms-quote-brand);
    color: #fff;
}

.yms-quote__choice input:focus-visible + span,
.yms-quote input:focus-visible,
.yms-quote select:focus-visible,
.yms-quote textarea:focus-visible,
.yms-quote button:focus-visible,
.yms-quote a:focus-visible,
.yms-quote summary:focus-visible {
    outline: 3px solid var(--yms-quote-focus);
    outline-offset: 3px;
}

.yms-quote__branch,
.yms-quote__field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.yms-quote__field,
.yms-quote__field-row {
    margin-top: 22px;
}

.yms-quote__field-row .yms-quote__field,
.yms-quote__branch .yms-quote__field {
    margin-top: 0;
}

.yms-quote__field-row--dimensions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.yms-quote__field label {
    display: block;
    margin: 0 0 7px;
    color: var(--yms-quote-ink);
    font-size: 14px;
    font-weight: 800;
}

.yms-quote input:not([type="radio"]):not([type="checkbox"]),
.yms-quote select,
.yms-quote textarea {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #cfc2b8;
    border-radius: 7px;
    background: #fff;
    color: var(--yms-quote-ink);
    font: inherit;
    box-shadow: 0 1px 0 rgba(36, 24, 16, .02);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.yms-quote input:not([type="radio"]):not([type="checkbox"]):hover,
.yms-quote select:hover,
.yms-quote textarea:hover {
    border-color: #ad9b8d;
}

.yms-quote textarea {
    min-height: 150px;
    resize: vertical;
}

.yms-quote input[type="file"] {
    padding: 12px;
    background: var(--yms-quote-wash);
}

.yms-quote__field small {
    display: block;
    margin-top: 7px;
    color: var(--yms-quote-muted);
    font-size: 13px;
}

.yms-quote [aria-invalid="true"] {
    border-color: #a52d2d !important;
    box-shadow: 0 0 0 2px rgba(165, 45, 45, .12);
}

.yms-quote__consent {
    display: grid;
    margin-top: 28px;
    align-items: start;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 11px;
    color: var(--yms-quote-muted);
    cursor: pointer;
}

.yms-quote__consent input {
    width: 18px;
    height: 18px;
    margin: 4px 0 0;
}

.yms-quote__actions {
    display: flex;
    min-height: 92px;
    margin-top: 38px;
    padding: 22px 0 26px;
    border-top: 1px solid var(--yms-quote-line);
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.yms-quote__actions > p {
    max-width: 410px;
    margin: 0;
    color: var(--yms-quote-muted);
    font-size: 13px;
    line-height: 1.45;
}

.yms-quote__action-buttons,
.yms-quote__success-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.yms-quote__button {
    display: inline-flex;
    min-height: 50px;
    padding: 13px 24px;
    border: 1px solid var(--yms-quote-brand);
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    background: var(--yms-quote-brand);
    color: #fff !important;
    font: inherit;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(126, 68, 31, .13);
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.yms-quote__button:hover {
    border-color: var(--yms-quote-brand-dark);
    background: var(--yms-quote-brand-dark);
    transform: translateY(-1px);
}

.yms-quote__button--secondary {
    border-color: var(--yms-quote-line);
    background: transparent;
    color: var(--yms-quote-ink) !important;
    box-shadow: none;
}

.yms-quote__button--secondary:hover {
    border-color: var(--yms-quote-ink);
    background: var(--yms-quote-ink);
    color: #fff !important;
}

.yms-quote__button:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
}

.yms-quote__after {
    max-width: 860px;
    padding: 0 0 96px;
}

.yms-quote__faq {
    margin-top: 34px;
    border-top: 1px solid var(--yms-quote-line);
}

.yms-quote__faq details {
    border-bottom: 1px solid var(--yms-quote-line);
}

.yms-quote__faq summary {
    padding: 20px 4px;
    color: var(--yms-quote-ink);
    font-weight: 800;
    cursor: pointer;
}

.yms-quote__faq details p {
    margin: 0;
    padding: 0 4px 22px;
    color: var(--yms-quote-muted);
}

.yms-quote__success {
    padding: 58px clamp(24px, 5vw, 62px);
    text-align: center;
}

.yms-quote__success-reference {
    display: block;
    margin: 8px 0 18px;
    color: var(--yms-quote-ink);
    font-size: clamp(32px, 5vw, 54px);
    letter-spacing: -.03em;
}

.yms-quote__success > p:not(.yms-quote__eyebrow) {
    max-width: 650px;
    margin: 0 auto;
    color: var(--yms-quote-muted);
}

.yms-quote__success-actions {
    margin-top: 28px;
    justify-content: center;
}

[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .yms-quote__hero {
        min-height: auto;
        padding-top: 108px;
        grid-template-columns: 1fr;
    }

    .yms-quote__hero-copy {
        max-width: 760px;
    }

    .yms-quote__hero-media {
        width: min(100%, 600px);
        aspect-ratio: 5 / 4;
        justify-self: center;
        border-radius: 2px 34px 2px 2px;
    }

    .yms-quote__hero-media img {
        object-position: center 63%;
    }

    .yms-quote__field-row--dimensions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .yms-quote__progress-steps em {
        font-size: 10px;
    }
}

@media (max-width: 680px) {
    .yms-quote__hero,
    .yms-quote__intro,
    .yms-quote__shell,
    .yms-quote__after {
        width: min(100% - 28px, 1180px);
    }

    .yms-quote__hero {
        padding: 88px 0 48px;
        gap: 30px;
    }

    .yms-quote__hero h1 {
        font-size: clamp(38px, 11vw, 52px);
    }

    .yms-quote__hero-points {
        display: grid;
        gap: 7px;
    }

    .yms-quote__hero-media {
        aspect-ratio: 4 / 4.6;
    }

    .yms-quote__hero-media figcaption {
        right: 14px;
        bottom: 14px;
        left: 14px;
    }

    .yms-quote__intro {
        padding: 48px 0 30px;
        text-align: left;
    }

    .yms-quote__shell {
        margin-bottom: 60px;
        border-radius: 12px;
    }

    .yms-quote__progress {
        padding: 22px 18px 20px;
    }

    .yms-quote__progress-heading {
        margin-bottom: 16px;
    }

    .yms-quote__progress-steps li {
        justify-content: center;
    }

    .yms-quote__progress-steps li:not(:last-child)::after {
        right: -4px;
        left: calc(50% + 18px);
    }

    .yms-quote__progress-steps em {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .yms-quote__form {
        padding: 30px 18px 0;
    }

    .yms-quote__choice-grid,
    .yms-quote__branch,
    .yms-quote__field-row,
    .yms-quote__field-row--dimensions {
        grid-template-columns: 1fr;
    }

    .yms-quote__choice span {
        min-height: auto;
    }

    .yms-quote__actions {
        min-height: 0;
        align-items: stretch;
        flex-direction: column;
    }

    .yms-quote__actions > p {
        max-width: none;
        text-align: center;
    }

    .yms-quote__action-buttons,
    .yms-quote__success-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .yms-quote__button {
        width: 100%;
    }

    .yms-quote__after {
        padding-bottom: 70px;
    }
}

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