/* ==================================================
   XULA REGISTRATION PAGE POPUP

   Theme:
   - Light gold background: #FFF6D4
   - Dark green button: #007D69
   - Gold button hover: #FFC530
================================================== */

.xula-page-popup {
    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: #25332F;
    background: #FFFFFF;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

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

.xula-page-popup--registration {
    background: #FFF6D4;
}

.xula-page-popup__accent {
    width: 100%;
    height: 9px;
    background: linear-gradient(
        90deg,
        #007D69 0%,
        #007D69 42%,
        #FFC530 42%,
        #FFC530 72%,
        #C16C29 72%,
        #C16C29 100%
    );
}

.xula-page-popup__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: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(0, 89, 74, 0.22);
    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-page-popup__close:hover {
    color: #FFFFFF;
    background: #007D69;
}

.xula-page-popup__content {
    padding: 54px 58px 58px;
}

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

.xula-page-popup 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-page-popup__deadline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px 22px;
    color: #000000;
    background: rgba(255, 255, 255, 0.78);
    border-left: 6px solid #FFC530;
}

.xula-page-popup__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-page-popup__deadline strong {
    flex: 0 0 auto;
    color: #007D69;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.xula-page-popup p {
    margin: 0;
    color: #25332F;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
}

.xula-page-popup a:not(.xula-page-popup__button) {
    display: inline-block;
    color: #007D69;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.25s ease;
}

.xula-page-popup a:not(.xula-page-popup__button)::before {
    content: "\00BB"; /* » */
}

.xula-page-popup a:not(.xula-page-popup__button)::after {
    content: "\00AB"; /* « */
}

.xula-page-popup a:not(.xula-page-popup__button):hover,
.xula-page-popup a:not(.xula-page-popup__button):focus {
    color: #C16C29;
}

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

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

.xula-page-popup__button:hover,
.xula-page-popup__button:focus {
    color: #000000;
    background: #FFC530;
    border-color: #FFC530;
}

.xula-page-popup__close:focus-visible,
.xula-page-popup__button:focus-visible {
    outline: 3px solid #C16C29;
    outline-offset: 3px;
}

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

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

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

    .xula-page-popup__content {
        padding: 42px 24px 30px;
    }

    .xula-page-popup__label {
        margin-right: 45px;
        font-size: 11px;
    }

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

    .xula-page-popup__deadline {
        display: block;
        padding: 18px;
    }

    .xula-page-popup__deadline span,
    .xula-page-popup__deadline strong {
        display: block;
    }

    .xula-page-popup__deadline strong {
        margin-top: 7px;
        font-size: 19px;
    }

    .xula-page-popup p {
        font-size: 16px;
        line-height: 1.7;
    }

    .xula-page-popup__button,
	.xula-page-popup__continue {
    	width: 100%;
	}

}
