/* ============================================================
   CareBear Foundation — Volunteer Page
   Page-specific styles only. Shared base styles are in style.css.
   ============================================================ */

/* ============================================================
   HERO CTA BUTTONS (volunteer-specific overrides)
   ============================================================ */
.cb-page-hero .cb-hero-cta {
    margin-top: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: cb-fade-in-up 0.8s ease-out 0.6s both;
}

.cb-btn-ghost-light {
    background: rgba(255, 255, 255, 0.1);
    color: var(--cb-white);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    transition: var(--cb-transition);
}

.cb-btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
}

/* ============================================================
   IMPACT STRIP (top counters below hero)
   ============================================================ */
.cb-impact-strip {
    padding: 0;
    margin-top: -40px;
    position: relative;
    z-index: 3;
}

.cb-impact-strip-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--cb-white);
    border-radius: var(--cb-radius-xl);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--cb-gray-border);
    overflow: hidden;
}

.cb-impact-item {
    padding: 32px 24px;
    text-align: center;
    position: relative;
}

.cb-impact-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0; top: 20%;
    height: 60%; width: 1px;
    background: var(--cb-gray-border);
}

.cb-impact-num {
    font-family: var(--cb-font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--cb-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.cb-impact-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--cb-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   WHY VOLUNTEER SECTION
   ============================================================ */
.cb-why-vol-section {
    padding: 100px 0;
}

.cb-why-vol-header {
    text-align: center;
    margin-bottom: 56px;
}

.cb-why-vol-header .cb-section-subtitle { margin: 0 auto; }

.cb-why-vol-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.cb-why-vol-card {
    background: var(--cb-white);
    border-radius: var(--cb-radius-xl);
    padding: 36px;
    border: 1px solid var(--cb-gray-border);
    transition: var(--cb-transition);
    position: relative;
    overflow: hidden;
}

.cb-why-vol-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--cb-shadow-lg);
    border-color: var(--cb-primary);
}

.cb-why-vol-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cb-primary), var(--cb-primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.cb-why-vol-card:hover::before { transform: scaleX(1); }

.cb-why-vol-card-icon {
    width: 56px; height: 56px;
    border-radius: var(--cb-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--cb-white);
}

.cb-why-vol-card-icon.bronze { background: linear-gradient(135deg, var(--cb-primary), var(--cb-primary-dark)); }
.cb-why-vol-card-icon.green { background: linear-gradient(135deg, var(--cb-secondary), var(--cb-secondary-dark)); }
.cb-why-vol-card-icon.purple { background: linear-gradient(135deg, #7c3aed, #5b21b6); }

.cb-why-vol-card h3 { font-size: 20px; margin-bottom: 10px; }

.cb-why-vol-card p {
    font-size: 15px;
    color: var(--cb-gray);
    line-height: 1.8;
}

/* ============================================================
   VOLUNTEER ROLES GRID
   ============================================================ */
.cb-roles-section {
    padding: 100px 0;
    background: var(--cb-bg);
}

.cb-roles-header {
    text-align: center;
    margin-bottom: 56px;
}

.cb-roles-header .cb-section-subtitle { margin: 0 auto; }

.cb-roles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.cb-role-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    background: var(--cb-white);
    border-radius: var(--cb-radius-xl);
    padding: 32px;
    border: 1px solid var(--cb-gray-border);
    transition: var(--cb-transition);
    align-items: start;
}

.cb-role-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cb-shadow-lg);
    border-color: var(--cb-primary);
}

.cb-role-icon {
    width: 80px; height: 80px;
    border-radius: var(--cb-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cb-role-icon.edu { background: linear-gradient(135deg, rgba(39, 174, 96, 0.12), rgba(39, 174, 96, 0.04)); color: var(--cb-secondary); }
.cb-role-icon.water { background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.04)); color: #3b82f6; }
.cb-role-icon.health { background: linear-gradient(135deg, rgba(162, 117, 75, 0.12), rgba(162, 117, 75, 0.04)); color: var(--cb-primary); }
.cb-role-icon.energy { background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04)); color: #d97706; }
.cb-role-icon.agri { background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04)); color: #059669; }

.cb-role-content h3 { font-size: 20px; margin-bottom: 8px; }

.cb-role-content p {
    font-size: 14px;
    color: var(--cb-gray);
    line-height: 1.7;
    margin-bottom: 14px;
}

.cb-role-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cb-role-tag {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--cb-gray);
    background: var(--cb-bg);
    border: 1px solid var(--cb-gray-border);
    border-radius: 50px;
    letter-spacing: 0.3px;
}

/* ============================================================
   HOW IT WORKS — PROCESS STEPS
   ============================================================ */
.cb-process-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cb-process-header {
    text-align: center;
    margin-bottom: 64px;
}

.cb-process-header .cb-section-subtitle { margin: 0 auto; }

.cb-process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.cb-process-steps::before {
    content: '';
    position: absolute;
    top: 48px;
    left: calc(12.5% + 12px);
    right: calc(12.5% + 12px);
    height: 3px;
    background: var(--cb-gray-border);
    border-radius: 2px;
    z-index: 0;
}

.cb-process-step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 16px;
}

.cb-step-circle {
    width: 96px; height: 96px;
    border-radius: 50%;
    background: var(--cb-white);
    border: 3px solid var(--cb-gray-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: var(--cb-transition);
    position: relative;
}

.cb-step-circle::before {
    content: attr(data-step);
    position: absolute;
    top: -8px; right: -4px;
    width: 28px; height: 28px;
    background: var(--cb-primary);
    color: var(--cb-white);
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(162, 117, 75, 0.3);
}

.cb-step-circle svg {
    width: 32px; height: 32px;
    color: var(--cb-gray-light);
    transition: color 0.3s;
}

.cb-process-step:hover .cb-step-circle {
    border-color: var(--cb-primary);
    box-shadow: 0 8px 32px rgba(162, 117, 75, 0.15);
}

.cb-process-step:hover .cb-step-circle svg { color: var(--cb-primary); }

.cb-process-step h3 { font-size: 18px; margin-bottom: 8px; }

.cb-process-step p {
    font-size: 14px;
    color: var(--cb-gray);
    line-height: 1.7;
}

/* ============================================================
   ELIGIBILITY / WHO CAN VOLUNTEER
   ============================================================ */
.cb-eligibility-section {
    padding: 100px 0;
    background: var(--cb-dark);
    position: relative;
    overflow: hidden;
}

.cb-eligibility-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(162, 117, 75, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.cb-elig-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cb-elig-content .cb-label { color: var(--cb-primary-light); }
.cb-elig-content .cb-label .cb-label-dot { background: var(--cb-primary-light); }

.cb-elig-content h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    color: var(--cb-white);
    margin-bottom: 20px;
}

.cb-elig-content > p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    margin-bottom: 32px;
}

.cb-elig-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cb-elig-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--cb-radius-lg);
    transition: var(--cb-transition);
}

.cb-elig-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(162, 117, 75, 0.2);
    transform: translateX(6px);
}

.cb-elig-item-icon {
    width: 40px; height: 40px;
    border-radius: var(--cb-radius);
    background: var(--cb-primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cb-elig-item-icon svg {
    width: 18px; height: 18px;
    color: var(--cb-primary-light);
}

.cb-elig-item span {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.cb-elig-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cb-elig-value-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--cb-radius-xl);
    padding: 28px;
    transition: var(--cb-transition);
}

.cb-elig-value-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(162, 117, 75, 0.15);
}

.cb-elig-value-card h4 {
    font-size: 18px;
    color: var(--cb-white);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cb-elig-value-card h4 svg {
    width: 20px; height: 20px;
    color: var(--cb-primary-light);
}

.cb-elig-value-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.8;
}

/* ============================================================
   VOLUNTEER TESTIMONIALS
   ============================================================ */
.cb-vol-testimonials-section {
    padding: 100px 0;
    background: var(--cb-bg);
}

.cb-vol-testimonials-header {
    text-align: center;
    margin-bottom: 56px;
}

.cb-vol-testimonials-header .cb-section-subtitle { margin: 0 auto; }

.cb-vol-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.cb-vol-testimonial-card {
    background: var(--cb-white);
    border-radius: var(--cb-radius-xl);
    padding: 36px;
    border: 1px solid var(--cb-gray-border);
    transition: var(--cb-transition);
    position: relative;
}

.cb-vol-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cb-shadow-lg);
}

.cb-vol-testimonial-quote-mark {
    position: absolute;
    top: 20px; right: 24px;
    font-family: var(--cb-font-heading);
    font-size: 72px;
    color: var(--cb-primary-glow);
    line-height: 1;
    pointer-events: none;
}

.cb-vol-testimonial-card p {
    font-size: 15px;
    color: var(--cb-gray);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.cb-vol-testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cb-vol-testimonial-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--cb-white);
}

.cb-vol-testimonial-avatar.av1 { background: linear-gradient(135deg, var(--cb-primary), var(--cb-primary-dark)); }
.cb-vol-testimonial-avatar.av2 { background: linear-gradient(135deg, var(--cb-secondary), var(--cb-secondary-dark)); }
.cb-vol-testimonial-avatar.av3 { background: linear-gradient(135deg, #7c3aed, #5b21b6); }

.cb-vol-testimonial-info h4 {
    font-family: var(--cb-font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--cb-dark);
    margin-bottom: 2px;
}

.cb-vol-testimonial-info span {
    font-size: 13px;
    color: var(--cb-gray-light);
}

.cb-vol-testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
    color: var(--cb-primary);
}

.cb-vol-testimonial-stars svg {
    width: 16px; height: 16px;
    fill: var(--cb-primary);
}

/* ============================================================
   APPLICATION FORM
   ============================================================ */
.cb-apply-section { padding: 100px 0; }

.cb-apply-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: start;
}

.cb-apply-info .cb-section-title { margin-bottom: 16px; }

.cb-apply-info > p {
    font-size: 16px;
    color: var(--cb-gray);
    line-height: 1.8;
    margin-bottom: 32px;
}

.cb-apply-perks {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cb-apply-perk {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.cb-apply-perk-icon {
    width: 44px; height: 44px;
    border-radius: var(--cb-radius);
    background: var(--cb-secondary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cb-apply-perk-icon svg {
    width: 20px; height: 20px;
    color: var(--cb-secondary);
}

.cb-apply-perk-text h4 {
    font-family: var(--cb-font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--cb-dark);
    margin-bottom: 3px;
}

.cb-apply-perk-text p {
    font-size: 13px;
    color: var(--cb-gray-light);
    line-height: 1.6;
}

.cb-apply-form-card {
    background: var(--cb-white);
    border-radius: var(--cb-radius-xl);
    padding: 44px;
    box-shadow: var(--cb-shadow-lg);
    border: 1px solid var(--cb-gray-border);
}

.cb-apply-form-card h3 { font-size: 24px; margin-bottom: 8px; }

.cb-apply-form-card > p {
    font-size: 14px;
    color: var(--cb-gray);
    margin-bottom: 28px;
}

.cb-vol-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.cb-vol-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cb-vol-form-group.full { grid-column: 1 / -1; }

.cb-vol-form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--cb-dark);
}

.cb-vol-form-label .req {
    color: #dc2626;
    margin-left: 2px;
}

.cb-vol-form-input,
.cb-vol-form-select,
.cb-vol-form-textarea {
    width: 100%;
    padding: 13px 18px;
    font-family: var(--cb-font-body);
    font-size: 15px;
    color: var(--cb-dark);
    background: var(--cb-bg);
    border: 1.5px solid var(--cb-gray-border);
    border-radius: var(--cb-radius-lg);
    outline: none;
    transition: var(--cb-transition);
}

.cb-vol-form-input::placeholder,
.cb-vol-form-textarea::placeholder { color: var(--cb-gray-light); }

.cb-vol-form-input:focus,
.cb-vol-form-select:focus,
.cb-vol-form-textarea:focus {
    border-color: var(--cb-primary);
    box-shadow: 0 0 0 3px var(--cb-primary-glow);
}

.cb-vol-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.cb-vol-form-textarea {
    min-height: 110px;
    resize: vertical;
}

.cb-vol-form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
    margin-top: 8px;
}

.cb-vol-form-check input {
    width: 18px; height: 18px;
    accent-color: var(--cb-primary);
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.cb-vol-form-check label {
    font-size: 13px;
    color: var(--cb-gray);
    line-height: 1.6;
}

.cb-vol-form-check label a {
    color: var(--cb-primary);
    text-decoration: underline;
}

.cb-vol-form-submit {
    width: 100%;
    padding: 16px;
    background: var(--cb-secondary);
    color: var(--cb-white);
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--cb-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.3);
    font-family: var(--cb-font-body);
}

.cb-vol-form-submit:hover {
    background: var(--cb-secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(39, 174, 96, 0.4);
}

.cb-vol-form-submit svg {
    width: 20px; height: 20px;
    transition: transform 0.3s;
}

.cb-vol-form-submit:hover svg { transform: translateX(3px); }

.cb-vol-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Form message */
.cb-form-msg {
    display: none;
    margin-top: 16px;
    padding: 14px 20px;
    border-radius: var(--cb-radius);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

.cb-form-msg--success {
    background: var(--cb-secondary-light);
    color: var(--cb-secondary-dark);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.cb-form-msg--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
    .cb-impact-strip-inner { grid-template-columns: repeat(2, 1fr); }
    .cb-impact-item:nth-child(2)::after { display: none; }
    .cb-why-vol-grid { grid-template-columns: 1fr; }
    .cb-roles-grid { grid-template-columns: 1fr; }
    .cb-role-card[style*="grid-column"] {
        max-width: 100% !important;
    }

    .cb-process-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .cb-process-steps::before { display: none; }

    .cb-elig-layout { grid-template-columns: 1fr; gap: 40px; }
    .cb-vol-testimonials-grid { grid-template-columns: 1fr; }
    .cb-apply-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
    .cb-impact-strip-inner { grid-template-columns: 1fr 1fr; }
    .cb-process-steps { grid-template-columns: 1fr 1fr; gap: 28px; }
    .cb-vol-form-row { grid-template-columns: 1fr; }
    .cb-apply-form-card { padding: 28px; }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
    .cb-impact-strip-inner {
        grid-template-columns: 1fr;
        border-radius: var(--cb-radius-lg);
    }

    .cb-impact-item::after { display: none !important; }
    .cb-impact-item { padding: 20px 16px; }
    .cb-process-steps { grid-template-columns: 1fr; }

    .cb-page-hero .cb-hero-cta {
        flex-direction: column;
    }

    .cb-page-hero .cb-hero-cta .cb-btn,
    .cb-page-hero .cb-hero-cta .cb-btn-ghost-light {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .cb-role-card { grid-template-columns: 1fr; gap: 16px; }
    .cb-role-card[style*="grid-column"] {
        max-width: 100% !important;
    }
}
