/* ==========================================================================
   ZINI Club - membership page (/pages/Account/Membership.aspx)
   Quiet editorial feel, like the ZINI Club emails: ivory page, chocolate brown, cream.
   Everything is scoped under .zc so the site header/footer stay untouched.
   ========================================================================== */

.zc {
    --zc-brown: #38241d;
    --zc-brown-deep: #241712;
    --zc-brown-soft: #4a3128;
    --zc-ivory: #faf8f3;
    --zc-cream: #f3e6d5;
    --zc-tint: #f1ece4;
    --zc-paper: #ffffff;
    --zc-brass: #a08060;
    --zc-brass-light: #d9c4a8;
    --zc-ink: #231c19;
    --zc-muted: #6f6660;
    --zc-line: #e6ded3;
    --zc-error: #9a3324;

    font-family: inherit;
    color: var(--zc-ink);
    background: var(--zc-ivory);
    -webkit-font-smoothing: antialiased;
}

.zc *,
.zc *::before,
.zc *::after {
    box-sizing: border-box;
}

.zc a {
    color: var(--zc-brown);
    text-decoration: underline;
    text-decoration-color: var(--zc-brass);
    text-underline-offset: 3px;
}

.zc a:hover {
    color: var(--zc-brass);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.zc-hero {
    position: relative;
    color: var(--zc-ink);
    text-align: center;
    padding: 48px 16px 56px;
}

.zc-hero__inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

/* ZINI / CLUB wordmark, as on the card and the emails */
.zc-wordmark {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    color: var(--zc-ink);
}

.zc-wordmark__zini {
    font-family: "Cormorant Garamond", "Times New Roman", Georgia, serif;
    font-size: 40px;
    font-weight: 500;
    letter-spacing: .04em;
}

.zc-wordmark__club {
    margin-top: 6px;
    padding-left: .38em;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .38em;
}

/* Hairline under the wordmark, like the email header */
.zc-hero__rule {
    max-width: 760px;
    height: 1px;
    margin: 22px auto 48px;
    border: 0;
    background: var(--zc-line);
}

.zc .zc-hero__title {
    margin: 0 0 26px;
    font-family: inherit;
    font-weight: 300;
    font-size: clamp(24px, 3.6vw, 34px);
    line-height: 1.3;
    letter-spacing: .14em;
    text-transform: none;
    color: var(--zc-ink);
}

.zc-hero__text p {
    max-width: 560px;
    margin: 0 auto 6px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--zc-ink);
}

.zc .zc-hero__text .zc-hero__subtitle {
    margin-bottom: 18px;
    font-family: "Cormorant Garamond", "Times New Roman", Georgia, serif;
    font-size: 21px;
    font-style: italic;
    font-weight: 500;
    color: var(--zc-brown);
}

/* --------------------------------------------------------------------------
   Body / layout
   -------------------------------------------------------------------------- */

.zc-body {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px 96px;
}

.zc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    margin-top: 0;
    position: relative;
}

@media (min-width: 992px) {
    .zc-layout {
        grid-template-columns: 340px minmax(0, 1fr);
        grid-template-areas: "aside form";
        gap: 56px;
        align-items: start;
    }

    .zc-layout__form {
        grid-area: form;
    }

    .zc-layout__aside {
        grid-area: aside;
        position: sticky;
        top: 32px;
        padding-top: 76px;
    }
}

.zc-panel {
    position: relative;
    background: var(--zc-paper);
    border: 1px solid var(--zc-line);
    padding: 40px 24px;
    box-shadow: 0 24px 48px -32px rgba(42, 26, 20, .35);
}

/* Inner brass hairline, like a framed club notice */
.zc-panel::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(160, 128, 96, .22);
    pointer-events: none;
}

@media (min-width: 768px) {
    .zc-panel {
        padding: 52px 56px;
    }
}

.zc-panel--narrow {
    max-width: 860px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Steps indicator
   -------------------------------------------------------------------------- */

.zc-steps {
    display: flex;
    align-items: center;
    gap: 14px;
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
}

.zc-steps__item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--zc-muted);
    transition: color .3s ease;
}

.zc-steps__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--zc-line);
    border-radius: 50%;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    transition: all .3s ease;
}

.zc-steps__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.zc-steps__rule {
    flex: 1;
    height: 1px;
    background: var(--zc-line);
}

.zc-steps__item.is-active,
.zc-steps__item.is-done {
    color: var(--zc-brown);
}

.zc-steps__item.is-active .zc-steps__num {
    background: var(--zc-brown);
    border-color: var(--zc-brown);
    color: var(--zc-ivory);
}

.zc-steps__item.is-done .zc-steps__num {
    border-color: var(--zc-brass);
    color: var(--zc-brass);
}

@media (max-width: 640px) {
    .zc-steps__label {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

.zc-form fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

/* Without JS both steps are visible; with JS only the active one */
.zc-js .zc-step {
    display: none;
}

.zc-js .zc-step.is-active {
    display: block;
    animation: zc-fade .45s ease;
}

@keyframes zc-fade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.zc-step + .zc-step {
    margin-top: 48px;
}

.zc-js .zc-step + .zc-step {
    margin-top: 0;
}

.zc-step__head {
    display: block;
    width: 100%;
    margin: 0 0 28px;
    padding: 0;
}

.zc-step__kicker {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--zc-brass);
}

.zc-step__title {
    display: block;
    font-family: inherit;
    font-size: clamp(24px, 3.2vw, 30px);
    font-weight: 300;
    letter-spacing: -.005em;
    line-height: 1.15;
    color: var(--zc-brown);
}

.zc-step__text {
    margin: -14px 0 28px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--zc-muted);
}

.zc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px 28px;
}

@media (min-width: 640px) {
    .zc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zc-field--wide {
        grid-column: 1 / -1;
    }
}

.zc-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.zc .zc-field label,
.zc-field__label {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--zc-ink);
}

.zc-req {
    color: var(--zc-brass);
}

.zc-opt {
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: none;
    color: var(--zc-muted);
    font-weight: 300;
}

.zc .zc-field input,
.zc .zc-field select {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 2px;
    border: 0;
    border-bottom: 1px solid #cfc5b3;
    border-radius: 0;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    color: var(--zc-ink);
    box-shadow: none;
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease;
    -webkit-appearance: none;
    appearance: none;
}

.zc .zc-field select {
    padding-right: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a9864f' stroke-width='1.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    cursor: pointer;
}

.zc .zc-field textarea {
    width: 100%;
    min-height: 96px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #cfc5b3;
    border-radius: 0;
    background: var(--zc-ivory);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    color: var(--zc-ink);
    box-shadow: none;
    outline: none;
    resize: vertical;
    transition: border-color .25s ease;
}

.zc .zc-field input::placeholder,
.zc .zc-field textarea::placeholder {
    color: #a59c93;
    opacity: 1;
}

.zc .zc-field input:focus,
.zc .zc-field select:focus,
.zc .zc-field textarea:focus {
    border-bottom-color: var(--zc-brown);
    box-shadow: 0 1px 0 0 var(--zc-brown);
}

.zc .zc-field textarea:focus {
    border-color: var(--zc-brown);
}

/* Cities for events: multiple choice chips */
.zc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.zc .zc-field .zc-chip {
    position: relative;
    display: inline-flex;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}

.zc .zc-field .zc-chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.zc-chip span {
    padding: 9px 18px;
    border: 1px solid var(--zc-line);
    border-radius: 999px;
    background: var(--zc-ivory);
    color: var(--zc-ink);
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.zc-chip:hover span {
    border-color: var(--zc-brass-light);
}

.zc-chip input:checked + span {
    background: var(--zc-brown);
    border-color: var(--zc-brown);
    color: var(--zc-cream);
}

.zc-chip input:focus-visible + span {
    outline: 2px solid var(--zc-brass);
    outline-offset: 2px;
}

.zc-idea {
    margin-top: 32px;
}

.zc-hint {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--zc-muted);
}

.zc-error {
    display: none;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--zc-error);
}

.is-invalid > .zc-error,
.is-invalid .zc-interests > .zc-error {
    display: block;
}

.zc .is-invalid input,
.zc .is-invalid select {
    border-bottom-color: var(--zc-error);
}

.zc-alert {
    position: relative;
    margin: 0 0 28px;
    padding: 14px 18px;
    border-left: 2px solid var(--zc-error);
    background: #f8ece8;
    font-size: 14px;
    color: var(--zc-error);
}

/* --------------------------------------------------------------------------
   Interests
   -------------------------------------------------------------------------- */

.zc-interests {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

@media (min-width: 640px) {
    .zc-interests {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zc-interests > .zc-error {
        grid-column: 1 / -1;
    }
}

.zc .zc-interest {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.zc-interest input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.zc-interest__box {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    padding: 20px 52px 20px 22px;
    border: 1px solid var(--zc-line);
    background: var(--zc-ivory);
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.zc-interest:hover .zc-interest__box {
    border-color: var(--zc-brass-light);
}

.zc-interest__num {
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .14em;
    color: var(--zc-brass);
}

.zc-interest__title {
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--zc-brown);
}

.zc-interest__text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--zc-muted);
}

.zc-interest__check {
    position: absolute;
    top: 20px;
    right: 18px;
    width: 22px;
    height: 22px;
    border: 1px solid #cfc5b3;
    border-radius: 50%;
    transition: all .25s ease;
}

.zc-interest__check::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid var(--zc-ivory);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .2s ease;
}

.zc-interest input:checked + .zc-interest__box {
    border-color: var(--zc-brown);
    background: var(--zc-paper);
    box-shadow: inset 0 0 0 1px var(--zc-brown);
}

.zc-interest input:checked + .zc-interest__box .zc-interest__check {
    background: var(--zc-brown);
    border-color: var(--zc-brown);
}

.zc-interest input:checked + .zc-interest__box .zc-interest__check::after {
    transform: rotate(45deg) scale(1);
}

.zc-interest input:focus-visible + .zc-interest__box {
    outline: 2px solid var(--zc-brass);
    outline-offset: 2px;
}

.zc-interests.is-invalid .zc-interest__box {
    border-color: rgba(154, 51, 36, .45);
}

/* --------------------------------------------------------------------------
   Terms checkbox
   -------------------------------------------------------------------------- */

.zc-terms {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--zc-line);
}

/* Email / SMS consent */
.zc-consent {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
    padding: 22px 24px;
    background: var(--zc-tint);
}

.zc-consent__text,
.zc-consent__note {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--zc-ink);
}

.zc-consent__note {
    font-size: 12px;
    color: var(--zc-muted);
}

.zc .zc-check {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--zc-ink);
    cursor: pointer;
}

.zc-check input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.zc-check__box {
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 1px solid #b9ad97;
    background: var(--zc-paper);
    transition: all .2s ease;
}

.zc-check__box::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid var(--zc-ivory);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .2s ease;
}

.zc-check input:checked + .zc-check__box {
    background: var(--zc-brown);
    border-color: var(--zc-brown);
}

.zc-check input:checked + .zc-check__box::after {
    transform: rotate(45deg) scale(1);
}

.zc-check input:focus-visible + .zc-check__box {
    outline: 2px solid var(--zc-brass);
    outline-offset: 2px;
}

.zc-terms.is-invalid .zc-check__box {
    border-color: var(--zc-error);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.zc-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
}

.zc-actions--split {
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.zc .zc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 40px;
    border: 1px solid transparent;
    border-radius: 0;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.zc .zc-btn--primary {
    background: var(--zc-brown);
    border-color: var(--zc-brown);
    color: var(--zc-ivory);
}

.zc .zc-btn--primary:hover {
    background: var(--zc-brown-deep);
    border-color: var(--zc-brass);
    color: var(--zc-brass-light);
}

.zc .zc-btn--outline {
    background: transparent;
    border-color: var(--zc-brown);
    color: var(--zc-brown);
}

.zc .zc-btn--outline:hover {
    background: var(--zc-brown);
    color: var(--zc-ivory);
}

.zc .zc-btn--link {
    min-height: 0;
    padding: 8px 0;
    background: none;
    color: var(--zc-muted);
    letter-spacing: .16em;
}

.zc .zc-btn--link:hover {
    color: var(--zc-brown);
}

@media (max-width: 480px) {
    .zc-actions .zc-btn--primary {
        flex: 1;
        padding: 0 20px;
    }
}

.zc-note {
    margin: 22px 0 0;
    font-size: 12px;
    line-height: 1.65;
    color: var(--zc-muted);
}

.zc-note + .zc-note {
    margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Aside
   -------------------------------------------------------------------------- */

.zc-layout__aside {
    text-align: center;
}

@media (min-width: 992px) {
    .zc-layout__aside {
        text-align: left;
    }
}

.zc .zc-aside__title {
    margin: 28px 0 10px;
    font-family: inherit;
    font-size: 21px;
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0;
    color: var(--zc-brown);
}

.zc-aside__text {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--zc-muted);
}

.zc-aside__privacy {
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid var(--zc-line);
    font-size: 13px;
    line-height: 1.7;
    color: var(--zc-muted);
}

/* --------------------------------------------------------------------------
   Membership card
   -------------------------------------------------------------------------- */

/* Flat chocolate card with cream type, as in the ZINI Club card design.
   Sizes are in cqw (percent of the card width) so the card scales as one piece. */
.zc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1.59;
    margin: 0 auto;
    padding: 7.5% 7%;
    overflow: hidden;
    border-radius: 18px;
    color: var(--zc-cream);
    background: var(--zc-brown);
    box-shadow: 0 30px 50px -30px rgba(42, 26, 20, .65), 0 2px 8px rgba(42, 26, 20, .14);
    container-type: inline-size;
    scroll-margin-top: 120px;
}

.zc-card__top,
.zc-card__bottom {
    display: flex;
    justify-content: space-between;
}

.zc-card__top {
    align-items: flex-start;
}

.zc-card__bottom {
    align-items: flex-end;
}

.zc-card__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: .85;
}

.zc-card__brand-zini {
    font-family: "Cormorant Garamond", "Times New Roman", Georgia, serif;
    font-size: 52px;
    font-size: 12.5cqw;
    font-weight: 500;
    letter-spacing: .01em;
}

.zc-card__brand-club {
    margin-top: 8px;
    margin-top: 2.4cqw;
    padding-left: .3em;
    font-size: 13px;
    font-size: 3.2cqw;
    font-weight: 400;
    letter-spacing: .3em;
}

.zc-card__tier,
.zc-card__number {
    padding-left: .35em;
    font-size: 12px;
    font-size: 2.9cqw;
    font-weight: 300;
    line-height: 1;
    letter-spacing: .35em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.zc-card__tier {
    margin-top: 1.5cqw;
}

/* Member name above the ID, as in the welcome email */
.zc-card__holder {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    gap: 2.4cqw;
    min-width: 0;
    padding-right: 4%;
}

.zc-card__name {
    max-width: 100%;
    padding-left: .2em;
    font-size: 14px;
    font-size: 3.4cqw;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: .2em;
    text-align: left;
    overflow-wrap: anywhere;
}

.zc-card__qr {
    display: block;
    flex: 0 0 auto;
    width: 19%;
    aspect-ratio: 1;
    margin: -2% -2% -2% 0;
    color: var(--zc-cream);
}

.zc .zc-card__qr {
    text-decoration: none;
}

.zc-card__qr img,
.zc-card__qr svg {
    display: block;
    width: 100%;
    height: 100%;
}

.zc-card--preview {
    max-width: 340px;
}

.zc-member {
    position: relative;
    margin-top: 0;
    text-align: center;
}

.zc-member .zc-card {
    max-width: 460px;
}

.zc-member__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 44px;
}

.zc-qr__caption {
    display: block;
    margin-top: 22px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--zc-brass);
}

@media (max-width: 480px) {
    .zc-member__actions .zc-btn {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Notices (pending / already a member / invalid link)
   -------------------------------------------------------------------------- */

.zc-notice {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.zc-notice__icon {
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    color: var(--zc-brass);
}

.zc-notice__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--zc-muted);
    word-break: break-word;
}

.zc-notice__text strong {
    color: var(--zc-brown);
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .zc *,
    .zc *::before,
    .zc *::after {
        animation: none !important;
        transition: none !important;
    }
}
