* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        linear-gradient(
            135deg,
            #f8fff8,
            #eef8ee
        );

    color: #111820;
}


/* =========================================================
   PAGE
========================================================= */

.join-page {
    width: 100%;
    max-width: 760px;

    min-height: 100vh;

    margin: 0 auto;

    background: #f7fff7;

    overflow: hidden;
}


/* =========================================================
   HEADER
========================================================= */

.join-header {
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 18px 32px;

    background: rgba(255,255,255,.96);
}

.join-logo img {
    display: block;

    width: 270px;
    max-width: 100%;
}

.join-tagline {
    color: #08783d;

    font-size: 18px;
    line-height: 1.05;

    text-align: right;

    font-style: italic;

    transform: rotate(-5deg);
}


/* =========================================================
   HERO
========================================================= */

.join-hero {
    min-height: 300px;

    position: relative;

    display: flex;

    background:
        radial-gradient(
            circle at 50% 30%,
            #ffffff 0,
            #f5fbef 45%,
            #e9f7df 100%
        );

    overflow: hidden;
}

.join-hero-copy {
    width: 56%;

    position: relative;
    z-index: 2;

    padding: 36px 0 35px 35px;
}

.join-hero-copy h1 {
    margin: 0 0 16px;

    max-width: 420px;

    font-size: 43px;
    line-height: 1.02;

    letter-spacing: -1.8px;
}

.join-hero-copy h1 span {
    color: #087b3c;
}

.join-hero-copy p {
    max-width: 340px;

    margin: 0;

    font-size: 19px;
    line-height: 1.3;
}

.join-hero-image {
    width: 44%;

    position: relative;
}

.join-hero-image img {
    position: absolute;

    height: 100%;

    right: 0;
    bottom: 0;

    object-fit: contain;
    object-position: bottom right;
}


/* =========================================================
   FORM CARD
========================================================= */

.join-card {
    position: relative;

    z-index: 5;

    width: calc(100% - 40px);

    margin: -10px auto 30px;

    padding: 24px 26px 28px;

    border-radius: 22px;

    background: white;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, .08);
}


/* =========================================================
   PROGRESS
========================================================= */

.join-progress {
    display: grid;

    grid-template-columns:
        minmax(90px, auto)
        1fr
        minmax(90px, auto);

    align-items: start;

    margin: 0 20px 28px;
}

.progress-item {
    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 6px;

    color: #555;

    font-size: 15px;
}

.progress-number {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ebebeb;

    color: #333;

    font-size: 20px;
    font-weight: 700;
}

.progress-item.active {
    color: #067b3b;

    font-weight: 700;
}

.progress-item.active .progress-number {
    background: #078743;
    color: white;
}

.progress-line {
    height: 4px;

    margin-top: 19px;

    background: #ddd;

    overflow: hidden;
}

.progress-line span {
    display: block;

    width: 0%;
    height: 100%;

    background: #078743;

    transition: width .3s ease;
}


/* =========================================================
   STEPS
========================================================= */

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.mobile-step-heading {
    display: none;
}


/* =========================================================
   FORM FIELDS
========================================================= */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-size: 16px;
    font-weight: 700;
}

.form-group label span,
.gift-heading h3 span {
    color: #c30000;
}

.input-icon {
    position: relative;
}

.input-icon > i {
    position: absolute;

    left: 17px;
    top: 50%;

    transform: translateY(-50%);

    color: #616161;

    font-size: 18px;
}

.input-icon input {
    width: 100%;
    height: 55px;

    padding: 0 16px 0 51px;

    border: 1px solid #d6d6d6;
    border-radius: 10px;

    outline: none;

    background: #fff;

    font-size: 16px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.input-icon input:focus {
    border-color: #078743;

    box-shadow:
        0 0 0 3px rgba(7, 135, 67, .09);
}


/* =========================================================
   PHONE
========================================================= */

.phone-row {
    display: grid;

    grid-template-columns: 90px 1fr;

    gap: 8px;
}

.phone-row select {
    width: 100%;
    height: 55px;

    padding: 0 10px;

    border: 1px solid #d6d6d6;
    border-radius: 10px;

    background: white;

    font-size: 15px;
}

.field-note {
    display: block;

    margin-top: 6px;

    color: #777;

    font-size: 12px;
}


/* =========================================================
   GIFT
========================================================= */

.gift-heading,
.section-heading {
    display: flex;
    align-items: center;

    gap: 10px;

    margin: 25px 0 13px;
}

.gift-heading-icon,
.section-heading-icon {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #078743;

    color: white;

    font-size: 23px;
}

.gift-heading h3,
.section-heading h3 {
    margin: 0;

    color: #06793a;

    font-size: 20px;
}

.gift-heading p,
.section-heading p {
    margin: 2px 0 0;

    color: #333;

    font-size: 14px;
}

.gift-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;
}

.gift-option {
    cursor: pointer;
}

.gift-option input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.gift-option-inner {
    min-height: 235px;

    position: relative;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: flex-start;

    padding: 16px 12px;

    border: 2px solid transparent;
    border-radius: 13px;

    background: white;

    box-shadow:
        0 2px 12px rgba(0,0,0,.10);

    text-align: center;

    transition: all .2s ease;
}

.gift-option input:checked
+
.gift-option-inner {
    border-color: #078743;

    background: #f2fff7;

    box-shadow:
        0 2px 15px rgba(7,135,67,.18);
}

.gift-icon,
.gift-image-placeholder {
    height: 105px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 8px;

    color: #087c3d;

    font-size: 65px;
}

.wheel-icon {
    color: #087c3d;
}

.gift-option strong {
    font-size: 17px;
}

.gift-option span {
    margin-top: 3px;

    font-size: 13px;
    line-height: 1.25;
}

.radio-display {
    width: 22px;
    height: 22px;

    position: absolute;

    bottom: 10px;

    border: 2px solid #333;
    border-radius: 50%;
}

.gift-option input:checked
+
.gift-option-inner
.radio-display {
    border: 6px solid #078743;
}

.no-gift {
    grid-column: span 2;
}

.no-gift .gift-option-inner {
    min-height: 95px;

    flex-direction: row;
    justify-content: center;

    gap: 20px;

    padding-bottom: 15px;
}

.no-gift .gift-image-placeholder {
    height: 65px;

    margin: 0;

    color: #777;

    font-size: 50px;
}

.no-gift .radio-display {
    position: static;

    flex: 0 0 22px;
}


/* =========================================================
   BUTTON
========================================================= */

.join-button {
    width: 100%;
    height: 59px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 25px;

    margin-top: 22px;

    border: 0;
    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            #087b3c,
            #049447
        );

    color: white;

    cursor: pointer;

    font-size: 20px;
    font-weight: 700;
}

.join-button:hover {
    filter: brightness(.96);
}

.join-button:disabled {
    opacity: .65;

    cursor: not-allowed;
}


/* =========================================================
   STEP 2
========================================================= */

.interest-heading {
    margin: 15px 0 27px;
}

.interest-heading h2 {
    margin: 0 0 8px;

    font-size: 43px;
    line-height: .98;

    letter-spacing: -1.4px;
}

.interest-heading p {
    max-width: 480px;

    margin: 0;

    font-size: 17px;
    line-height: 1.3;
}

.interest-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 10px;
}

.interest-option {
    min-height: 118px;

    position: relative;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 12px 8px;

    border: 2px solid transparent;
    border-radius: 11px;

    background: white;

    box-shadow:
        0 2px 12px rgba(0,0,0,.09);

    cursor: pointer;

    text-align: center;
}

.interest-option > input {
    position: absolute;

    left: 9px;
    bottom: 9px;

    width: 16px;
    height: 16px;

    accent-color: #078743;
}

.interest-option i {
    color: #333;

    font-size: 33px;
}

.interest-option span {
    font-size: 13px;
    font-weight: 600;
}

.interest-option:has(input:checked) {
    border-color: #078743;

    background: #f3fff8;
}


/* =========================================================
   TIMEFRAME
========================================================= */

.timeframe-heading {
    margin-top: 27px;
}

.timeframe-options {
    display: flex;
    flex-direction: column;

    gap: 10px;

    margin: 4px 4px 24px;
}

.timeframe-options label {
    display: flex;
    align-items: center;

    gap: 10px;

    cursor: pointer;

    font-size: 16px;
}

.timeframe-options input {
    width: 21px;
    height: 21px;

    margin: 0;

    accent-color: #078743;
}


/* =========================================================
   CONSENT
========================================================= */

.consent-row {
    display: grid;

    grid-template-columns: 20px 1fr;

    align-items: start;

    gap: 10px;

    margin: 25px 5px 10px;

    cursor: pointer;
}

.consent-row input {
    width: 19px;
    height: 19px;

    margin: 1px 0 0;

    accent-color: #078743;
}

.consent-row span {
    color: #333;

    font-size: 12px;
    line-height: 1.4;
}


/* =========================================================
   BACK
========================================================= */

.back-button {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-top: 15px;

    border: 0;

    background: none;

    color: #222;

    cursor: pointer;

    font-size: 15px;
}


/* =========================================================
   SECURITY
========================================================= */

.secure-message {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 20px;

    color: #333;

    font-size: 13px;
}

.secure-message i {
    font-size: 22px;
}


/* =========================================================
   MESSAGE
========================================================= */

.form-message {
    display: none;

    margin-top: 15px;

    padding: 12px 14px;

    border-radius: 7px;

    font-size: 14px;
}

.form-message.error {
    display: block;

    background: #fff1f1;

    color: #a60000;
}

.form-message.success {
    display: block;

    background: #edfff3;

    color: #08783d;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 680px) {

    .join-page {
        max-width: none;
    }

    .join-header {
        height: 73px;

        padding: 13px 17px;
    }

    .join-logo img {
        width: 205px;
    }

    .join-tagline {
        display: none;
    }

    .join-hero {
        min-height: 255px;
    }

    .join-hero-copy {
        width: 62%;

        padding:
            27px
            0
            28px
            20px;
    }

    .join-hero-copy h1 {
        font-size: 31px;

        letter-spacing: -1px;
    }

    .join-hero-copy p {
        max-width: 220px;

        font-size: 14px;
    }

    .join-hero-image {
        width: 38%;
    }

    .join-card {
        width: calc(100% - 20px);

        margin-top: -8px;

        padding:
            20px
            15px
            24px;

        border-radius: 18px;
    }

    .join-progress {
        margin:
            0
            5px
            25px;
    }

    .progress-item {
        font-size: 12px;
    }

    .progress-number {
        width: 36px;
        height: 36px;

        font-size: 16px;
    }

    .progress-line {
        margin-top: 16px;
    }

    .gift-grid {
        grid-template-columns:
            repeat(3, 1fr);

        gap: 7px;
    }

    .gift-option-inner {
        min-height: 210px;

        padding: 12px 5px;
    }

    .gift-image-placeholder,
    .gift-icon {
        height: 90px;

        font-size: 52px;
    }

    .gift-option strong {
        font-size: 13px;
    }

    .gift-option span {
        font-size: 10px;
    }

    .interest-heading h2 {
        font-size: 35px;
    }

    .interest-grid {
        grid-template-columns:
            repeat(3, 1fr);

        gap: 8px;
    }

    .interest-option {
        min-height: 108px;
    }

    .interest-option i {
        font-size: 28px;
    }

    .interest-option span {
        font-size: 11px;
    }

}


@media (max-width: 430px) {

    .join-hero-copy h1 {
        font-size: 27px;
    }

    .gift-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .no-gift {
        grid-column: span 2;
    }

    .interest-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

}