/* Edirisinharamaya Sanwardhaniya Aramudala - Mobile Entry UI */
:root {
    --edb-m-gold: #c99a2e;
    --edb-m-gold-dark: #8f6413;
    --edb-m-cream: #fff8e6;
    --edb-m-ink: #241a0d;
    --edb-m-muted: #72644e;
    --edb-m-border: #ead8a8;
}

.edb-mobile-wrap {
    max-width: 760px;
    margin: 18px auto 42px;
    padding: 14px;
    color: var(--edb-m-ink);
    font-family: inherit;
}

.edb-mobile-wrap * {
    box-sizing: border-box;
}

.edb-mobile-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 14% 4%, rgba(255, 217, 106, .42), transparent 38%),
        linear-gradient(135deg, #fffdf8, #fff1c5 56%, #ffffff);
    border: 1px solid rgba(201, 154, 46, .24);
    box-shadow: 0 20px 48px rgba(98, 64, 13, .13);
    animation: edbMobileIn .55s ease both;
}

.edb-mobile-mark {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: #fff;
    font-size: 32px;
    background: linear-gradient(145deg, #e4b54a, #8f6413);
    box-shadow: 0 12px 24px rgba(143, 100, 19, .25);
    animation: edbMobileGlow 2.2s ease-in-out infinite;
}

.edb-mobile-hero h2 {
    margin: 0 0 6px;
    font-size: clamp(22px, 5vw, 32px);
    line-height: 1.2;
    font-weight: 900;
    color: var(--edb-m-ink);
}

.edb-mobile-hero p {
    margin: 0;
    line-height: 1.65;
    color: var(--edb-m-muted);
    font-size: 15px;
}

.edb-mobile-card,
.edb-mobile-alert {
    margin-top: 16px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--edb-m-border);
    box-shadow: 0 14px 36px rgba(92, 63, 16, .1);
    animation: edbMobileIn .62s ease both;
}

.edb-mobile-card {
    padding: 18px;
}

.edb-mobile-login,
.edb-mobile-error {
    text-align: center;
}

.edb-mobile-alert {
    padding: 14px 16px;
    font-weight: 800;
}

.edb-mobile-success {
    border-color: #b6d8b9;
    background: #f3fff2;
    color: #24632b;
}

.edb-mobile-error {
    border-color: #f1beb8;
    background: #fff4f2;
    color: #8b2f22;
}

.edb-mobile-form label {
    display: block;
    margin-bottom: 14px;
    font-weight: 850;
    color: #3b321f;
    line-height: 1.5;
}

.edb-mobile-form input,
.edb-mobile-form select,
.edb-mobile-form textarea {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    padding: 11px 13px;
    border: 1px solid #dcc896;
    border-radius: 16px;
    background: #fffdf7;
    color: var(--edb-m-ink);
    font-size: 16px;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.edb-mobile-form textarea {
    min-height: 104px;
    resize: vertical;
}

.edb-mobile-form input:focus,
.edb-mobile-form select:focus,
.edb-mobile-form textarea:focus {
    border-color: var(--edb-m-gold);
    box-shadow: 0 0 0 4px rgba(201, 154, 46, .16);
    transform: translateY(-1px);
}

.edb-mobile-section-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff3ca;
    color: var(--edb-m-gold-dark);
    font-weight: 900;
    border: 1px solid rgba(201, 154, 46, .26);
}

.edb-mobile-section-title::before {
    content: "✦";
}

.edb-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.edb-mobile-new-donor {
    padding: 14px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 248, 230, .9), rgba(255, 255, 255, .82));
    border: 1px dashed #dec68b;
    margin: 4px 0 16px;
}

.edb-mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(145deg, #e3b145, #9d6b13);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(143, 100, 19, .24);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.edb-mobile-btn:hover,
.edb-mobile-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(143, 100, 19, .3);
    filter: brightness(1.02);
}

.edb-mobile-submit.edb-saving {
    opacity: .82;
    pointer-events: none;
}

.edb-mobile-footnote {
    margin: 12px 4px 0;
    color: var(--edb-m-muted);
    text-align: center;
    font-size: 13px;
    line-height: 1.55;
}

@keyframes edbMobileIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes edbMobileGlow {
    0%, 100% { transform: translateY(0); box-shadow: 0 12px 24px rgba(143, 100, 19, .25); }
    50% { transform: translateY(-2px); box-shadow: 0 18px 32px rgba(143, 100, 19, .32); }
}

@media (max-width: 640px) {
    .edb-mobile-wrap {
        padding: 10px;
        margin-top: 8px;
    }
    .edb-mobile-hero {
        align-items: flex-start;
        padding: 16px;
        border-radius: 24px;
    }
    .edb-mobile-mark {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        font-size: 28px;
    }
    .edb-mobile-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .edb-mobile-card {
        padding: 15px;
        border-radius: 22px;
    }
}


/* Version 1.3.0 - Centered temple logo mobile branding */
.edb-mobile-wrap {
    text-align: center;
}

.edb-mobile-hero {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 12px;
}

.edb-mobile-mark {
    width: 118px;
    height: 118px;
    flex: 0 0 118px;
    padding: 6px;
    border-radius: 999px;
    background: #fff;
    border: 5px solid #fff5d2;
    box-shadow:
        0 16px 34px rgba(143, 100, 19, .24),
        0 0 0 1px rgba(201, 154, 46, .28);
    overflow: hidden;
}

.edb-mobile-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
}

.edb-mobile-hero-text {
    max-width: 620px;
    margin: 0 auto;
}

.edb-mobile-card,
.edb-mobile-alert,
.edb-mobile-new-donor {
    text-align: center;
}

.edb-mobile-form label {
    text-align: center;
}

.edb-mobile-form input,
.edb-mobile-form select,
.edb-mobile-form textarea {
    text-align: center;
}

.edb-mobile-section-title {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.edb-mobile-submit,
.edb-mobile-btn {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 640px) {
    .edb-mobile-hero {
        align-items: center;
    }
    .edb-mobile-mark {
        width: 96px;
        height: 96px;
        flex-basis: 96px;
    }
}


/* Version 1.3.2 - Main words/headings moved to left side for easier mobile entry */
.edb-mobile-wrap {
    text-align: left;
}

.edb-mobile-hero {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.edb-mobile-mark {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
}

.edb-mobile-hero-text {
    margin: 0;
    text-align: left;
}

.edb-mobile-card,
.edb-mobile-alert,
.edb-mobile-new-donor,
.edb-mobile-form label,
.edb-mobile-form input,
.edb-mobile-form select,
.edb-mobile-form textarea,
.edb-mobile-footnote {
    text-align: left;
}

.edb-mobile-section-title {
    margin-left: 0;
    margin-right: auto;
    justify-content: flex-start;
    text-align: left;
}

.edb-mobile-submit,
.edb-mobile-btn {
    margin-left: 0;
    margin-right: auto;
}

@media (max-width: 640px) {
    .edb-mobile-hero {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }
    .edb-mobile-hero-text {
        width: 100%;
        text-align: left;
    }
    .edb-mobile-mark {
        width: 94px;
        height: 94px;
        flex-basis: 94px;
    }
}

/* Version 1.4.0 - Premium mobile app beautification */
.edb-mobile-wrap {
    max-width: 790px;
    margin-top: 12px;
    padding: 14px;
}

.edb-mobile-wrap::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 12% 2%, rgba(246, 200, 95, .26), transparent 28%),
        radial-gradient(circle at 92% 12%, rgba(143,100,19,.12), transparent 30%),
        linear-gradient(180deg, #fffdf8 0%, #fff7e2 52%, #ffffff 100%);
    pointer-events: none;
}

.edb-mobile-hero {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 14% 12%, rgba(255, 224, 128, .52), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,240,194,.92));
    border: 1px solid rgba(201,154,46,.26);
    box-shadow:
        0 22px 54px rgba(92,63,16,.14),
        inset 0 1px 0 rgba(255,255,255,.92);
}

.edb-mobile-hero::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(135deg, #f6c85f 0%, #d19b2d 42%, #8d5f12 100%);
}

.edb-mobile-mark {
    width: 98px;
    height: 98px;
    flex-basis: 98px;
    border-width: 6px;
    box-shadow:
        0 18px 38px rgba(143,100,19,.25),
        0 0 0 8px rgba(201,154,46,.08);
}

.edb-mobile-hero h2 {
    font-size: clamp(23px, 5.6vw, 34px);
    letter-spacing: -.35px;
}

.edb-mobile-hero p {
    color: #5f5139;
}

.edb-mobile-card,
.edb-mobile-alert,
.edb-mobile-new-donor {
    border-radius: 28px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(226,201,139,.88);
    box-shadow:
        0 18px 44px rgba(92,63,16,.10),
        inset 0 1px 0 rgba(255,255,255,.92);
}

.edb-mobile-card {
    padding: 20px;
}

.edb-mobile-form label {
    padding: 10px 11px 12px;
    border: 1px solid rgba(231,213,169,.68);
    border-radius: 19px;
    background: linear-gradient(135deg, rgba(255,251,240,.92), rgba(255,255,255,.76));
}

.edb-mobile-form input,
.edb-mobile-form select,
.edb-mobile-form textarea {
    min-height: 50px;
    border-radius: 17px;
    background: rgba(255,255,255,.96);
    border-color: rgba(202,174,108,.9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.edb-mobile-form input:hover,
.edb-mobile-form select:hover,
.edb-mobile-form textarea:hover {
    border-color: rgba(201,154,46,.72);
}

.edb-mobile-form input:focus,
.edb-mobile-form select:focus,
.edb-mobile-form textarea:focus {
    box-shadow: 0 0 0 4px rgba(201,154,46,.18), 0 10px 22px rgba(92,63,16,.07);
}

.edb-mobile-section-title {
    padding: 10px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff5d2, #fffdf7);
    box-shadow: 0 8px 18px rgba(92,63,16,.06);
}

.edb-mobile-section-title::before {
    content: "☸";
}

.edb-mobile-new-donor {
    border-style: solid;
    background:
        radial-gradient(circle at 88% 10%, rgba(255,224,128,.3), transparent 28%),
        linear-gradient(135deg, rgba(255,249,232,.96), rgba(255,255,255,.9));
}

.edb-mobile-btn {
    position: relative;
    overflow: hidden;
    min-height: 56px;
    border-radius: 19px;
    background: linear-gradient(135deg, #f6c85f 0%, #d19b2d 42%, #8d5f12 100%);
    box-shadow: 0 16px 34px rgba(143,100,19,.26);
}

.edb-mobile-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.45) 40%, transparent 78%);
    transform: translateX(-130%);
    transition: transform .6s ease;
}

.edb-mobile-btn:hover::after,
.edb-mobile-btn:focus::after {
    transform: translateX(130%);
}

.edb-mobile-success {
    border-color: rgba(83, 151, 83, .32);
    background: linear-gradient(135deg, #f2fff1, #ffffff);
}

.edb-mobile-error {
    border-color: rgba(194, 88, 70, .28);
    background: linear-gradient(135deg, #fff4f1, #ffffff);
}

.edb-donor-filter {
    background-image: linear-gradient(90deg, rgba(255,243,202,.7), rgba(255,255,255,.95));
}

@media (max-width: 640px) {
    .edb-mobile-wrap {
        padding: 9px;
    }
    .edb-mobile-hero {
        padding: 18px;
        border-radius: 24px;
    }
    .edb-mobile-mark {
        width: 90px;
        height: 90px;
        flex-basis: 90px;
    }
    .edb-mobile-card {
        padding: 15px;
        border-radius: 23px;
    }
    .edb-mobile-form label {
        padding: 9px;
    }
}
