﻿.member-page {
    background: #fbf7ef;
    min-height: 100vh;
}

/* HERO */
.member-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, rgba(45, 28, 18, 0.78), rgba(15, 76, 117, 0.72)), url('/images/church-community.jpg') center/cover no-repeat;
    overflow: hidden;
}

    .member-hero::before {
        content: "";
        position: absolute;
        inset: 24px;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 28px;
        pointer-events: none;
    }

    .member-hero::after {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        background: rgba(255, 209, 102, 0.22);
        border-radius: 50%;
        right: -150px;
        bottom: -180px;
    }

.member-hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    text-align: center;
    color: #ffffff;
}

.member-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffd166;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-bottom: 1.2rem;
}

.member-hero h1 {
    font-size: clamp(2.7rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 5px 24px rgba(0, 0, 0, 0.45);
}

.member-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: #fff7df;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* CONTENT */
.member-content {
    padding-top: 4rem;
    padding-bottom: 4.5rem;
}

.member-intro {
    max-width: 760px;
    margin: 0 auto 2.4rem;
    text-align: center;
}

    .member-intro h2 {
        color: #2d1c12;
        font-weight: 900;
        font-size: clamp(2rem, 4vw, 3.2rem);
        margin-bottom: 0.75rem;
    }

    .member-intro p {
        color: #6b5b4d;
        font-size: 1.05rem;
        line-height: 1.75;
    }

/* SERVICE CARDS */
.member-service-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
    margin-bottom: 4rem;
}

.member-option-card {
    position: relative;
    background: #ffffff;
    border-radius: 30px;
    padding: 2rem;
    border: 1px solid #eadfce;
    box-shadow: 0 20px 45px rgba(45, 28, 18, 0.09);
    transition: all 0.28s ease;
    overflow: hidden;
}

    .member-option-card::after {
        content: "";
        position: absolute;
        width: 170px;
        height: 170px;
        right: -80px;
        top: -80px;
        border-radius: 50%;
        background: rgba(255, 209, 102, 0.22);
    }

    .member-option-card.update::after {
        background: rgba(15, 76, 117, 0.14);
    }

    .member-option-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 28px 65px rgba(45, 28, 18, 0.15);
    }

.member-option-icon {
    position: relative;
    z-index: 2;
    width: 68px;
    height: 68px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 1.75rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #7a4b17, #d69e2e);
    box-shadow: 0 14px 32px rgba(122, 75, 23, 0.22);
}

.member-option-card.update .member-option-icon {
    background: linear-gradient(135deg, #102a43, #0f4c75);
    box-shadow: 0 14px 32px rgba(15, 76, 117, 0.22);
}

.member-option-card h3 {
    position: relative;
    z-index: 2;
    color: #2d1c12;
    font-weight: 900;
    font-size: 1.45rem;
    margin-bottom: 0.7rem;
}

.member-option-card p {
    position: relative;
    z-index: 2;
    color: #6b5b4d;
    line-height: 1.75;
}

.member-contact-box {
    position: relative;
    z-index: 2;
    margin: 1.2rem 0;
    padding: 1rem;
    border-radius: 20px;
    background: #fff8e6;
    border: 1px solid #f3dfaa;
}

    .member-contact-box span {
        display: block;
        color: #7a5200;
        font-weight: 800;
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .member-contact-box a,
    .member-contact-box strong {
        color: #2d1c12;
        font-weight: 900;
        text-decoration: none;
    }

    .member-contact-box.soft {
        background: #eef5fb;
        border-color: #d5e6f2;
    }

        .member-contact-box.soft span {
            color: #0f4c75;
        }

.member-primary-link,
.member-secondary-link {
    position: relative;
    z-index: 2;
    min-height: 50px;
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    text-decoration: none;
    font-weight: 900;
    transition: all 0.25s ease;
}

.member-primary-link {
    background: #d69e2e;
    color: #2d1c12;
}

.member-secondary-link {
    background: #102a43;
    color: #ffffff;
}

    .member-primary-link:hover,
    .member-secondary-link:hover {
        transform: translateY(-2px);
    }

.member-primary-link:hover {
    color: #2d1c12;
    background: #f6c85f;
}

.member-secondary-link:hover {
    color: #ffffff;
    background: #0f4c75;
}

/* FORM SECTION */
.address-update-section {
    position: relative;
    border-radius: 34px;
    padding: 2.4rem;
    background: radial-gradient(circle at top left, rgba(255, 209, 102, 0.26), transparent 32%), linear-gradient(135deg, #ffffff, #fffaf0);
    border: 1px solid #eadfce;
    box-shadow: 0 24px 58px rgba(45, 28, 18, 0.10);
}

.address-update-heading {
    max-width: 780px;
    margin-bottom: 1.5rem;
}

    .address-update-heading span {
        color: #0f4c75;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        font-size: 0.78rem;
    }

    .address-update-heading h2 {
        color: #2d1c12;
        font-weight: 900;
        font-size: clamp(1.8rem, 4vw, 2.8rem);
        margin: 0.35rem 0 0.6rem;
    }

    .address-update-heading p {
        color: #6b5b4d;
        line-height: 1.75;
    }

.address-update-form {
    background: #ffffff;
    padding: 1.4rem;
    border-radius: 26px;
    border: 1px solid #eadfce;
    box-shadow: 0 18px 42px rgba(45, 28, 18, 0.07);
}

.member-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.member-form-group {
    display: grid;
    gap: 0.4rem;
}

    .member-form-group.full {
        grid-column: 1 / -1;
    }

    .member-form-group label {
        color: #2d1c12;
        font-size: 0.9rem;
        font-weight: 900;
    }

    .member-form-group small {
        color: #7b6a58;
        font-size: 0.8rem;
        font-weight: 700;
    }

.member-input {
    width: 100%;
    min-height: 52px;
    border: 1px solid #e1d3bf;
    border-radius: 16px;
    padding: 0.8rem 0.95rem;
    color: #2d1c12;
    background: #fffefe;
    outline: none;
    transition: all 0.2s ease;
}

    .member-input:focus {
        border-color: #d69e2e;
        box-shadow: 0 0 0 4px rgba(214, 158, 46, 0.16);
        background: #ffffff;
    }

.textarea {
    min-height: 125px;
    resize: vertical;
}

.validation-message {
    color: #b42318;
    font-size: 0.82rem;
    font-weight: 800;
}

.member-submit-button {
    margin-top: 1.2rem;
    width: 100%;
    min-height: 54px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #102a43, #0f4c75);
    color: #ffffff;
    font-weight: 900;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
    transition: all 0.25s ease;
}

    .member-submit-button:hover {
        transform: translateY(-2px);
        background: linear-gradient(135deg, #0f4c75, #102a43);
    }

.member-success-message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 20px;
    background: #ecfdf3;
    color: #067647;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    border: 1px solid #abefc6;
}

    .member-success-message i {
        font-size: 1.4rem;
    }

    .member-success-message strong {
        display: block;
        margin-bottom: 0.25rem;
    }

    .member-success-message p {
        margin-bottom: 0;
        color: #067647;
    }

/* RESPONSIVE */
@media (max-width: 992px) {
    .member-service-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .member-hero {
        min-height: 360px;
        padding: 4.2rem 1rem;
    }

        .member-hero::before {
            inset: 14px;
            border-radius: 22px;
        }

    .member-content {
        padding-top: 3rem;
    }

    .address-update-section {
        padding: 1.3rem;
        border-radius: 26px;
    }

    .address-update-form {
        padding: 1rem;
    }

    .member-form-grid {
        grid-template-columns: 1fr;
    }
}


.member-link-button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.reveal-section {
    animation: memberReveal 0.45s ease both;
}

@keyframes memberReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Verification */
.member-verification-panel {
    margin-top: 0;
}

.member-verification-card {
    background: #ffffff;
    padding: 1.6rem;
    border-radius: 26px;
    border: 1px solid #eadfce;
    box-shadow: 0 18px 42px rgba(45, 28, 18, 0.07);
    text-align: center;
}

.member-verification-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #102a43, #0f4c75);
    color: #ffd166;
    font-size: 1.8rem;
    box-shadow: 0 14px 30px rgba(16, 42, 67, 0.18);
}

    .member-verification-icon.expired {
        background: linear-gradient(135deg, #7a5200, #b7791f);
        color: #fff8e6;
    }

    .member-verification-icon.error {
        background: linear-gradient(135deg, #7f1d1d, #b42318);
        color: #ffffff;
    }

.member-verification-card h3 {
    color: #2d1c12;
    font-weight: 900;
    margin-bottom: 0.65rem;
}

.member-verification-text {
    color: #6b5b4d;
    line-height: 1.75;
    max-width: 620px;
    margin: 0 auto 1.2rem;
}

.member-verification-warning {
    margin: 0 auto 1.2rem;
    max-width: 560px;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: #fff8e6;
    color: #7a5200;
    border: 1px solid #f7d98b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-weight: 800;
}

.member-verification-code-area {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.2rem;
}

.member-timer-display {
    min-height: 72px;
    border-radius: 18px;
    background: #fff8e6;
    border: 1px solid #f3dfaa;
    color: #7a5200;
    display: grid;
    place-items: center;
    padding: 0.75rem;
}

    .member-timer-display span {
        font-size: 1.45rem;
        font-weight: 900;
        line-height: 1;
    }

    .member-timer-display small {
        display: block;
        color: #8b6b2b;
        font-weight: 800;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

.member-verification-input-group {
    text-align: left;
}

    .member-verification-input-group label {
        color: #2d1c12;
        font-weight: 900;
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
        display: block;
    }

.member-verification-input-wrapper {
    min-height: 72px;
    display: flex;
    align-items: center;
    border: 1px solid #e1d3bf;
    border-radius: 18px;
    background: #fffefe;
    overflow: hidden;
    transition: all 0.2s ease;
}

    .member-verification-input-wrapper:focus-within {
        border-color: #d69e2e;
        box-shadow: 0 0 0 4px rgba(214, 158, 46, 0.16);
        background: #ffffff;
    }

    .member-verification-input-wrapper i {
        width: 54px;
        color: #7a5200;
        font-size: 1.15rem;
        text-align: center;
    }

.member-verification-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #2d1c12;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding-right: 1rem;
}

    .member-verification-input::placeholder {
        color: #9d8d7c;
        letter-spacing: normal;
        font-weight: 600;
    }

.member-submit-button:disabled {
    background: #a9a29a;
    cursor: not-allowed;
    transform: none;
    opacity: 0.75;
}

.member-back-button {
    margin-top: 0.8rem;
    width: 100%;
    min-height: 50px;
    border: 1px solid #eadfce;
    border-radius: 16px;
    background: #fffaf0;
    color: #7a5200;
    font-weight: 900;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
    transition: all 0.25s ease;
}

    .member-back-button:hover {
        background: #fff3d6;
        transform: translateY(-2px);
    }

.member-success-final {
    background: #ffffff;
    padding: 2rem;
    border-radius: 26px;
    border: 1px solid #abefc6;
    box-shadow: 0 18px 42px rgba(45, 28, 18, 0.07);
    text-align: center;
}

.member-success-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 1rem;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: #ecfdf3;
    color: #067647;
    font-size: 2rem;
}

.member-success-final h3 {
    color: #2d1c12;
    font-weight: 900;
    margin-bottom: 0.65rem;
}

.member-success-final p {
    color: #6b5b4d;
    line-height: 1.75;
    max-width: 620px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .member-verification-code-area {
        grid-template-columns: 1fr;
    }

    .member-verification-card {
        padding: 1.1rem;
        border-radius: 22px;
    }

    .member-timer-display {
        min-height: 64px;
    }
}

.member-link-button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.reveal-section {
    animation: memberReveal 0.45s ease both;
}

@keyframes memberReveal {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}