/* Scoped header and footer styles to prevent conflicts */
body > header {
    all: initial;
    font-family: inherit;
}

/* Rest of your existing styles */
:root {
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --gold: #d4af37;
    --gold-light: #e8c874;
    --dark: #0f172a;
    --light: #f8fafc;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f1f5f9;
    color: var(--dark);
}

/* Hero Section */
.volunteer-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 64, 175, 0.8) 100%), 
                url('../images/volunteer/hero.jpg') center/cover no-repeat;
    height: 60vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.volunteer-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23f8fafc"></path><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23f8fafc"></path><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23f8fafc"></path></svg>');
    background-size: cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: relative;
    display: inline-block;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold);
}

/* Floating Elements */
.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    z-index: 0;
}

/* Benefits Section */
.benefits-section {
    position: relative;
    overflow: hidden;
}

.benefit-card {
    border: none;
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--gold) 100%);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(30, 64, 175, 0.15);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary);
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    color: white;
    transform: rotate(15deg);
}

/* Form Section */
.form-section {
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.form-card {
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(30, 64, 175, 0.1);
    border: 1px solid rgba(30, 64, 175, 0.1);
    background: white;
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--gold) 100%);
}

.form-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.form-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    transform: rotate(30deg);
}

.form-control, .form-select {
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(30, 64, 175, 0.15);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 40px;
    height: 200%;
    background: rgba(255,255,255,0.2);
    transform: rotate(30deg);
    transition: all 0.4s ease;
}

.submit-btn:hover::after {
    right: 120%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.2);
}

/* File Upload Styling */
.file-upload-container {
    margin: 2rem 0;
}

.file-upload-label {
    display: block;
    position: relative;
    width: 100%;
    height: 200px;
    border: 2px dashed rgba(30, 64, 175, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(30, 64, 175, 0.02);
}

.file-upload-label:hover {
    border-color: var(--primary);
    background-color: rgba(30, 64, 175, 0.05);
}

.file-upload-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.file-upload-label:hover .file-upload-icon {
    color: var(--primary);
    transform: translateY(-5px);
}

.file-upload-text {
    text-align: center;
    color: var(--primary-dark);
}

.file-upload-text h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.file-upload-text p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.file-upload-input {
    display: none;
}

.file-upload-preview {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

.file-upload-preview.active {
    display: block;
}

.file-upload-preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.file-upload-preview-item:last-child {
    border-bottom: none;
}

.file-info {
    display: flex;
    align-items: center;
}

.file-icon {
    margin-right: 0.75rem;
    color: var(--primary);
}

.file-name {
    font-weight: 500;
    color: var(--dark);
}

.file-size {
    font-size: 0.8rem;
    color: #64748b;
}

.file-remove {
    color: #ef4444;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .volunteer-hero {
        height: auto;
        padding: 100px 0;
    }
}
