/* ==========================================
   PREMIUM ALERT MESSAGE
========================================== */

.sanstha-alert {
    position: relative;
    padding: 18px 22px;
    margin-bottom: 25px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    border-left: 5px solid;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    animation: alertFade .45s ease;
}

    .sanstha-alert::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 18px;
        margin-right: 10px;
        display: inline-block;
    }

.alert-success {
    color: #0f5132;
    background: #d1f7e3;
    border-color: #198754;
}

    .alert-success::before {
        content: "\f058"; /* fa-circle-check */
        color: #198754;
    }

.alert-danger {
    color: #842029;
    background: #f8d7da;
    border-color: #dc3545;
}

    .alert-danger::before {
        content: "\f057"; /* fa-circle-xmark */
        color: #dc3545;
    }

@keyframes alertFade {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */

@media (max-width:768px) {

    .sanstha-alert {
        padding: 16px;
        font-size: 14px;
    }
}




















/* ==========================================================================
   1. VARIABLES & BASE RESETS
   ========================================================================== */
:root {
    --primary-color: #e63329; /* Vibrant Red Accent */
    --primary-hover: #c4261e;
    --dark-bg: #1a1a2e; /* Deep Navy Base */
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #2b2b3d;
    --text-muted: #6c757d;
    --border-color: #e2e8f0;
    --radius-lg: 12px;
    --radius-md: 8px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.jas-volunteer-section {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    padding: 80px 20px;
    overflow-x: hidden;
}

.jas-section-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   2. SPLIT INTRO SECTION
   ========================================================================== */
.jas-split-intro {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    animation: fadeIn 0.8s ease-out;
}

.jas-main-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark-bg);
    margin-bottom: 24px;
}

    .jas-main-title span {
        display: block;
    }

    .jas-main-title .accent-color {
        color: var(--primary-color);
    }

.jas-description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 16px;
}

.jas-description-sub {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Core Service Domains (Tag Cloud) */
.jas-intro-side {
    background: var(--dark-bg);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(26, 26, 46, 0.15);
    color: #ffffff;
}

.jas-tag-cloud-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.jas-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

    .jas-tag-cloud span {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        padding: 10px 18px;
        border-radius: 30px;
        font-size: 0.9rem;
        font-weight: 500;
        transition: var(--transition-smooth);
        cursor: default;
    }

        .jas-tag-cloud span:hover {
            background: var(--primary-color);
            border-color: var(--primary-color);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(230, 51, 41, 0.3);
        }

/* ==========================================================================
   3. IMAGE GALLERY (Staggered Grid Animation)
   ========================================================================== */
.jas-image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.jas-gallery-card {
    position: relative;
    height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

    .jas-gallery-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .jas-gallery-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .jas-gallery-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .jas-gallery-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

.jas-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.85) 0%, rgba(26, 26, 46, 0.2) 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 1;
    transition: var(--transition-smooth);
}

    .jas-gallery-overlay span {
        color: #ffffff;
        font-size: 1.25rem;
        font-weight: 700;
        transform: translateY(0);
        transition: var(--transition-smooth);
    }

.jas-gallery-card:hover img {
    transform: scale(1.08);
}

.jas-gallery-card:hover .jas-gallery-overlay {
    background: linear-gradient(to top, rgba(230, 51, 41, 0.9) 0%, rgba(26, 26, 46, 0.4) 100%);
}

/* ==========================================================================
   4. TWO-COLUMN LAYOUT: SIDEBAR + FORM
   ========================================================================== */
.jas-form-container {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 48px;
    align-items: start;
}

/* Sticky Sidebar */
.jas-form-sidebar {
    position: sticky;
    top: 40px;
}

.jas-sidebar-sticky h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 16px;
}

.jas-sidebar-sticky p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.jas-requirement-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jas-req-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--dark-bg);
}

    .jas-req-item svg {
        width: 22px;
        height: 22px;
        color: var(--primary-color);
        background: rgba(230, 51, 41, 0.1);
        padding: 4px;
        border-radius: 50%;
    }

/* The Registration Form */
.jas-form-main-body {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
}

.jas-premium-form .jas-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.jas-field-group.span-full {
    grid-column: span 2;
}

.jas-static-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #b8b8cb;
    
    margin-bottom: 8px;
}

    .jas-static-label .required {
        color: #b8b8cb;
    }

.jas-input-wrapper {
    position: relative;
}

/* Form Controls UI */
.jas-input,
.jas-select,
.jas-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-sizing: border-box;
    transition: var(--transition-smooth);
}

.jas-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a1a2e' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

.jas-textarea {
    resize: vertical;
}

    /* Interactive States */
    .jas-input:focus,
    .jas-select:focus,
    .jas-textarea:focus {
        outline: none;
        border-color: var(--primary-color);
        background-color: #ffffff;
        box-shadow: 0 0 0 4px rgba(230, 51, 41, 0.1);
    }

/* ==========================================================================
   5. BUTTONS AND INTERACTIONS
   ========================================================================== */
.jas-form-actions {
    margin-top: 32px;
}

.jas-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 20px rgba(230, 51, 41, 0.25);
}

    .jas-btn-submit svg {
        width: 20px;
        height: 20px;
        transition: transform 0.3s ease;
    }

    .jas-btn-submit:hover {
        background-color: var(--primary-hover);
        box-shadow: 0 8px 24px rgba(230, 51, 41, 0.35);
        transform: translateY(-1px);
    }

        .jas-btn-submit:hover svg {
            transform: translateX(5px);
        }

    .jas-btn-submit:active {
        transform: translateY(1px);
    }

/* ==========================================================================
   6. ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   7. RESPONSIVE DESIGN (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 1024px) {
    .jas-split-intro {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .jas-form-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .jas-form-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .jas-volunteer-section {
        padding: 50px 16px;
    }

    .jas-main-title {
        font-size: 2.2rem;
    }

    .jas-image-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .jas-gallery-card {
        height: 220px;
    }

    .jas-premium-form .jas-form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .jas-field-group.span-full {
        grid-column: span 1;
    }

    .jas-form-main-body {
        padding: 24px 16px;
    }
}
