/* ============================================================
   COCO & RIKO'S — site styles
   ============================================================ */

/* --- Brand font ---------------------------------------------
   Drop your licensed font file in /wwwroot/fonts/ and the
   browser will pick it up automatically. Pangolin (loaded in
   _Layout) is used as a close-looking fallback until then.    */
@font-face {
    font-family: "Moosy Guga";
    src: url("/fonts/MoosyGuga.woff2") format("woff2"), url("/fonts/MoosyGuga.woff") format("woff"), url("/fonts/moosy-guga.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #E4AF22;
    --primary-dark: #c8961a;
    --bg: #F7F1E7;
    --black: #000000;
    --white: #ffffff;
    --font-display: "Moosy Guga", "Pangolin", cursive;
    /*--font-body: "Poppins", -apple-system, "Segoe UI", sans-serif*/
    --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--white);
    color: var(--black);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
/* ============================================================
   NAVBAR
   ============================================================ */
.cr-navbar {
    background: var(--primary);
    padding: 1rem 0;
}

.cr-logo {
    display: flex;
    align-items: center;
    gap: .35rem;
    text-decoration: none;
    color: var(--black);
    line-height: .92;
}

.cr-logo__text {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 3.25rem);
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.cr-logo__birds { width: clamp(46px, 6vw, 78px); height: auto; margin-bottom: .9rem; }

.cr-nav-icons {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.cr-icon-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--black);
    cursor: pointer;
    line-height: 0;
    transition: transform .15s ease, opacity .15s ease;
}
.cr-icon-btn:hover { transform: translateY(-2px); opacity: .82; }
.cr-icon-btn svg { width: clamp(34px, 3.4vw, 44px); height: auto; }

/* Thin cream strip directly under the navbar */
.cr-strip { background: var(--bg); height: 46px; }

/* ============================================================
   HERO
   ============================================================ */
.cr-hero {
    background: var(--white);
    text-align: center;
    padding: 4.5rem 1rem 5rem;
    flex: 1 1 auto; /* hero grows to fill, pushing the band down */
    min-height: 0;
}

.cr-hero__title {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase; /* keep if you want all-caps; not part of the token */
    font-size: clamp(2.2rem, 6vw, 62px); /* 35px min → 62px max */
    letter-spacing: 0; /* "0%" → normal / 0 */
    line-height: 100%; /* same as 1 */
    margin: 0 0 7rem;
}


.cr-hero__subtitle {
    font-weight: 500;
    text-transform: uppercase;
    /*letter-spacing: 1.5px;*/
    font-size: 0.7rem;
    margin: 0 auto 0.5rem;
    max-width: 900px;
}
.cr-hero__subtitle .divider { margin: 0 .4rem; font-weight: 300; }

/* Placeholder image */
.cr-placeholder {
    width: min(680px, 92%);
    aspect-ratio: 16 / 7;
    margin: 0 auto 3rem;
    border: 3px dashed rgba(0, 0, 0, .28);
    border-radius: 22px;
    background:
        repeating-linear-gradient(45deg,
            rgba(228, 175, 34, .07) 0 14px,
            transparent 14px 28px),
        var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    color: rgba(0, 0, 0, .5);
}
.cr-placeholder svg { width: 64px; height: 64px; opacity: .55; }
.cr-placeholder span {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: .5px;
}

/* SUBSCRIBE button */
.cr-btn {
    display: inline-block;
    background: var(--primary);
    color: var(--black);
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    text-decoration: none;
    padding: .7rem 2.6rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.cr-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(228, 175, 34, .35);
    color: var(--black);
}

/* ============================================================
   TRUST BAND
   ============================================================ */
.cr-band {
    background: var(--bg);
    padding: 2.6rem 0;
    margin-top: auto; /* <-- fills the gap, pins it to the bottom */
}
.cr-band .row { align-items: center; }

.cr-band__text {
    font-size: clamp(1rem, 1.6vw, 1.45rem);
    line-height: 1.35;
    margin: 0;
}
.cr-band__brand,
.cr-band__gift {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.cr-band__left  { text-align: left; }
.cr-band__right { text-align: left; }
.cr-band__art   { text-align: center; }
.cr-band__art svg { width: clamp(110px, 12vw, 165px); height: auto; }

@media (max-width: 767.98px) {
    .cr-band__left, .cr-band__right { text-align: center; }
    .cr-band__art { margin: 1.3rem 0; }
    .cr-nav-icons { gap: 1rem; }
}


/* ============================================================
   SUBSCRIPTION PAGE — Pick Your Egg Plan
   ============================================================ */
.cr-plans {
    background: var(--bg);
    padding: 3.2rem 1rem 5rem;
    min-height: 70vh;
}

.cr-plans__title {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.4rem);
    letter-spacing: 1px;
    margin: 0 0 1.3rem;
}

/* Weekly / Bi-Weekly toggle */
.plan-toggle {
    display: flex;
    justify-content: center;
    gap: .6rem;
    margin-bottom: 1.3rem;
    flex-wrap: nowrap;
}

.plan-toggle__btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex: 1 1 0; /* share the row equally, allowed to shrink */
    min-width: 0; /* lets them shrink below content width */
    white-space: nowrap;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: 1.05rem;
    padding: .55rem 1.6rem;
    border: 2px solid var(--black);
    border-radius: 999px;
    background: transparent;
    color: var(--black);
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

    .plan-toggle__btn::before {
        content: "";
        width: 15px;
        height: 15px;
        border: 2px solid var(--black);
        border-radius: 50%;
        background: transparent;
        transition: background .15s ease, box-shadow .15s ease;
    }

    .plan-toggle__btn:hover {
        transform: translateY(-1px);
    }

    .plan-toggle__btn.active {
        background: var(--primary);
    }

        .plan-toggle__btn.active::before {
            background: var(--black);
            box-shadow: inset 0 0 0 3px var(--primary);
        }


@media (max-width: 480px) {
    .plan-toggle {
        gap: .4rem;
    }

    .plan-toggle__btn {
        font-size: .85rem;
        padding: .5rem .7rem;
        letter-spacing: .3px;
    }

        .plan-toggle__btn::before {
            width: 12px;
            height: 12px;
        }
}

/* Plan cards */
.plan-list {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    max-width: 1100px;
    margin: 0 auto;
}

.plan-card {
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    min-height: 210px;
    background: var(--black);
}

.plan-card__img {
    flex: 0 0 45%;
    background: var(--white);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .plan-card__img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: rgba(0, 0, 0, .42);
    background: repeating-linear-gradient(45deg, rgba(228, 175, 34, .09) 0 12px, transparent 12px 24px);
}

    .img-placeholder svg {
        width: 54px;
        height: 54px;
        opacity: .5;
    }

    .img-placeholder span {
        font-family: var(--font-display);
        font-size: 1.1rem;
        letter-spacing: .5px;
    }

.plan-card__body {
    flex: 1;
    color: var(--white);
    padding: 1.8rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.2rem;
}

.plan-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.plan-card__title {
    font-weight: 700;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    margin: 0 0 .3rem;
    line-height: 1.1;
}

.plan-card__desc {
    font-size: 1.05rem;
    margin: 0;
    color: #eaeaea;
}

.plan-card__pick {
    background: var(--primary);
    color: var(--black);
    font-family: var(--font-body);
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: .5rem 1.2rem;
    font-size: 1rem;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
}

    .plan-card__pick:hover {
        background: var(--primary-dark);
        color: var(--black);
        transform: translateY(-1px);
    }

.plan-card__foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    font-size: 1.05rem;
}

@media (max-width: 767.98px) {
    .plan-card {
        flex-direction: column;
    }

    .plan-card__img {
        flex: 0 0 160px;
        min-height: 160px;
    }

    .plan-card__body {
        gap: 1.6rem;
    }
}


/* ============================================================
   CHECKOUT — Finalize Subscription
   ============================================================ */
.cr-checkout {
    background: var(--bg);
    padding: 3.2rem 1rem 5rem;
    min-height: 70vh;
}

.cr-checkout__title {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.4rem);
    letter-spacing: 1px;
    margin: 0 0 2rem;
}

.cr-checkout__plan {
    max-width: 1000px;
    margin: 0 auto 2.4rem;
}

/* Address form */
.cr-form {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cr-input {
    width: 100%;
    padding: .9rem 1.3rem;
    border: 2px solid rgba(0, 0, 0, .18);
    border-radius: 12px;
    background: var(--white);
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--black);
}

    .cr-input::placeholder {
        color: #9a958c;
        text-transform: uppercase;
        letter-spacing: .5px;
    }

    .cr-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(228, 175, 34, .25);
    }

textarea.cr-input {
    resize: vertical;
    min-height: 64px;
}

/* Custom "Choose your zone" dropdown */
.cr-select {
    position: relative;
}

.cr-select__head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 12px;
    padding: .9rem 1.3rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: 1.05rem;
    cursor: pointer;
    text-align: left;
}

.cr-select__arrow {
    width: 18px;
    height: 18px;
    flex: none;
    transition: transform .2s ease;
}

.cr-select.open .cr-select__head {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.cr-select.open .cr-select__arrow {
    transform: rotate(180deg);
}

.cr-select__list {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--white);
    border: 2px solid var(--black);
    border-top: none;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    z-index: 30;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .14);
}

.cr-select__opt {
    padding: .8rem 1.3rem;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: .3px;
    cursor: pointer;
    transition: background .12s ease;
}

    .cr-select__opt b {
        font-weight: 700;
    }

    .cr-select__opt:hover,
    .cr-select__opt.selected {
        background: var(--primary);
    }

.cr-submit {
    align-self: center;
    background: var(--primary);
    color: var(--black);
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.2rem;
    border: none;
    border-radius: 10px;
    padding: .7rem 2.8rem;
    margin-top: .8rem;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

    .cr-submit:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(228, 175, 34, .35);
    }

.field-validation-error, .text-danger {
    color: #c0392b;
    font-size: .9rem;
}

/* ============================================================
   AUTH — Login / Register
   ============================================================ */
.cr-auth {
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
     flex: 1 1 auto;          /* fill leftover space below the navbar */
    min-height: 0; 
}

.cr-auth__card {
    width: 100%;
    max-width: 460px;
    background: var(--white);
    border-radius: 22px;
    padding: 2.6rem 2.4rem;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .10);
}

.cr-auth__head {
    text-align: center;
    margin-bottom: 1.5rem;
}

.cr-auth__birds {
    width: 70px;
    height: auto;
    margin-bottom: .3rem;
}

.cr-auth__title {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 2rem;
    letter-spacing: .5px;
    margin: 0;
}

/* Login / Register toggle */
.cr-tabs {
    display: flex;
    background: var(--bg);
    border: 2px solid var(--black);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 1.6rem;
}

.cr-tab {
    flex: 1;
    border: none;
    background: transparent;
    border-radius: 999px;
    padding: .55rem 0;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: .95rem;
    color: var(--black);
    cursor: pointer;
    transition: background .15s ease;
}

    .cr-tab.active {
        background: var(--primary);
    }

.cr-auth__form {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.cr-auth__row {
    display: flex;
    gap: .75rem;
}

    .cr-auth__row > * {
        flex: 1;
    }

.cr-field {
    position: relative;
}

.cr-input--pass {
    padding-right: 3rem;
}

.cr-pass-toggle {
    position: absolute;
    right: .9rem;
    top: 1.8rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    padding: 0;
    line-height: 0;
}

    .cr-pass-toggle svg {
        width: 20px;
        height: 20px;
    }

.cr-submit--block {
    width: 100%;
    align-self: stretch;
    margin-top: .4rem;
}

.cr-divider {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: #9a958c;
    margin: 1.4rem 0;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

    .cr-divider::before, .cr-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: rgba(0, 0, 0, .15);
    }

.cr-social {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.cr-social__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    width: 100%;
    padding: .75rem 1rem;
    border: 2px solid rgba(0, 0, 0, .18);
    border-radius: 12px;
    background: var(--white);
    color: var(--black);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

    .cr-social__btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(0, 0, 0, .08);
        color: var(--black);
    }

    .cr-social__btn svg {
        width: 20px;
        height: 20px;
    }

.cr-social__btn--apple {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

    .cr-social__btn--apple:hover {
        color: var(--white);
    }

.cr-auth__switch {
    text-align: center;
    margin-top: 1.2rem;
    font-size: .95rem;
    color: #555;
}

    .cr-auth__switch a {
        color: var(--primary-dark);
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
    }


.cr-submit.is-loading {
    position: relative;
    color: transparent !important; /* hide the label */
    pointer-events: none;
}

    .cr-submit.is-loading::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 3px solid rgba(0, 0, 0, .35);
        border-top-color: #000; /* black spinner on the yellow button */
        border-radius: 50%;
        animation: cr-spin .6s linear infinite;
    }

@keyframes cr-spin {
    to {
        transform: rotate(360deg);
    }
}



/* ============================================================
   USER DETAILS — Delivery schedule / Our story / CTA
   ============================================================ */
.cr-account {
    background: var(--bg);
    padding: 3rem 1rem 0;
}

.cr-account__wrap {
    max-width: 960px;
    margin: 0 auto;
}

.cr-account__title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: .5px;
    margin: 0 0 1.6rem;
}

    .cr-account__title svg {
        width: clamp(74px, 9vw, 120px);
        height: auto;
        flex: none;
    }

.cr-schedule {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    margin-bottom: 3rem;
}

.cr-week-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.cr-week {
    width: 540px;
    max-width: 100%;
    padding: .85rem 1.3rem;
    border: 2px solid rgba(0, 0, 0, .3);
    border-radius: 10px;
    background: var(--white);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .3px;
    font-size: 0.8rem;
}

.cr-week--active {
    background: var(--primary);
    border-color: var(--primary-dark);
    font-weight: 600;
}

.cr-week--skipped {
    opacity: .55;
    text-decoration: line-through;
}

.cr-week__skip-form {
    margin: 0;
}

.cr-week__skip {
    background: none;
    border: none;
    padding: 0;
    color: var(--black);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
}

    .cr-week__skip:hover {
        text-decoration: underline;
    }

.cr-story {
    display: flex;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.cr-story__img {
    flex: 0 0 44%;
    align-self: stretch;
    min-height: 420px;
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
}

    .cr-story__img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.cr-story__body {
    flex: 1;
}

.cr-story__heading {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0 0 1rem;
}

.cr-story__body p {
    font-size: 1.05rem;
    line-height: 1.55;
    margin: 0 0 1rem;
}

.cr-cta {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 2.6rem 1rem;
}

.cr-cta__title {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    color: var(--primary);
    font-size: clamp(1.5rem, 3.4vw, 2.2rem);
    letter-spacing: .5px;
    margin: 0 0 .6rem;
    line-height: 1.15;
}

.cr-cta__sub {
    margin: 0;
    font-size: 1.05rem;
}

@media (max-width: 767.98px) {
    .cr-story {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cr-story__img {
        flex: none;
        width: 100%;
        min-height: 260px;
    }
}


.cr-promo {
    display: flex;
    gap: .6rem;
}

.cr-promo__input {
    flex: 1;
}

.cr-promo__btn {
    flex: none;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    border: none;
    border-radius: 12px;
    padding: 0 1.4rem;
    cursor: pointer;
    transition: opacity .15s ease;
}

    .cr-promo__btn:hover {
        opacity: .85;
    }

.cr-promo__msg {
    font-size: .9rem;
    min-height: 1.1em;
}

    .cr-promo__msg.ok {
        color: #1d9e75;
    }

    .cr-promo__msg.err {
        color: #c0392b;
    }
.cr-plan__price {
    display: inline-flex;
    align-items: baseline;
    gap: .5rem;
}

.plan-card__price-old {
    text-decoration: line-through;
    opacity: .55;
    font-size: .9em;
}

[data-price-now] {
    font-weight: 600;
}


.cr-input--select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 2.6rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
}


.cr-hero__coupondiscount {
    font-weight: 700;
    font-size: clamp(1rem, 2.4vw, 1.9rem);
    max-width: 900px;
}


.cr-hero__coupondate {
    font-weight: 400;
    font-size: clamp(1rem, 2.4vw, 1.9rem);
    max-width: 900px;
}

.couponDiv{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center
}

.cr-couponCode {
    font-weight: 400;
    font-size: clamp(1rem, 2.4vw, 22px);
    max-width: 900px;
    margin-top: 2rem;
    margin-bottom: 0.7rem
}

@media (max-width: 767.98px) {
    .cr-input {
        font-size: 10px;
    }
}