#ys-emergency-diagnosis,
#ys-emergency-diagnosis * {
    box-sizing: border-box;
    font-family: "Lexend Deca", sans-serif;
}

#ys-emergency-diagnosis .fas {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

body.ys-ed-open {
    overflow: hidden;
}

#ys-emergency-diagnosis[hidden],
.ys-ed__desktop-launcher[hidden] {
    display: none !important;
}

#ys-emergency-diagnosis [hidden] {
    display: none !important;
}

#ys-emergency-diagnosis {
    --ys-ed-navy: #092442;
    --ys-ed-blue: #1674df;
    --ys-ed-orange: #ffad00;
    --ys-ed-ink: #173550;
    --ys-ed-muted: #687f94;
    --ys-ed-line: #d9e4ee;
    --ys-ed-soft: #f3f7fb;
    position: fixed;
    inset: 0;
    z-index: 10050;
    color: var(--ys-ed-ink);
    font-family: "Lexend Deca", sans-serif;
}

#ys-emergency-diagnosis .ys-ed__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(3, 20, 38, .62);
}

#ys-emergency-diagnosis .ys-ed__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-width: 0;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    animation: ys-ed-enter .18s ease-out both;
}

#ys-emergency-diagnosis .ys-ed__header {
    min-height: 64px;
    padding: max(8px, env(safe-area-inset-top)) 14px 8px;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    background: var(--ys-ed-navy);
    color: #fff;
}

#ys-emergency-diagnosis .ys-ed__header strong {
    grid-column: 2;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    letter-spacing: -.2px;
}

#ys-emergency-diagnosis .ys-ed__header [data-ys-ed-back] {
    grid-column: 1;
    grid-row: 1;
}

#ys-emergency-diagnosis .ys-ed__header [data-ys-ed-close] {
    grid-column: 3;
    grid-row: 1;
}

#ys-emergency-diagnosis .ys-ed__icon-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
}

#ys-emergency-diagnosis .ys-ed__icon-button svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#ys-emergency-diagnosis .ys-ed__progress {
    height: 3px;
    flex: 0 0 3px;
    background: #d7e1eb;
}

#ys-emergency-diagnosis .ys-ed__progress span {
    display: block;
    width: 18%;
    height: 100%;
    background: var(--ys-ed-orange);
    transition: width .18s ease;
}

#ys-emergency-diagnosis .ys-ed__body {
    flex: 1;
    min-width: 0;
    min-height: 0;
    padding: 22px 18px 14px;
    overflow: auto;
    overscroll-behavior: contain;
    background: linear-gradient(180deg, #f7fafe 0, #fff 150px);
}

#ys-emergency-diagnosis .ys-ed__body,
#ys-emergency-diagnosis .ys-ed__footer {
    scrollbar-width: thin;
}

#ys-emergency-diagnosis .ys-ed__eyebrow {
    max-width: 680px;
    margin: 0 auto 15px;
    color: var(--ys-ed-blue);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#ys-emergency-diagnosis .ys-ed__content,
#ys-emergency-diagnosis .ys-ed__step {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

#ys-emergency-diagnosis .ys-ed__step {
    animation: ys-ed-step .18s ease both;
}

#ys-emergency-diagnosis .ys-ed__phase {
    display: inline-flex;
    margin-bottom: 7px;
    color: #d68100;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#ys-emergency-diagnosis h2 {
    margin: 0;
    color: var(--ys-ed-ink);
    font-size: clamp(25px, 7vw, 33px);
    font-weight: 600;
    line-height: 1.13;
    letter-spacing: -.7px;
    overflow-wrap: anywhere;
    outline: none;
}

#ys-emergency-diagnosis .ys-ed__subtitle {
    margin: 9px 0 20px;
    color: var(--ys-ed-muted);
    font-size: 15px;
    line-height: 1.5;
}

#ys-emergency-diagnosis .ys-ed__location-card {
    margin-top: 21px;
    padding: 17px;
    display: grid;
    gap: 15px;
    border: 1px solid var(--ys-ed-line);
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(16, 49, 78, .07);
}

#ys-emergency-diagnosis .ys-ed__location-icon,
#ys-emergency-diagnosis .ys-ed__option-icon,
#ys-emergency-diagnosis .ys-ed__result-icon {
    display: grid;
    place-items: center;
    color: var(--ys-ed-blue);
    background: #eaf4ff;
}

#ys-emergency-diagnosis .ys-ed__location-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
}

#ys-emergency-diagnosis .ys-ed__location-icon svg,
#ys-emergency-diagnosis .ys-ed__option-icon svg,
#ys-emergency-diagnosis .ys-ed__result-icon svg,
#ys-emergency-diagnosis .ys-ed__result-location svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#ys-emergency-diagnosis .ys-ed__location-icon i,
#ys-emergency-diagnosis .ys-ed__option-icon i {
    font-size: 21px;
    line-height: 1;
}

#ys-emergency-diagnosis .ys-ed__result-icon i {
    font-size: 31px;
    line-height: 1;
}

#ys-emergency-diagnosis .ys-ed__result-location i {
    font-size: 17px;
}

#ys-emergency-diagnosis .ys-ed__field {
    display: grid;
    gap: 7px;
    color: var(--ys-ed-ink);
    font-size: 13px;
    font-weight: 500;
}

#ys-emergency-diagnosis .ys-ed__field select {
    width: 100%;
    min-height: 52px;
    padding: 0 42px 0 15px;
    border: 1px solid #cbd9e6;
    border-radius: 14px;
    color: var(--ys-ed-ink);
    background-color: #fff;
    font: inherit;
    font-size: 16px;
}

#ys-emergency-diagnosis .ys-ed__field select:disabled {
    color: #8fa0af;
    background-color: #f1f5f8;
}

#ys-emergency-diagnosis .ys-ed__primary {
    width: 100%;
    min-height: 54px;
    margin-top: 18px;
    padding: 13px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border: 0;
    border-radius: 15px;
    color: #fff;
    background: var(--ys-ed-blue);
    box-shadow: 0 10px 24px rgba(22, 116, 223, .2);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

#ys-emergency-diagnosis .ys-ed__primary:disabled {
    color: #8b9dad;
    background: #e3eaf0;
    box-shadow: none;
    cursor: default;
}

#ys-emergency-diagnosis .ys-ed__options {
    margin-top: 20px;
    display: grid;
    gap: 10px;
}

#ys-emergency-diagnosis .ys-ed__option {
    width: 100%;
    min-height: 62px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--ys-ed-line);
    border-radius: 17px;
    color: var(--ys-ed-ink);
    background: #fff;
    box-shadow: 0 5px 16px rgba(16, 49, 78, .035);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, transform .16s ease, background-color .16s ease;
}

#ys-emergency-diagnosis .ys-ed__option:active {
    transform: scale(.985);
}

#ys-emergency-diagnosis .ys-ed__option-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
}

#ys-emergency-diagnosis .ys-ed__option-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

#ys-emergency-diagnosis .ys-ed__option-copy strong {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}

#ys-emergency-diagnosis .ys-ed__option-copy small {
    color: var(--ys-ed-muted);
    font-size: 12px;
    line-height: 1.35;
}

#ys-emergency-diagnosis .ys-ed__chevron {
    margin-left: auto;
    color: #9aabba;
    font-size: 27px;
    line-height: 1;
}

#ys-emergency-diagnosis .ys-ed__result {
    padding: 23px 0 10px;
    text-align: center;
}

#ys-emergency-diagnosis .ys-ed__result-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 17px;
    border-radius: 22px;
    color: #fff;
    background: #20a76b;
}

#ys-emergency-diagnosis .ys-ed__result-icon svg {
    width: 34px;
    height: 34px;
    stroke-width: 2.4;
}

#ys-emergency-diagnosis .ys-ed__service {
    margin-top: 17px;
    color: var(--ys-ed-navy);
    font-size: 25px;
    font-weight: 600;
}

#ys-emergency-diagnosis .ys-ed__result-location {
    margin: 11px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--ys-ed-muted);
    font-size: 15px;
    font-weight: 500;
}

#ys-emergency-diagnosis .ys-ed__result-location svg {
    width: 19px;
    height: 19px;
    color: var(--ys-ed-orange);
}

#ys-emergency-diagnosis .ys-ed__reason {
    max-width: 510px;
    margin: 20px auto 0;
    padding: 15px;
    border: 1px solid #ffd88b;
    border-radius: 15px;
    color: #6f4a05;
    background: #fff8e9;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

#ys-emergency-diagnosis .ys-ed__disclaimer {
    margin: 14px auto 0;
    color: #8393a1;
    font-size: 11px;
    line-height: 1.45;
}

#ys-emergency-diagnosis .ys-ed__error {
    margin: 16px 0;
    padding: 12px 14px;
    border: 1px solid #efb2b2;
    border-radius: 12px;
    color: #8f2929;
    background: #fff4f4;
    font-size: 13px;
}

#ys-emergency-diagnosis .ys-ed__empty {
    padding-top: 35px;
    text-align: center;
}

#ys-emergency-diagnosis .ys-ed__empty .ys-ed__option-icon {
    margin: 0 auto 18px;
}

#ys-emergency-diagnosis .ys-ed__empty p {
    color: var(--ys-ed-muted);
}

#ys-emergency-diagnosis .ys-ed__footer {
    min-height: 48px;
    padding: 6px 18px max(9px, env(safe-area-inset-bottom));
    display: flex;
    justify-content: center;
    background: #fff;
}

#ys-emergency-diagnosis .ys-ed__restart {
    min-height: 40px;
    padding: 7px 14px;
    border: 0;
    color: var(--ys-ed-muted);
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

#ys-emergency-diagnosis button:focus-visible,
#ys-emergency-diagnosis select:focus-visible,
#ys-emergency-diagnosis a:focus-visible,
.ys-ed__desktop-launcher:focus-visible {
    outline: 3px solid #65aaf5;
    outline-offset: 2px;
}

.ys-ed__desktop-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9970;
    min-height: 50px;
    padding: 0 19px;
    display: none;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 16px;
    color: #102e49;
    background: #ffb100;
    box-shadow: 0 12px 30px rgba(8, 36, 66, .22);
    font: inherit;
    font-family: "Lexend Deca", sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.ys-ed__desktop-launcher svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (min-width: 769px) {
    #ys-emergency-diagnosis {
        padding: 28px;
        display: grid;
        place-items: center;
    }

    #ys-emergency-diagnosis .ys-ed__dialog {
        width: min(700px, calc(100vw - 56px));
        height: auto;
        max-height: min(820px, calc(100vh - 56px));
        border-radius: 24px;
        box-shadow: 0 30px 80px rgba(4, 23, 43, .3);
    }

    #ys-emergency-diagnosis .ys-ed__header {
        min-height: 70px;
        padding: 11px 16px;
    }

    #ys-emergency-diagnosis .ys-ed__body {
        padding: 27px 34px 18px;
    }

    #ys-emergency-diagnosis .ys-ed__options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #ys-emergency-diagnosis .ys-ed__option {
        min-height: 76px;
    }

    #ys-emergency-diagnosis .ys-ed__location-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: end;
    }

    .ys-ed__desktop-launcher {
        display: flex;
    }
}

@media (max-width: 380px) {
    #ys-emergency-diagnosis .ys-ed__body {
        padding-inline: 14px;
    }

    #ys-emergency-diagnosis h2 {
        font-size: 24px;
    }

    #ys-emergency-diagnosis .ys-ed__option {
        min-height: 58px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #ys-emergency-diagnosis .ys-ed__dialog,
    #ys-emergency-diagnosis .ys-ed__step,
    #ys-emergency-diagnosis .ys-ed__progress span,
    #ys-emergency-diagnosis .ys-ed__option {
        animation: none;
        transition: none;
    }
}

@keyframes ys-ed-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ys-ed-step {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: translateX(0); }
}
