@import url('https://fonts.googleapis.com/css2?family=Baloo+Da+2:wght@400;500;600;700;800&family=Hind+Siliguri:wght@400;500;600;700&family=Noto+Sans+Bengali:wght@400;700&family=Atma:wght@400;700&family=Noto+Serif+Bengali:wght@400;500;600;700&display=swap');

/* =====================================================================
   পাব্লিক সদস্য ফর্ম — সবুজ প্রকৃতি থিম (ফুলকুঁড়ি ব্রোশিউর অনুপ্রাণিত)
   ===================================================================== */
:root {
    --forest-dark:  #14432B;
    --forest:       #1F6B3F;
    --lime:         #8BC53F;
    --marigold:     #F5A623;
    --sun:          #FDB813;
    --leaf:         #3FA772;
    --sky:          #3FA9D6;
    --petal:        #F0678C;
    --violet:       #8B6CC6;
    --cream:        #FFFDF6;
    --ink:          #1F3A2E;
    --ink-soft:     #4C5F55;
    --heading-font: 'Baloo Da 2', 'Hind Siliguri', sans-serif;
}

* { box-sizing: border-box; }

body.public-body {
    font-family: 'Noto Serif Bengali', 'Hind Siliguri', serif;
    margin: 0;
    color: var(--ink);
    position: relative;
    overflow-x: hidden;
    font-size: 17px;
    line-height: 1.7;
    background:
        radial-gradient(circle at 15% 15%, rgba(139,197,63,0.18), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(245,166,35,0.14), transparent 45%),
        linear-gradient(160deg, var(--forest-dark) 0%, var(--forest) 55%, #2C7D4A 100%);
    background-attachment: fixed;
}

/* ---------------- সাজসজ্জামূলক ব্যাকগ্রাউন্ড (ফুল/ঘুড়ি) ---------------- */
.decor {
    position: fixed;
    z-index: 0;
    opacity: 0.95;
    pointer-events: none;
}
.decor svg { display: block; }
.decor-tl { top: -20px; left: -30px; width: 160px; }
.decor-tr { top: 40px; right: -30px; width: 130px; }
.decor-bl { bottom: -10px; left: -20px; width: 150px; }
.decor-br { bottom: 20px; right: -25px; width: 170px; }
@media (max-width: 700px) {
    .decor { transform: scale(0.6); opacity: 0.6; }
}

/* ---------------- হেডার ---------------- */
.public-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 34px 20px 26px;
}
.public-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cream);
    border: 2px solid var(--sun);
    color: var(--ink);
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    font-family: 'Hind Siliguri', sans-serif;
}
.public-hero h1 {
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: clamp(32px, 5.5vw, 46px);
    margin: 0 0 10px;
    color: var(--sun);
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.public-hero p {
    color: #EAF6EC;
    font-size: 18px;
    max-width: 560px;
    margin: 0 auto;
    font-family: 'Hind Siliguri', sans-serif;
}
.status-link {
    display: inline-block;
    margin-top: 14px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px dashed var(--sun);
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 16px;
}

/* ---------------- দুই-কলাম লেআউট (বামে বিস্তারিত, ডানে ফর্ম) ---------------- */
.public-layout {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 18px 60px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: start;
}
@media (min-width: 992px) {
    .public-layout { grid-template-columns: 400px 1fr; }
    .about-card {
        position: sticky;
        top: 20px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
}

.form-card {
    background: var(--cream);
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}
@media (max-width: 600px) {
    .form-card { padding: 22px 18px; border-radius: 18px; }
}

/* ---------------- একক-কার্ড পেজের জন্য (status check, success) ---------------- */
.public-container {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 18px 60px;
}

.alert { padding: 13px 17px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; font-family: 'Hind Siliguri', sans-serif; }
.alert-error { background: #FDEAEA; color: #A32F3E; border: 2px solid #F3B7C0; }
.alert-success { background: #E6F6EC; color: #1E7A46; border: 2px solid #A9E0BE; }

/* ---------------- সংগঠন পরিচিতি কার্ড ---------------- */
.about-card {
    background: var(--cream);
    border: 3px solid var(--marigold);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}
.about-title {
    font-family: var(--heading-font);
    color: var(--forest);
    text-align: center;
    font-size: 28px;
    margin-top: 0;
}
.about-card h3 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--forest);
    font-size: 19px;
    margin: 22px 0 8px;
    border-left: 5px solid var(--marigold);
    padding-left: 10px;
}
.about-card p { line-height: 1.85; color: var(--ink); font-size: 16px; }
.about-card strong { color: var(--forest); }

/* ---------------- ঘোষণাপত্র (চিঠির স্টাইল) ---------------- */
.declaration-letter {
    background: #fff;
    border: 2px dashed var(--marigold);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.85;
    font-family: 'Noto Serif Bengali', serif;
}
.declaration-letter p { margin: 0 0 12px; }
.declaration-letter p:last-child { margin-bottom: 0; }

/* ---------------- সেকশন (fieldset) — প্রতিটার নিজস্ব রঙ ---------------- */
fieldset {
    border: none;
    border-radius: 16px;
    padding: 20px 20px 10px;
    margin: 0 0 24px;
    position: relative;
}
legend {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 19px;
    padding: 5px 16px;
    border-radius: 20px;
    color: #fff;
}

fieldset.sec-1 { background: #FFF7E0; } legend.sec-1 { background: var(--sun); color: #4A3300; }
fieldset.sec-2 { background: #EAF7F0; } legend.sec-2 { background: var(--leaf); }
fieldset.sec-3 { background: #E9F5FB; } legend.sec-3 { background: var(--sky); }
fieldset.sec-4 { background: #FCEBF1; } legend.sec-4 { background: var(--petal); }
fieldset.sec-5 { background: #F1EDFA; } legend.sec-5 { background: var(--violet); }
fieldset.sec-6 { background: #FFF7E0; } legend.sec-6 { background: var(--sun); color: #4A3300; }
fieldset.sec-7 { background: #EAF7F0; } legend.sec-7 { background: var(--leaf); }
fieldset.sec-8 { background: #E9F5FB; } legend.sec-8 { background: var(--sky); }
fieldset.sec-9 { background: #FCEBF1; } legend.sec-9 { background: var(--petal); }

label { display: block; margin: 14px 0 5px; font-weight: 600; font-size: 15.5px; color: var(--ink); font-family: 'Hind Siliguri', sans-serif; }
input[type=text], input[type=date], input[type=tel], input[type=email],
input[type=password], select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #DCD3B8;
    border-radius: 10px;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 16px;
    background: #fff;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(31,107,63,0.18);
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 16px;
    padding: 4px 0 10px;
}
.checkbox-group label {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    background: #fff;
    border: 1px solid #DCD3B8;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 15px;
    font-family: 'Hind Siliguri', sans-serif;
}
.checkbox-group input { width: auto; }

.row { display: flex; gap: 18px; flex-wrap: wrap; }
.row > div { flex: 1; min-width: 220px; }

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--forest), var(--lime));
    color: #fff;
    border: none;
    padding: 15px 36px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--heading-font);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(31,107,63,0.4);
}
.btn:hover { filter: brightness(1.08); }
.btn-block { width: 100%; text-align: center; margin-top: 8px; }

.helper { color: var(--ink-soft); font-size: 14px; margin-top: 4px; font-family: 'Hind Siliguri', sans-serif; }
.badge { padding: 5px 15px; border-radius: 20px; font-size: 14px; color: #fff; font-weight: 600; font-family: 'Hind Siliguri', sans-serif; }
.badge-pending { background: var(--sun); color: #4A3300; }
.badge-approved { background: var(--leaf); }
.badge-rejected { background: #C0392B; }
