/*
 * AliClick 404 page reference UI.
 * Scoped to the dedicated 404 template classes so existing pages remain intact.
 */

/* --------------------------------------------------------------------------
 * 404 hero
 * -------------------------------------------------------------------------- */
.elementor-widget-aliclick_contact_hero:has(.ac404-hero) {
    position: relative;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
}

.elementor-widget-aliclick_contact_hero:has(.ac404-hero) > .elementor-widget-container {
    overflow: visible;
    width: 100%;
    max-width: none;
}

.elementor-widget-aliclick_contact_hero.ac404-width-mode-viewport .ac404-hero,
.elementor-widget-aliclick_contact_hero:has(.ac404-hero):not(.ac404-width-mode-parent) .ac404-hero {
    box-sizing: border-box;
    width: auto;
    max-width: none;
    margin-inline-start: calc(50% - 50vw + var(--ac404-edge-inset, 0px));
    margin-inline-end: calc(50% - 50vw + var(--ac404-edge-inset, 0px));
}

.elementor-widget-aliclick_contact_hero.ac404-width-mode-parent .ac404-hero {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
}

@supports selector(.e-con:has(.ac404-hero)) {
    .e-con:has(.elementor-widget-aliclick_contact_hero:not(.ac404-parent-escape-off) .ac404-hero),
    .elementor-section:has(.elementor-widget-aliclick_contact_hero:not(.ac404-parent-escape-off) .ac404-hero),
    .elementor-column:has(.elementor-widget-aliclick_contact_hero:not(.ac404-parent-escape-off) .ac404-hero) {
        overflow: visible !important;
    }
}

body:has(.elementor-widget-aliclick_contact_hero:not(.ac404-overflow-guard-off) .ac404-hero) {
    overflow-x: hidden;
}

@supports (overflow: clip) {
    body:has(.elementor-widget-aliclick_contact_hero:not(.ac404-overflow-guard-off) .ac404-hero) {
        overflow-x: clip;
    }
}

.ac404-hero {
    --ac404-bg-start: #ffffff;
    --ac404-bg-end: #eef6ff;
    --ac404-min-height: 560px;
    --ac404-media-height: 430px;
    --ac404-header-overlap: 88px;
    --ac404-header-safe: 88px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 22% 28%, rgba(46, 123, 238, .09), transparent 30%),
        linear-gradient(110deg, var(--ac404-bg-start), var(--ac404-bg-end));
}

.elementor-widget-aliclick_contact_hero.ac404-under-header-yes .ac404-hero {
    margin-top: calc(-1 * var(--ac404-header-overlap, 88px));
}

.ac404-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    direction: ltr;
    align-items: center;
    justify-content: center;
    min-height: var(--ac404-min-height, 560px);
    width: 100%;
    max-width: var(--ac404-inner-max, 1320px);
    margin-inline: auto;
    box-sizing: border-box;
}

.elementor-widget-aliclick_contact_hero.ac404-under-header-yes .ac404-hero__inner {
    border-top: var(--ac404-header-safe, 88px) solid transparent;
}

.ac404-hero__media,
.ac404-hero__content {
    min-width: 0;
}

.ac404-dir-rtl .ac404-hero__media,
.ac404-dir-rtl .ac404-hero__content {
    direction: rtl;
}

.ac404-dir-ltr .ac404-hero__media,
.ac404-dir-ltr .ac404-hero__content {
    direction: ltr;
}

.ac404-dir-auto .ac404-hero__media,
.ac404-dir-auto .ac404-hero__content {
    direction: inherit;
}

.ac404-hero__media {
    position: relative;
    flex: 0 1 46%;
    width: 46%;
}

.ac404-hero__image-wrap {
    position: relative;
    width: 100%;
    height: var(--ac404-media-height, 430px);
    overflow: visible;
    border-radius: 28px;
}

.ac404-hero__image {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    border-radius: inherit;
}

.ac404-hero__halo {
    position: absolute;
    z-index: 1;
    width: min(84%, 410px);
    aspect-ratio: 1;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(202, 223, 252, .75);
    box-shadow: 0 0 0 34px rgba(230, 241, 255, .65);
}

.ac404-hero__badge {
    position: absolute;
    z-index: 4;
    inset-inline-start: 4%;
    bottom: 7%;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
    max-width: 78%;
    padding: 14px 17px;
    border: 1px solid rgba(214, 228, 246, .95);
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 15px 38px rgba(47, 90, 153, .12);
    backdrop-filter: blur(10px);
}

.ac404-hero__badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    color: #1769e0;
    background: #eef5ff;
}

.ac404-hero__badge-icon svg,
.ac404-hero__badge-icon i {
    width: 22px;
    height: 22px;
    font-size: 22px;
}

.ac404-hero__badge-copy {
    display: grid;
    gap: 3px;
}

.ac404-hero__badge-copy strong {
    color: #1769e0;
    font-size: 14px;
    font-weight: 800;
}

.ac404-hero__badge-copy small {
    color: #718096;
    font-size: 12px;
}

.ac404-hero__content {
    position: relative;
    z-index: 3;
    flex: 1 1 auto;
    width: 100%;
    max-width: 620px;
}

.ac404-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 17px;
    padding: 5px 16px;
    border-radius: 999px;
    color: #1769e0;
    background: #e8f2ff;
    font-size: 13px;
    font-weight: 800;
}

.ac404-hero__title {
    display: flex;
    flex-wrap: wrap;
    gap: .22em;
    margin: 0 0 18px;
    color: #172033;
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 850;
    line-height: 1.22;
    letter-spacing: -.02em;
}

.ac404-dir-rtl .ac404-hero__title {
    justify-content: flex-start;
}

.ac404-hero__title-highlight {
    color: #1769e0;
}

.ac404-hero__description {
    margin-bottom: 24px;
    color: #66738b;
    font-size: clamp(15px, 1.4vw, 19px);
    line-height: 2;
}

.ac404-hero__search {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 56px;
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid #d9e4f2;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 9px 25px rgba(37, 77, 135, .06);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ac404-hero__search:focus-within {
    border-color: #1769e0;
    box-shadow: 0 0 0 3px rgba(23, 105, 224, .08), 0 9px 25px rgba(37, 77, 135, .06);
}

.ac404-hero__search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 18px;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    color: #29364d;
    background: transparent !important;
    font: inherit;
}

.ac404-hero__search input::placeholder {
    color: #98a5ba;
}

.ac404-hero__search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
    width: 54px;
    align-self: stretch;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    color: #1769e0;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
}

.ac404-hero__search-button svg,
.ac404-hero__search-button i {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.ac404-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.ac404-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 11px 24px;
    border: 1px solid transparent;
    border-radius: 11px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.ac404-hero__button:hover {
    transform: translateY(-2px);
}

.ac404-hero__button--primary {
    color: #fff;
    background: #1769e0;
    box-shadow: 0 10px 25px rgba(23, 105, 224, .2);
}

.ac404-hero__button--secondary {
    color: #1769e0;
    border-color: #1769e0;
    background: rgba(255, 255, 255, .78);
}

.ac404-hero__button svg,
.ac404-hero__button i {
    width: 17px;
    height: 17px;
    font-size: 17px;
}

.ac404-hero__dots {
    position: absolute;
    z-index: 1;
    top: 16%;
    left: 48%;
    width: 82px;
    height: 82px;
    opacity: .55;
    background-image: radial-gradient(circle, #6da8f4 2px, transparent 2.3px);
    background-size: 15px 15px;
}

/* --------------------------------------------------------------------------
 * 404 help CTA — reuses the existing FAQ CTA control selectors.
 * -------------------------------------------------------------------------- */
.acw-faq-contact-cta--error-404-help {
    width: min(100%, 1320px);
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid #e5edf7;
    border-radius: 22px;
    background: linear-gradient(105deg, #f8fbff 0%, #edf5ff 100%);
    box-shadow: 0 10px 32px rgba(57, 94, 150, .06);
}

.acw-faq-contact-cta--error-404-help .acw-faq-contact-cta__inner {
    position: relative;
    display: flex;
    direction: ltr;
    align-items: stretch;
    min-height: 230px;
    padding: 0;
    overflow: hidden;
}

.acw-faq-contact-cta--error-404-help[dir="rtl"] .acw-faq-contact-cta__media,
.acw-faq-contact-cta--error-404-help[dir="rtl"] .acw-faq-contact-cta__content {
    direction: rtl;
}

.acw-faq-contact-cta--error-404-help[dir="ltr"] .acw-faq-contact-cta__media,
.acw-faq-contact-cta--error-404-help[dir="ltr"] .acw-faq-contact-cta__content {
    direction: ltr;
}

.acw-faq-contact-cta--error-404-help .acw-faq-contact-cta__media {
    position: relative;
    flex: 0 1 38%;
    max-width: 38%;
    min-height: 230px;
    overflow: hidden;
}

.acw-faq-contact-cta--error-404-help .acw-faq-contact-cta__image {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: center;
}

.acw-faq-contact-cta--error-404-help .acw-faq-contact-cta__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 55%, rgba(245, 250, 255, .96) 100%);
}

.acw-faq-contact-cta--error-404-help[dir="ltr"] .acw-faq-contact-cta__media::after {
    background: linear-gradient(270deg, transparent 55%, rgba(245, 250, 255, .96) 100%);
}

.acw-faq-contact-cta--error-404-help .acw-faq-contact-cta__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: none;
    padding: 30px clamp(26px, 4.5vw, 64px);
    text-align: start;
}

.acw-faq-contact-cta--error-404-help .acw-faq-contact-cta__eyebrow {
    margin-bottom: 8px;
}

.acw-faq-contact-cta--error-404-help .acw-faq-contact-cta__title {
    margin: 0 0 10px;
    color: #1769e0;
    font-size: clamp(25px, 2.5vw, 36px);
    font-weight: 850;
    line-height: 1.35;
}

.acw-faq-contact-cta--error-404-help .acw-faq-contact-cta__description {
    max-width: 690px;
    margin: 0 0 18px;
    color: #66738b;
    font-size: 15px;
    line-height: 1.9;
}

.acw-faq-contact-cta--error-404-help .acw-faq-contact-cta__button--primary {
    min-height: 44px;
    padding: 10px 25px;
    border-radius: 9px;
    color: #fff;
    background: #1769e0;
    box-shadow: 0 9px 20px rgba(23, 105, 224, .18);
}

.acw-faq-contact-cta--error-404-help .acw-faq-contact-cta__dots {
    position: absolute;
    inset-inline-end: 24px;
    top: 50%;
    width: 72px;
    height: 72px;
    transform: translateY(-50%);
    opacity: .68;
    background-image: radial-gradient(circle, #1769e0 2px, transparent 2.4px);
    background-size: 14px 14px;
}

/* --------------------------------------------------------------------------
 * Quick links widget
 * -------------------------------------------------------------------------- */
.ac404-quick-links {
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    padding: 32px 0;
}

.ac404-quick-links__header {
    margin-bottom: 30px;
    text-align: center;
}

.ac404-quick-links__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 12px;
    padding: 4px 14px;
    border-radius: 999px;
    color: #1769e0;
    background: #eaf3ff;
    font-size: 12px;
    font-weight: 800;
}

.ac404-quick-links__title {
    margin: 0;
    color: #172033;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 850;
    line-height: 1.4;
}

.ac404-quick-links__underline {
    display: block;
    width: 48px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 999px;
    background: #1769e0;
}

.ac404-quick-links__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.ac404-quick-links__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    min-height: 260px;
    padding: 26px 22px 24px;
    border: 1px solid #e5edf7;
    border-radius: 18px;
    color: inherit;
    background: #fff;
    box-shadow: 0 12px 34px rgba(50, 86, 140, .055);
    text-align: center;
    text-decoration: none !important;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.ac404-quick-links__card:hover {
    transform: translateY(calc(-1 * var(--ac404-card-hover-y, 3px)));
    border-color: #cfdef2;
    background: #f8fbff;
    box-shadow: 0 16px 38px rgba(50, 86, 140, .09);
}

.ac404-quick-links__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    border-radius: 50%;
    color: #1769e0;
    background: #eff6ff;
}

.ac404-quick-links__icon svg,
.ac404-quick-links__icon i {
    width: 32px;
    height: 32px;
    font-size: 32px;
}

.ac404-quick-links__copy {
    width: 100%;
}

.ac404-quick-links__card-title {
    margin: 0 0 9px;
    color: #172033;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
}

.ac404-quick-links__description {
    margin: 0;
    color: #718096;
    font-size: 14px;
    line-height: 1.8;
}

.ac404-quick-links__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 17px;
    color: #1769e0;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}

.ac404-quick-links__link svg,
.ac404-quick-links__link i {
    width: 12px;
    height: 12px;
    font-size: 12px;
}

@media (max-width: 1024px) {
    .ac404-hero__title {
        font-size: clamp(32px, 5vw, 48px);
    }

    .ac404-hero__badge {
        min-width: 185px;
    }

    .acw-faq-contact-cta--error-404-help .acw-faq-contact-cta__media {
        flex-basis: 42%;
        max-width: 42%;
    }

    .ac404-quick-links__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ac404-hero__inner {
        align-items: stretch;
    }

    .ac404-hero__media,
    .ac404-hero__content {
        width: 100%;
        max-width: 100% !important;
        flex-basis: auto !important;
    }

    .ac404-hero__image-wrap {
        height: var(--ac404-media-height, 300px);
    }

    .ac404-hero__badge {
        inset-inline-start: 12px;
        bottom: 10px;
        min-width: 0;
        max-width: calc(100% - 24px);
    }

    .ac404-hero__title {
        font-size: clamp(30px, 9vw, 42px);
    }

    .ac404-hero__description {
        font-size: 15px;
        line-height: 1.9;
    }

    .ac404-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ac404-hero__button {
        width: 100%;
    }

    .ac404-hero__dots {
        display: none;
    }

    .acw-faq-contact-cta--error-404-help .acw-faq-contact-cta__inner {
        flex-direction: column;
    }

    .acw-faq-contact-cta--error-404-help .acw-faq-contact-cta__media {
        flex-basis: auto;
        width: 100%;
        max-width: 100%;
        min-height: 190px;
    }

    .acw-faq-contact-cta--error-404-help .acw-faq-contact-cta__image {
        height: 210px;
    }

    .acw-faq-contact-cta--error-404-help .acw-faq-contact-cta__media::after {
        background: linear-gradient(180deg, transparent 55%, rgba(245, 250, 255, .98) 100%);
    }

    .acw-faq-contact-cta--error-404-help .acw-faq-contact-cta__content {
        padding: 24px 18px 28px;
    }

    .acw-faq-contact-cta--error-404-help .acw-faq-contact-cta__dots {
        display: none;
    }

    .ac404-quick-links {
        padding-block: 24px;
    }

    .ac404-quick-links__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ac404-quick-links__card {
        min-height: 0;
    }
}
