/* ==========================================
   ZLOYALIST
   Uses the existing Zirrcon fonts and buttons
   ========================================== */

.zloyalist-page {
    --zl-text: #171717;
    --zl-muted: #6b6b6b;
    --zl-border: #d8d8d8;
    --zl-panel: #f5f5f3;
}

/* Main layout */

.zloyalist-page .zl-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(40px, 6vw, 110px);
}

.zloyalist-page .zl-content,
.zloyalist-page .zl-form-panel {
    min-width: 0;
}

/* Typography inherits your existing website font */

.zloyalist-page .zl-label {
    margin: 0 0 20px;
    color: var(--zl-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.zloyalist-page .zl-heading {
    margin: 0 0 28px;
    color: var(--zl-text);
    font-family: inherit;
    font-size: clamp(32px, 3.2vw, 56px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.zloyalist-page .zl-description {
    margin: 0;
    max-width: 540px;
    color: var(--zl-muted);
    font-size: 16px;
    line-height: 1.85;
}

/* Rewards */

.zloyalist-page .zl-benefits {
    margin-top: 40px;
}

.zloyalist-page .zl-benefit {
    display: grid;
    grid-template-columns: 65px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
    padding: 26px 0;
    border-bottom: 1px solid var(--zl-border);
}

.zloyalist-page .zl-benefit:first-child {
    border-top: 1px solid var(--zl-border);
}

.zloyalist-page .zl-benefit-number {
    color: var(--zl-text);
    font-size: 42px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
}

.zloyalist-page .zl-benefit h3 {
    margin: 0 0 9px;
    color: var(--zl-text);
    font-family: inherit;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.3;
}

.zloyalist-page .zl-benefit p {
    margin: 0;
    color: var(--zl-muted);
    font-size: 15px;
    line-height: 1.75;
}

.zloyalist-page .zl-terms-note {
    margin: 20px 0 0;
    color: var(--zl-muted);
    font-size: 12px;
    line-height: 1.8;
}

/* Referral steps */

.zloyalist-page .zl-how-it-works {
    margin-top: 70px;
}

.zloyalist-page .zl-steps {
    display: grid;
    gap: 30px;
    margin: 35px 0 0;
    padding: 0;
    list-style: none;
}

.zloyalist-page .zl-step {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    gap: 22px;
}

.zloyalist-page .zl-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--zl-border);
    border-radius: 50%;
    color: var(--zl-text);
    font-size: 14px;
}

.zloyalist-page .zl-step h3 {
    margin: 0 0 7px;
    color: var(--zl-text);
    font-family: inherit;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
}

.zloyalist-page .zl-step p {
    margin: 0;
    color: var(--zl-muted);
    font-size: 15px;
    line-height: 1.8;
}

/* Contact links */

.zloyalist-page .zl-contact-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    margin-top: 45px;
    padding-top: 30px;
    border-top: 1px solid var(--zl-border);
}

.zloyalist-page .zl-contact-details .zl-label {
    margin-bottom: 8px;
}

.zloyalist-page .zl-contact-details a {
    color: var(--zl-text);
    font-size: 16px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.zloyalist-page .zl-contact-details a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* Form panel */

.zloyalist-page .zl-form-panel {
    padding: clamp(28px, 3vw, 50px);
    background: var(--zl-panel);
}

/*
   The website uses GSAP ScrollSmoother.
   The form stays in normal flow to avoid sticky
   positioning issues inside #smooth-content.
*/

.zloyalist-page .zl-form-heading {
    margin: 0 0 32px;
    color: var(--zl-text);
    font-family: inherit;
    font-size: clamp(28px, 2.3vw, 38px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.zloyalist-page .zl-referee-heading {
    margin-top: 48px;
}

.zloyalist-page .zl-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
}

.zloyalist-page .zl-field {
    min-width: 0;
}

.zloyalist-page .zl-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--zl-muted);
    font-size: 13px;
    line-height: 1.5;
}

.zloyalist-page .zl-field input,
.zloyalist-page .zl-field select {
    display: block;
    width: 100%;
    min-width: 0;
    height: 48px;
    margin: 0;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid #b9b9b5;
    border-radius: 0;
    background: transparent;
    color: var(--zl-text);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: none;
}

.zloyalist-page .zl-field select {
    padding-right: 22px;
    cursor: pointer;
}

.zloyalist-page .zl-field input::placeholder {
    color: #92928d;
    opacity: 1;
}

.zloyalist-page .zl-field input:focus,
.zloyalist-page .zl-field select:focus {
    outline: none;
    border-bottom: 2px solid var(--zl-text);
}

/*
   Keep native selects visible if the template's
   nice-select plugin initializes them.
*/

.zloyalist-page .zl-field select {
    display: block !important;
}

.zloyalist-page .zl-field .nice-select {
    display: none !important;
}

/* Consent */

.zloyalist-page .zl-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 32px 0;
    cursor: pointer;
}

.zloyalist-page .zl-consent input {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 4px 0 0;
    padding: 0;
    accent-color: #171717;
    cursor: pointer;
}

.zloyalist-page .zl-consent span {
    color: var(--zl-muted);
    font-size: 12px;
    line-height: 1.8;
}

.zloyalist-page .zl-form-panel .submit-btn {
    margin: 0;
}

/* FAQ layout */

.zloyalist-page .zl-faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: clamp(40px, 6vw, 110px);
    padding-top: 65px;
    border-top: 1px solid var(--zl-border);
}

.zloyalist-page .zl-faq-intro .zl-description {
    max-width: 330px;
}

.zloyalist-page .zl-text-link {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    margin-top: 28px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--zl-text);
    color: var(--zl-text);
    font-size: 14px;
    text-decoration: none;
}

/* Native FAQ accordion: no additional JS needed */

.zloyalist-page .zl-faq-item {
    margin: 0;
    border-bottom: 1px solid var(--zl-border);
}

.zloyalist-page .zl-faq-item:first-child {
    border-top: 1px solid var(--zl-border);
}

.zloyalist-page .zl-faq-item summary {
    position: relative;
    display: block;
    margin: 0;
    padding: 25px 40px 25px 0;
    color: var(--zl-text);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.55;
    list-style: none;
    cursor: pointer;
}

.zloyalist-page .zl-faq-item summary::-webkit-details-marker {
    display: none;
}

.zloyalist-page .zl-faq-item summary::before,
.zloyalist-page .zl-faq-item summary::after {
    content: "";
    position: absolute;
    top: 37px;
    right: 3px;
    width: 14px;
    height: 1px;
    background: var(--zl-text);
}

.zloyalist-page .zl-faq-item summary::after {
    transform: rotate(90deg);
}

.zloyalist-page .zl-faq-item[open] summary::after {
    transform: rotate(0deg);
}

.zloyalist-page .zl-faq-answer {
    padding: 0 35px 25px 0;
}

.zloyalist-page .zl-faq-answer p {
    margin: 0;
    color: var(--zl-muted);
    font-size: 15px;
    line-height: 1.9;
}

.zloyalist-page .zl-faq-answer a {
    color: var(--zl-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.zloyalist-page .zl-faq-item summary:focus-visible,
.zloyalist-page .zl-text-link:focus-visible {
    outline: 2px solid var(--zl-text);
    outline-offset: 5px;
}

/* Tablet */

@media (max-width: 1199px) {
    .zloyalist-page .zl-layout {
        gap: 35px;
    }

    .zloyalist-page .zl-form-panel {
        padding: 30px 24px;
    }

    .zloyalist-page .zl-form-grid {
        gap: 24px 18px;
    }

    .zloyalist-page .zl-faq-layout {
        grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
        gap: 40px;
    }
}

/* Small tablet / mobile */

@media (max-width: 991px) {
    .zloyalist-page .zl-layout,
    .zloyalist-page .zl-faq-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 50px;
    }

    .zloyalist-page .zl-description {
        max-width: 100%;
    }

    .zloyalist-page .zl-form-panel {
        padding: 40px;
    }

    .zloyalist-page .zl-heading {
        font-size: 40px;
    }

    .zloyalist-page .zl-faq-layout {
        padding-top: 45px;
    }
}

/* Mobile */

@media (max-width: 575px) {
    .zloyalist-page .zl-heading {
        font-size: 32px;
    }

    .zloyalist-page .zl-label {
        margin-bottom: 14px;
        font-size: 13px;
    }

    .zloyalist-page .zl-description {
        font-size: 15px;
        line-height: 1.8;
    }

    .zloyalist-page .zl-benefit {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 16px;
        padding: 23px 0;
    }

    .zloyalist-page .zl-benefit-number {
        font-size: 34px;
    }

    .zloyalist-page .zl-benefit h3,
    .zloyalist-page .zl-step h3 {
        font-size: 19px;
    }

    .zloyalist-page .zl-benefit p,
    .zloyalist-page .zl-step p {
        font-size: 14px;
    }

    .zloyalist-page .zl-how-it-works {
        margin-top: 48px;
    }

    .zloyalist-page .zl-step {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 16px;
    }

    .zloyalist-page .zl-step-number {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }

    .zloyalist-page .zl-contact-details {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        margin-top: 35px;
    }

    .zloyalist-page .zl-form-panel {
        padding: 30px 22px;
    }

    .zloyalist-page .zl-form-heading {
        font-size: 29px;
        margin-bottom: 25px;
    }

    .zloyalist-page .zl-form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 23px;
    }

    .zloyalist-page .zl-field input,
    .zloyalist-page .zl-field select {
        font-size: 16px;
    }

    .zloyalist-page .zl-referee-heading {
        margin-top: 38px;
    }

    .zloyalist-page .zl-faq-item summary {
        padding: 21px 30px 21px 0;
        font-size: 16px;
    }

    .zloyalist-page .zl-faq-item summary::before,
    .zloyalist-page .zl-faq-item summary::after {
        top: 33px;
    }

    .zloyalist-page .zl-faq-answer {
        padding-right: 15px;
    }

    .zloyalist-page .zl-faq-answer p {
        font-size: 14px;
    }
}