.DIG-error {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    position: relative;
    background-color: #eaf6ff;
}
.DIG-error .primary-navigation {
    position: relative;
    width: 100%;
    height: 84px;
    background-color: #00225a;
}
.DIG-error .overlap-group {
    position: relative;
    width: 120px;
    height: 100px;
    left: 60px;
    background-color: #da291c;
    border-radius: 0px 0px 15px 15px;
}
.DIG-error .AAA-logo {
    position: absolute;
    width: 85px;
    height: 52px;
    top: 32px;
    left: 19px;
}
.DIG-error .frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: 1;
    align-self: stretch;
    width: 100%;
    flex-grow: 1;
}
.DIG-error .content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 38px;
    position: relative;
    background-color: #ffffff;
    border-radius: 30px;
    padding: 40px;
}
.DIG-error .body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 38px;
    position: relative;
}
.DIG-error .we-ll-be-right-back {
    position: relative;
    width: 514px;
    margin-top: -1px;
    font-family: "Smart", Helvetica, Arial, sans-serif;
    font-weight: 500;
    color: #000000;
    font-size: 56px;
    letter-spacing: -1.68px;
    line-height: 64px;
}
.DIG-error .we-re-currently {
    position: relative;
    align-self: stretch;
    font-family: "Smart", Helvetica, Arial, sans-serif;
    font-weight: 400;
    color: #000000;
    font-size: 16px;
    letter-spacing: -0.32px;
    line-height: 24px;
}
.DIG-error .contact {
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
}
.DIG-error .roadside-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 10px;
    position: relative;
    flex: 0 0 auto;
    background-color: #da291c;
    border-radius: 30px;
    text-decoration: none;
}
.DIG-error .label {
    display: inline-flex;
    height: 34px;
    align-items: center;
    gap: 10px;
    padding: 0px 10px;
    position: relative;
    flex: 0 0 auto;
}
.DIG-error .tow-truck {
    position: relative;
    width: 32px;
    height: 32px;
}
.DIG-error .text-wrapper {
    position: relative;
    width: fit-content;
    font-family: "Smart", Helvetica, Arial, sans-serif;
    font-weight: 500;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: -0.28px;
    line-height: 24px;
    white-space: nowrap;
}
.DIG-error .customer-service .div {
    font-family: "Smart-Medium", Helvetica, Arial, sans-serif;
    font-weight: 400;
    color: #000000;
    font-size: 16px;
    letter-spacing: -0.32px;
    line-height: 24px;
}
.DIG-error .span { font-weight: 500; }
.DIG-error .text-wrapper-2 { font-weight: 400; }
.DIG-error .under-construction { width: 300px; }

/* Base reset for mobile */
html, body { margin: 0; padding: 0; }
* { box-sizing: border-box; }

/* ===== Layout ===== */
.DIG-error {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    position: relative;
    background-color: #eaf6ff;
    overflow-x: hidden; /* prevent horizontal cut-off */
}

.DIG-error .primary-navigation {
    position: relative;
    width: 100%;
    height: 84px;
    background-color: #00225a;
}

.DIG-error .overlap-group {
    position: relative;
    width: 120px;
    height: 100px;
    left: 60px;
    background-color: #da291c;
    border-radius: 0 0 15px 15px;
}

.DIG-error .AAA-logo {
    position: absolute;
    width: 85px;
    height: 52px;
    top: 32px;
    left: 19px;
}

.DIG-error .frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: 1;
    align-self: stretch;
    width: 100%;
    flex-grow: 1;
    padding: 16px;
}

.DIG-error .content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 38px;
    position: relative;
    background-color: #ffffff;
    border-radius: 30px;
    padding: 40px;
    width: 100%;
    max-width: 1120px;
}

.DIG-error .body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 38px;
    position: relative;
    min-width: 0;
}

/* ===== Typography ===== */
.DIG-error .we-ll-be-right-back {
    position: relative;
    width: 100%;
    margin-top: -1px;
    font-family: "Smart", Helvetica, Arial, sans-serif;
    font-weight: 500;
    color: #000000;
    font-size: clamp(28px, 8vw, 56px);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.DIG-error .we-re-currently {
    position: relative;
    align-self: stretch;
    font-family: "Smart", Helvetica, Arial, sans-serif;
    font-weight: 400;
    color: #000000;
    font-size: clamp(14px, 3.6vw, 16px);
    letter-spacing: -0.32px;
    line-height: 1.5;
}

/* ===== Contact row ===== */
.DIG-error .contact {
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
    flex-wrap: wrap;
}

.DIG-error .roadside-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 10px;
    position: relative;
    flex: 0 0 auto;
    background-color: #da291c;
    border-radius: 30px;
    text-decoration: none;
}

.DIG-error .label {
    display: inline-flex;
    height: 34px;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    position: relative;
    flex: 0 0 auto;
}

.DIG-error .tow-truck { width: 32px; height: 32px; }

.DIG-error .text-wrapper {
    position: relative;
    width: fit-content;
    font-family: "Smart", Helvetica, Arial, sans-serif;
    font-weight: 500;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: -0.28px;
    line-height: 24px;
    white-space: nowrap;
}

.DIG-error .customer-service { position: relative; }
.DIG-error .customer-service .div {
    font-family: "Smart-Medium", Helvetica, Arial, sans-serif;
    font-weight: 400;
    color: #000000;
    font-size: 16px;
    letter-spacing: -0.32px;
    line-height: 24px;
    margin: 0;
}

.DIG-error .span { font-weight: 500; }
.DIG-error .text-wrapper-2 { font-weight: 400; }

/* Image scales down on small screens */
.DIG-error .under-construction {
    width: min(60vw, 300px);
    height: auto;
}

/* ===== Responsive ===== */

@media (max-width: 1024px) {
    .DIG-error .content { gap: 28px; padding: 32px; }
}

/* Mobile: stack content and put phones directly under the Roadside button */
@media (max-width: 768px) {
    .DIG-error .primary-navigation { height: 72px; }
    .DIG-error .overlap-group { width: 96px; height: 80px; left: 20px; }
    .DIG-error .AAA-logo { top: 26px; left: 16px; width: 72px; height: 44px; }

    .DIG-error .content {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding: 24px;
    }

    .DIG-error .body { gap: 20px; }

    /* Make the Roadside CTA full-width; phones appear directly below */
    .DIG-error .contact {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .DIG-error .roadside-button {
        width: 100%;
        padding: 12px 14px;
    }
    .DIG-error .label {
        height: auto;
        padding: 6px 10px;
    }
    .DIG-error .tow-truck { width: 24px; height: 24px; }

    /* Keep label + number on one line when possible; stack gracefully if narrow */
    .DIG-error .customer-service { width: 100%; }
    .DIG-error .customer-service .div {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    .DIG-error .span { margin-right: 0; }
    .DIG-error .text-wrapper-2 { white-space: nowrap; }

    .DIG-error .under-construction { width: min(80vw, 280px); }
}

@media (max-width: 420px) {
    .DIG-error .content { padding: 18px; border-radius: 20px; }
    .DIG-error .we-re-currently { font-size: 14px; }
    .DIG-error .under-construction { width: min(88vw, 260px); }
}
