/* =========================================================
   TIDES OF HOPE
   FAMILY DASHBOARD
========================================================= */

.volunteer-dashboard-page {
    background: #eef8fb;
    min-height: 100vh;
}

.volunteer-dashboard-hero {
    padding: 70px 0 50px;
}

.dashboard-hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 360px;
    gap: 32px;
    align-items: center;
}

.dashboard-hero-grid h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #082f49;
    margin-bottom: 14px;
}

.dashboard-hero-grid p {
    max-width: 850px;
    color: #36546b;
    line-height: 1.8;
}

.dashboard-profile-card {
    background: #ffffff;
    border-radius: 26px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(8, 47, 73, 0.12);
}

.dashboard-avatar {
    width: 92px;
    height: 92px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f9aa8, #0d3b66);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
}

.dashboard-profile-card h3 {
    color: #082f49;
    margin-bottom: 6px;
}

.dashboard-profile-card p {
    color: #64748b;
    margin-bottom: 14px;
}

.dashboard-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: #e0f7fa;
    color: #0f766e;
    font-weight: 800;
    font-size: 0.85rem;
}

.volunteer-dashboard-section {
    padding: 30px 0 90px;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 34px;
}

.dashboard-stat-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(8, 47, 73, 0.09);
}

.dashboard-stat-card span {
    font-size: 2rem;
    display: inline-block;
    margin-bottom: 12px;
}

.dashboard-stat-card h3 {
    font-size: 2rem;
    color: #082f49;
    margin-bottom: 4px;
}

.dashboard-stat-card p {
    color: #52677a;
    line-height: 1.5;
}

.dashboard-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.dashboard-action-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 26px;
    min-height: 260px;
    box-shadow: 0 12px 30px rgba(8, 47, 73, 0.09);
    display: flex;
    flex-direction: column;
}

.dashboard-action-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.dashboard-action-card h3 {
    color: #082f49;
    margin-bottom: 10px;
}

.dashboard-action-card p {
    color: #52677a;
    line-height: 1.65;
    margin-bottom: 16px;
}

.dashboard-action-card span,
.dashboard-action-card a {
    margin-top: auto;
    font-weight: 800;
    color: #0f9aa8;
    text-decoration: none;
}

.dashboard-action-card a:hover {
    text-decoration: underline;
}

@media (max-width: 1100px) {

    .dashboard-stats-grid,
    .dashboard-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .volunteer-dashboard-hero {
        padding: 48px 0 30px;
    }

    .dashboard-stats-grid,
    .dashboard-card-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-profile-card,
    .dashboard-action-card,
    .dashboard-stat-card {
        border-radius: 18px;
    }
}

/* =========================================================
   FAMILY PROFILE
========================================================= */

#familyProfileForm {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

#familyProfileForm label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
    color: #12385b;
}

#familyProfileForm input,
#familyProfileForm textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d7e4eb;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
}

#familyProfileForm textarea {
    resize: vertical;
}

#familyProfileForm input:focus,
#familyProfileForm textarea:focus {
    outline: none;
    border-color: #2da5a5;
}

#profilePreview {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    font-size: 48px;
}

#profileMessage {
    text-align: center;
    font-weight: 600;
    color: #2da5a5;
}

#familyProfileForm button {
    border: none;
    cursor: pointer;
}

#familyProfileForm a {
    text-align: center;
    color: #2da5a5;
    text-decoration: none;
    font-weight: 600;
}

#familyProfileForm a:hover {
    text-decoration: underline;
}

/* =========================================================
   FAMILY GRATITUDE WALL
========================================================= */

#gratitudeForm {
    max-width: 820px;
    margin: 0 auto 40px;
    display: grid;
    gap: 18px;
    text-align: left;
}

#gratitudeForm h2 {
    text-align: center;
    color: #082f49;
    margin-bottom: 8px;
}

#gratitudeForm label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 700;
    color: #12385b;
}

#gratitudeForm input,
#gratitudeForm textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d7e4eb;
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
    background: #ffffff;
}

#gratitudeForm textarea {
    min-height: 140px;
    resize: vertical;
}

#gratitudeForm input:focus,
#gratitudeForm textarea:focus {
    outline: none;
    border-color: #2da5a5;
}

#gratitudeMessageStatus {
    text-align: center;
    font-weight: 700;
    color: #0f9aa8;
}

#gratitudeForm button {
    border: none;
    cursor: pointer;
    width: 100%;
    padding: 14px 20px;
}

#gratitudeWall {
    margin-top: 30px;
}

#gratitudeWall .dashboard-action-card {
    min-height: 220px;
}

#gratitudeWall strong {
    margin-top: auto;
    color: #0f766e;
}