/* The guided help tool and its progressive-enhancement repair dialog. */
/* Let the non-modal fallback dialog appear above the sticky site header too. */
body.support-experience main { z-index: auto; }
body.support-experience [hidden] { display: none !important; }
#support-start.support-intro { background: radial-gradient(ellipse at 88% 10%, #4b2834, transparent 58%), #211a16; color: #f6f1ea; padding: clamp(8rem, 10vw, 10rem) 0 4.5rem; }
body.support-experience .support-intro-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
#support-start h1 { color: #fffaf1; font-size: clamp(2.6rem, 4.8vw, 4.6rem); line-height: 1.03; letter-spacing: -.055em; text-transform: none; margin: .8rem 0 1rem; }
body.support-experience .support-intro .lead { color: #d5cdc5; max-width: 54ch; font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.4rem; }
body.support-experience .support-intro .kicker { color: #e0b478; }
#support-start .button-primary { color: #211a16; background: #ffeca3; border-color: #ffeca3; gap: .75rem; }
.help-journey { margin: 0; padding: 1.5rem 1.7rem; list-style: none; border: 1px solid #ffffff24; border-radius: 22px; background: #ffffff06; }
.help-journey li { display: flex; align-items: flex-start; gap: 1.05rem; padding: 1.2rem 0; }
.help-journey li + li { border-top: 1px solid #ffffff1c; }
.help-journey li > span { font-size: .8rem; color: #ffeca3; border: 1px solid #ffe8a35c; border-radius: 50%; padding: .5rem; line-height: 1; }
.help-journey strong { color: #fffaf1; font-size: 1rem; }
body.support-experience .help-journey p { margin: .25rem 0 0; color: #cbbeb4; font-size: .87rem; line-height: 1.5; }
#machine-help { scroll-margin-top: 100px; background: #f6f1ea; }
.help-section-heading, .help-selected-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.7rem; }
body.support-experience #machine-help h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); line-height: 1.12; letter-spacing: -.04em; text-transform: none; margin: .4rem 0 0; }
.help-section-heading > p { color: #756357; max-width: 27ch; font-size: .93rem; }
.help-machine-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.help-machine-card { display: flex; flex-direction: column; color: #231c17; text-decoration: none; border: 1px solid #ded4c8; background: #fffcf7; border-radius: 18px; padding: 1rem 1.15rem; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; min-width: 0; }
.help-machine-card:hover, .help-machine-card:focus-visible { color: #231c17; border-color: #a97b49; box-shadow: 0 10px 28px #42312012; transform: translateY(-4px); }
.help-machine-image { display: flex; height: 142px; align-items: center; justify-content: center; margin-bottom: .5rem; }
.help-machine-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.help-machine-name { font-weight: 750; font-size: 1rem; line-height: 1.35; }
.help-machine-model { color: #7a6556; font-size: .8rem; margin: .25rem 0 .9rem; }
.help-machine-action { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #e8dfd5; padding-top: .75rem; margin-top: auto; font-size: .77rem; font-weight: 650; }
.help-machine-action span { font-size: 1.15rem; }
.help-other-machine { margin-top: 1.5rem; max-width: 60ch; font-size: .9rem; }
.help-other-machine summary { cursor: pointer; text-decoration: underline; text-underline-offset: .25em; color: #6d5542; }
body.support-experience .help-text-link { color: #6b4530; font-weight: 600; font-size: .87rem; text-underline-offset: .25em; }
.help-selected-heading { align-items: center; }
.help-selected-heading h2:focus { outline: none; }
.help-workbench { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); gap: 1.5rem; scroll-margin-top: 115px; }
.help-watch { min-width: 0; }
.help-video-stage { width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #211a16; }
.help-play { display: flex; height: 100%; width: 100%; align-items: center; justify-content: center; flex-direction: column; position: relative; gap: .6rem; color: #fffaf1; text-decoration: none; background: radial-gradient(ellipse at 25% 30%, #69554a, #211a16 80%); font-size: .88rem; font-weight: 650; }
.help-play img { position: absolute; inset: 8% auto 8% 5%; height: 84%; width: 48%; object-fit: contain; opacity: .25; filter: grayscale(1); mix-blend-mode: luminosity; pointer-events: none; }
.help-play > span { z-index: 1; }
.help-play-symbol { display: grid; place-items: center; padding-left: .18rem; width: 70px; height: 70px; border-radius: 50%; border: 1px solid #ffeca3; color: #211a16; background: #ffeca3; font-size: 1.35rem; box-shadow: 0 0 0 10px #ffeca30f; transition: transform .2s ease; }
.help-play:hover, .help-play:focus-visible { color: #fffaf1; }
.help-play:hover .help-play-symbol { transform: scale(1.08); }
.help-video-stage iframe { display: block; width: 100%; height: 100%; border: 0; }
.help-video-caption { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
body.support-experience #machine-help h3 { font-size: 1.35rem; text-transform: none; letter-spacing: -.025em; line-height: 1.3; }
body.support-experience .help-video-caption h3 { margin: .3rem 0; }
.help-video-caption > a { white-space: nowrap; margin-top: .4rem; }
body.support-experience .help-video-privacy { font-size: .76rem; color: #77675b; margin: .6rem 0; }
.help-guide-panel { padding: 1.4rem; background: #fffcf7; border: 1px solid #ded4c8; border-radius: 18px; min-width: 0; }
.help-guide-panel > p { color: #77675b; font-size: .86rem; margin: .3rem 0 1.2rem; }
.help-guide-list { display: grid; gap: .4rem; max-height: 350px; overflow-y: auto; scrollbar-width: thin; padding: 2px; }
.help-guide-list a { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .7rem; padding: .85rem .7rem; border: 1px solid transparent; border-radius: 9px; color: #524438; text-decoration: none; font-size: .86rem; line-height: 1.4; }
.help-guide-number { font-size: .72rem; color: #94816e; }
.help-guide-list a > span:last-child { font-size: .65rem; opacity: .6; }
.help-guide-list a:hover { background: #f6f1ea; }
.help-guide-list a[aria-current] { background: #f8edcf; border-color: #dec591; color: #362619; }
.help-guide-downloads { display: grid; gap: .7rem; margin-top: 1rem; }
.help-next-step { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-top: 2rem; padding: 1.6rem 1.8rem; border-top: 1px solid #d8ccbd; }
.help-next-step p:not(.kicker) { max-width: 61ch; margin: .45rem 0 0; color: #736151; font-size: .9rem; }
.help-next-step .button { flex: 0 0 auto; border: 1px solid #7c5e42; color: #583e28; background: transparent; gap: .6rem; }
.support-care-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; align-items: center; }
body.support-experience .support-care-grid h2 { font-size: 1.9rem; text-transform: none; }
body.support-experience .support-care-grid h3 { font-size: .95rem; text-transform: none; color: #5e4c3c; }
.support-care-contact { display: flex; flex-direction: column; align-items: start; gap: .45rem; border-left: 1px solid #d9cabb; padding-left: 1.7rem; min-width: 0; }
.support-care-phone { color: #281e17; font-size: clamp(1.1rem, 1.8vw, 1.6rem); font-weight: 700; letter-spacing: -.02em; }
.support-care-contact a { overflow-wrap: anywhere; }
body.repair-modal-open { overflow: hidden; }
body.support-experience.support-page #engineer-booking.repair-dialog { position: fixed; z-index: 1100; inset: 0; width: min(760px, calc(100% - 2rem)); max-width: none; max-height: min(900px, calc(100dvh - 3rem)); margin: auto; border: 1px solid #d5c3b0; border-radius: 24px; padding: 0; background: #fffcf7; color: #2a211a; box-shadow: 0 28px 100px #0006; overflow: hidden; isolation: auto; }
body.support-experience.support-page #engineer-booking.repair-dialog::before { content: none; }
#engineer-booking.repair-dialog:not([open]) { display: none; }
#engineer-booking.repair-dialog[open] { display: flex; flex-direction: column; }
.repair-dialog::backdrop { background: #18110ed1; backdrop-filter: blur(7px); }
.repair-dialog-header { display: flex; justify-content: space-between; gap: 1rem; padding: 1.65rem 2rem 1.25rem; border-bottom: 1px solid #e5dbcf; flex-shrink: 0; }
body.support-experience #engineer-booking h2 { color: #2a211a; text-transform: none; font-size: clamp(1.6rem, 3vw, 2.05rem); letter-spacing: -.04em; line-height: 1.2; margin: .35rem 0 .5rem; }
.repair-dialog-header p:not(.kicker) { font-size: .83rem; line-height: 1.6; color: #7a6859; margin: 0; max-width: 62ch; }
.repair-close { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #dfd2c3; border-radius: 50%; text-decoration: none; color: #5a4534; font-size: 1.6rem; line-height: 1; }
.repair-close:hover { background: #f0e5d6; }
.repair-close[aria-disabled="true"] { opacity: .4; cursor: wait; }
.repair-dialog-body { padding: 1.3rem 2rem 0; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.repair-form { margin: 0; }
.repair-progress { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .6rem; padding: 0; margin: 0 0 1.5rem; list-style: none; }
.repair-progress li { display: flex; align-items: center; gap: .5rem; border-bottom: 2px solid #e6dbce; padding-bottom: .8rem; font-size: .8rem; color: #8b7a6d; }
.repair-progress li > span { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #eee6dc; font-size: .7rem; }
.repair-progress li[aria-current] { color: #684329; border-color: #8a6142; font-weight: 700; }
.repair-progress li[aria-current] > span, .repair-progress .is-complete > span { background: #684329; color: #fffaf1; }
.repair-progress .is-complete { border-color: #b79b7b; }
.repair-step-status { color: #9b7755; text-transform: uppercase; font-size: .69rem; font-weight: 700; letter-spacing: .09em; margin: 0 0 .65rem; }
.repair-step { border: 0; padding: 0; margin: 0 0 1.7rem; min-width: 0; }
.repair-step legend { float: left; width: 100%; padding: 0; font-size: 1.35rem; font-weight: 750; color: #3e2d21; line-height: 1.3; letter-spacing: -.025em; }
.repair-step legend:focus { outline: none; }
.repair-step-intro { clear: both; padding-top: .4rem; font-size: .82rem; color: #7a6859; line-height: 1.6; margin: 0 0 1.5rem; }
.repair-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.repair-field-grid label { display: flex; flex-direction: column; gap: .45rem; color: #4e3d30; font-size: .82rem; font-weight: 650; min-width: 0; }
.repair-field-grid .repair-field-full { grid-column: 1 / -1; }
.repair-optional { display: contents; font-weight: 400; color: #88786b; }
.repair-field-grid input, .repair-field-grid select, .repair-field-grid textarea { width: 100%; min-width: 0; min-height: 46px; border: 1px solid #dbcdbd; border-radius: 10px; background: #fff; color: #36271c; padding: .75rem .8rem; font: inherit; font-weight: 400; line-height: 1.4; box-sizing: border-box; box-shadow: none; }
.repair-field-grid textarea { resize: vertical; min-height: 96px; }
.repair-field-grid input:focus, .repair-field-grid select:focus, .repair-field-grid textarea:focus { border-color: #996c3f; outline: 3px solid #ba90482e; outline-offset: 1px; }
.repair-field-grid [aria-invalid="true"] { border-color: #b5364c; }
.repair-contact-note { display: flex; gap: .8rem; align-items: start; padding: 1.15rem; margin-top: 1.5rem; border-radius: 12px; background: #f4eddf; color: #745c41; }
.repair-contact-note > span { font-size: 1.5rem; }
.repair-contact-note p { margin: 0; font-size: .86rem; line-height: 1.7; }
.repair-form-footer { display: flex; gap: 1rem; align-items: center; justify-content: space-between; position: sticky; bottom: 0; padding: 1.15rem 0 1.4rem; background: #fffcf7f5; border-top: 1px solid #e5dbcf; backdrop-filter: blur(10px); z-index: 2; }
.repair-form-footer .button { margin-left: auto; min-height: 46px; font-size: .78rem; gap: .8rem; }
.repair-back { color: #73543b; background: none; border: 0; padding: .7rem 0; font: inherit; font-size: .86rem; cursor: pointer; }
.repair-form-footer button:disabled { opacity: .7; cursor: wait; }
.repair-form-footer .is-sending::after { content: ''; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; width: 1em; height: 1em; animation: repair-spin .8s linear infinite; }
@keyframes repair-spin { to { transform: rotate(360deg); } }
.repair-review { display: grid; gap: .8rem; margin-bottom: 1.3rem; }
.repair-review > section { padding: 1rem; background: #f5eee5; border-radius: 10px; }
.repair-review-heading { display: flex; justify-content: space-between; align-items: center; }
body.support-experience #engineer-booking .repair-review h3 { font-size: .86rem; text-transform: none; color: #533b28; margin: 0; }
.repair-review-heading button { padding: .2rem .4rem; border: 0; color: #775637; background: none; font: inherit; font-size: .76rem; text-decoration: underline; cursor: pointer; }
.repair-review p { white-space: pre-line; overflow-wrap: anywhere; font-size: .83rem; line-height: 1.65; color: #756151; margin: .45rem 0 0; }
.repair-troubleshooting > p { font-size: .86rem; margin-bottom: .7rem; }
.repair-check { display: flex; gap: .7rem; align-items: flex-start; font-size: .82rem; color: #675341; line-height: 1.6; margin: .75rem 0; cursor: pointer; }
.repair-check input { accent-color: #825635; flex: 0 0 auto; width: 17px; height: 17px; margin: .18rem 0 0; }
.repair-guide-context { font-size: .75rem; color: #8a725c; overflow-wrap: anywhere; }
.repair-callout { margin: 1.4rem 0; padding: 1rem 1.15rem; border: 1px solid #e0c99e; border-radius: 10px; background: #faf1de; color: #6c502f; font-size: .79rem; line-height: 1.65; }
.repair-callout p { margin: .5rem 0 0; }
.repair-callout a { color: inherit; text-underline-offset: .2em; }
.repair-consent { margin-top: 1.2rem; }
.repair-error { background: #fff0f0; border: 1px solid #d99090; border-radius: 10px; padding: 1rem; margin-bottom: 1.1rem; color: #8c2939; font-size: .88rem; }
.repair-error p { margin: .3rem 0; }
.repair-success { text-align: center; padding: 2rem .8rem 3rem; }
.repair-success-icon { display: grid; place-items: center; margin: 0 auto 1.5rem; background: #ebf0df; color: #637d3d; width: 76px; height: 76px; font-size: 2rem; border-radius: 50%; }
body.support-experience #engineer-booking .repair-success h3 { font-size: 1.5rem; text-transform: none; }
.repair-success p { max-width: 52ch; color: #7d6755; font-size: .95rem; line-height: 1.8; margin: 1rem auto 1.75rem; }
@media (max-width: 950px) {
    body.support-experience .support-intro-inner { grid-template-columns: 1.25fr 1fr; gap: 2rem; }
    .help-journey { padding: .7rem 1.1rem; }
    .help-workbench { grid-template-columns: minmax(0,1.25fr) minmax(240px,1fr); gap: 1rem; }
    .help-machine-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .support-care-grid { grid-template-columns: 1fr 1fr; }
    .support-care-grid > div:first-child { grid-column: 1 / -1; }
    .support-care-contact { padding: 0; border: 0; }
}
@media (max-width: 699px) {
    body.support-experience .support-intro-inner { grid-template-columns: minmax(0,1fr); }
    .help-journey { display: none; }
    .help-section-heading, .help-selected-heading { align-items: start; flex-direction: column; gap: .7rem; }
    .help-section-heading > p { max-width: none; margin: 0; }
    .help-machine-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
    .help-machine-card { padding: .8rem; border-radius: 13px; }
    .help-machine-image { height: 115px; }
    .help-machine-name { font-size: .86rem; }
    .help-machine-model, .help-machine-action { font-size: .7rem; }
    .help-workbench { grid-template-columns: minmax(0,1fr); }
    .help-guide-panel { order: -1; padding: 1rem; }
    .help-guide-list { max-height: 220px; }
    .help-video-caption { flex-direction: column; gap: .4rem; }
    .help-next-step { padding: 1.4rem 0; flex-direction: column; align-items: start; gap: 1.2rem; }
    .support-care-grid { grid-template-columns: minmax(0,1fr); gap: 1.5rem; }
    .support-care-grid > div:first-child { grid-column: auto; }
    body.support-experience.support-page #engineer-booking.repair-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); border-radius: 18px; }
    .repair-dialog-header { padding: 1.2rem 1rem 1rem; }
    .repair-dialog-body { padding: 1rem 1rem 0; }
    .repair-progress { gap: .35rem; margin-bottom: 1.25rem; }
    .repair-progress li { flex-direction: column; align-items: start; gap: .3rem; font-size: .72rem; }
    .repair-field-grid { grid-template-columns: minmax(0,1fr); }
    .repair-field-grid input, .repair-field-grid select, .repair-field-grid textarea { font-size: 16px; }
    .repair-step legend { font-size: 1.2rem; }
    .repair-form-footer { gap: .5rem; padding-bottom: 1rem; }
    .repair-form-footer .button { padding-inline: 1rem; font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
    .help-machine-card, .help-play-symbol { transition: none; }
    .repair-form-footer .is-sending::after { animation: none; }
}
