/* ==================================================
   XULA HOME PAGE WELCOME POPUP

   Responsive order:
   1. Base / desktop
   2. Mobile
================================================== */

.xula-welcome-modal {
    width: min(720px, calc(100% - 40px));
    max-width: 720px;
    max-height: calc(100vh - 40px);
    margin: auto;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    color: #414141;
    background: #FFFFFF;
    border: 0;
    border-radius: 0;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.xula-welcome-modal::backdrop {
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(3px);
}

.xula-welcome-modal__accent {
    width: 100%;
    height: 9px;
    background: linear-gradient(
        90deg,
        #00A887 0%,
        #00A887 42%,
        #FFC530 42%,
        #FFC530 72%,
        #C16C29 72%,
        #C16C29 100%
    );
}

.xula-welcome-modal__close {
    position: absolute;
    top: 25px;
    right: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #000000;
    background: #F2F2F3;
    border: 1px solid #DADBDC;
    border-radius: 50%;
    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.xula-welcome-modal__close:hover {
    color: #FFFFFF;
    background: #00A887;
}

.xula-welcome-modal__content {
    padding: 54px 58px 58px;
}

.xula-welcome-modal__label {
    display: block;
    margin: 0 55px 14px 0;
    color: #00A887;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.xula-welcome-modal h2 {
    margin: 0 55px 26px 0;
    color: #000000;
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.xula-welcome-modal__deadline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px 22px;
    color: #000000;
    background: #FFF6D4;
    border-left: 6px solid #FFC530;
}

.xula-welcome-modal__deadline span {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.xula-welcome-modal__deadline strong {
    flex: 0 0 auto;
    color: #A9343A;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.xula-welcome-modal__intro {
    max-width: 680px;
    margin: 16px auto 25px;
    color: #333333;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    text-align: left;
}

.xula-welcome-modal p {
    margin: 0;
    color: #414141;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
}


.xula-welcome-modal a {
    display: inline-block;
    color: #00A887;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.25s ease;
}

.xula-welcome-modal a::before {
    content: "\00BB"; /* » */
}

.xula-welcome-modal a::after {
    content: "\00AB"; /* « */
}

.xula-welcome-modal a:hover,
.xula-welcome-modal a:focus {
    color: #C16C29;
}

.xula-welcome-modal__actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 30px;
}

.xula-welcome-modal__continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 14px 28px;
    color: #FFFFFF;
    background: #00A887;
    border: 2px solid #00A887;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.25s ease, background-color 0.25s ease,
        border-color 0.25s ease;
}

.xula-welcome-modal__continue:hover {
    color: #000000;
    background: #FFC530;
    border-color: #FFC530;
}

.xula-welcome-modal__close:focus-visible,
.xula-welcome-modal__continue:focus-visible {
    outline: 3px solid #FFC530;
    outline-offset: 3px;
}

/* ---------- Mobile: 767px and below ---------- */
@media (max-width: 767px) {

    .xula-welcome-modal {
        width: calc(100% - 28px);
        max-height: calc(100vh - 28px);
    }

    .xula-welcome-modal__close {
        top: 20px;
        right: 18px;
        width: 38px;
        height: 38px;
        font-size: 27px;
    }

    .xula-welcome-modal__content {
        padding: 42px 24px 30px;
    }

    .xula-welcome-modal__label {
        margin-right: 45px;
        font-size: 11px;
    }

    .xula-welcome-modal h2 {
        margin-right: 35px;
        margin-bottom: 22px;
        font-size: clamp(27px, 9vw, 36px);
        line-height: 1.15;
    }

    .xula-welcome-modal__deadline {
        display: block;
        padding: 18px;
    }

    .xula-welcome-modal__deadline span,
    .xula-welcome-modal__deadline strong {
        display: block;
    }

    .xula-welcome-modal__deadline strong {
        margin-top: 7px;
        font-size: 19px;
    }

    .xula-welcome-modal p {
        font-size: 16px;
        line-height: 1.7;
    }

    .xula-welcome-modal__continue {
        width: 100%;
    }

}
