/* --- Core Variables --- */
:root {
    --p-teal: #085a66;
    --p-orange: #f47c20;
    --p-orange-light: #fff3e9;
    --p-dark: #0f1d2a;
    --p-bg: #f8fafb;
    --white: #ffffff;
    --text-muted: #556b82;
    --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- Global Elements --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-header-center {
    text-align: center; /* Centers all text inside the block */
    margin-left: auto;   /* Centers the container box itself */
    margin-right: auto;  /* Centers the container box itself */
    display: flex;       /* Use flex to align children vertically */
    flex-direction: column;
    align-items: center; /* Centers the pill-badge and heading */
}
.section-title { font-size: 3rem; font-weight: 900; color: var(--p-dark); margin-bottom: 15px; letter-spacing: -1.5px; }
.section-subtitle {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
/* --- Hero & Star Form (PRESERVED) --- */
.vol-premium-hero {
    min-height: 100vh;
    background: radial-gradient(circle at top right, #1a324a, var(--p-dark));
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px 0;
}
.hero-bg-overlay {
    position: absolute; inset: 0;
background-image: linear-gradient(rgba(15, 29, 42, 0.7), rgba(15, 29, 42, 0.7)), url("/static/pahal/img/v1.png");
    opacity: 0.15;
}
.hero-flex { display: flex; justify-content: space-between; align-items: center; gap: 60px; z-index: 10; }
.pill-badge { color: var(--p-orange); background: rgba(244, 124, 32, 0.1); border: 1px solid var(--p-orange); padding: 8px 20px; border-radius: 50px; font-weight: 700; font-size: 0.8rem; }
.hero-text-box h1 { font-size: 5rem; color: white; font-weight: 900; line-height: 1.1; margin: 25px 0; }
.hero-text-box p { 
    font-size: 1.3rem; 
    color: #ffffff; /* Ensure it is pure white */
    line-height: 1.6; 
    max-width: 500px;
    font-weight: 500; /* Make the font slightly thicker */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8); 
}
.gradient-text { background: linear-gradient(to right, #f47c20, #ffb347); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.h-feat { color: rgba(255,255,255,0.9); font-weight: 500; display: flex; align-items: center; gap: 12px; font-size: 1.1rem; margin-top: 15px;}
.h-feat i { color: var(--p-orange); }

/* --- FORM (PRESERVED & ENHANCED) --- */
.form-star-container {
    background: var(--white); 
    width: 100%; 
    max-width: 550px;
    border-radius: 40px; 
    padding: 10px; 
    box-shadow: 0 50px 100px rgba(0,0,0,0.5); 
    position: relative;
}

.form-star-inner { border: 2px dashed #eee; border-radius: 35px; padding: 40px; }

.form-icon-header { 
    width: 70px; 
    height: 70px; 
    background: var(--p-orange); 
    color: white; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.8rem; 
    margin: -75px auto 20px; 
    box-shadow: 0 10px 20px rgba(244,124,32,0.3); 
}

.form-head { text-align: center; }
.form-head h3 { font-size: 2.2rem; font-weight: 800; color: var(--p-dark); margin-bottom: 5px; }
.form-head p { color: #777; margin-bottom: 35px; }

.form-grid-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.floating-group { 
    position: relative; 
    margin-bottom: 18px; 
}

/* FIXED: Icon alignment within the select */
.floating-group i { 
    position: absolute; 
    left: 18px; 
    top: 50%; 
    transform: translateY(-50%); 
    color: #ccc; 
    transition: var(--transition); 
    z-index: 2;
    pointer-events: none; /* Let clicks pass through to select */
}

/* Specific adjustment for textarea icon since it doesn't center like inputs */
.floating-group textarea + i { top: 25px; transform: none; }

.floating-group input, 
.floating-group select, 
.floating-group textarea {
    width: 100%; 
    padding: 16px 16px 16px 52px; 
    background: #fcfdfe; 
    border: 2px solid #f0f3f5; 
    border-radius: 12px; 
    font-size: 1rem; 
    transition: var(--transition);
}

/* PREMIUM DROPDOWN STYLING */
.floating-group select#interest {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Custom Orange Arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f47c20' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    cursor: pointer;
}

.floating-group input:focus, 
.floating-group select:focus, 
.floating-group textarea:focus { 
    border-color: var(--p-orange); 
    background: white; 
    outline: none; 
    box-shadow: 0 10px 20px rgba(244, 124, 32, 0.05); 
}

/* Active focus color for icons */
.floating-group input:focus + i,
.floating-group select:focus + i { color: var(--p-orange); }

.star-submit-btn {
    width: 100%; 
    padding: 20px; 
    background: linear-gradient(to right, var(--p-orange), #e66a0d); 
    color: white; 
    border: none; 
    border-radius: 15px; 
    font-weight: 800; 
    font-size: 1.1rem; 
    cursor: pointer; 
    transition: var(--transition); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 12px; 
    margin-top: 10px;
}
.star-submit-btn:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(244, 124, 32, 0.4); }

/* --- FIXED: WHY VOLUNTEER CARDS --- */
.benefits-section { padding: 120px 0; background: #fffbf7; }
.pill-badge-outline { 
    border: 1px solid var(--p-teal); color: var(--p-teal); padding: 6px 20px; 
    border-radius: 50px; font-weight: 600; font-size: 0.8rem;
}
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.benefit-card { 
    background: white; padding: 50px; border-radius: 35px; 
    transition: var(--transition); border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
/* FIXED: DARK TEXT ON DARK BG ISSUE */
.benefit-card.highlighted { background: var(--p-teal); color: white; transform: translateY(-10px); }
.benefit-card.highlighted h3, .benefit-card.highlighted p { color: #ffffff !important; }
.benefit-card.highlighted .b-icon { background: rgba(255,255,255,0.15); color: var(--p-orange); }

.benefit-card:hover:not(.highlighted) { transform: translateY(-15px); box-shadow: 0 25px 60px rgba(0,0,0,0.06); }
/* FIXED: ICON CENTERING ISSUE */
.b-icon { 
    width: 75px; height: 75px; background: #f0f9fa; color: var(--p-teal); 
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; margin-bottom: 25px;
}
.benefit-card h3 { font-size: 1.6rem; margin-bottom: 15px; font-weight: 800; color: var(--p-dark); }

/* --- Onboarding Journey --- */
.onboarding-journey { padding: 80px 0; }
.journey-card { background: var(--p-dark); padding: 80px; border-radius: 60px; color: white; }
.journey-header { text-align: center; margin-bottom: 60px; }
.white-text { font-size: 2.8rem; font-weight: 900; margin-bottom: 10px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.s-number { font-size: 4rem; font-weight: 900; opacity: 0.15; line-height: 1; margin-bottom: 15px; display: block; }
.step-box h5 { font-size: 1.5rem; color: var(--p-orange); margin-bottom: 15px; font-weight: 800; }

/* --- INTERACTIVE FAQ ACCORDION --- */
.faq-accordion {
    max-width: 850px;
    margin: 40px auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #eef2f3;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: var(--transition);
    overflow: hidden; /* Ensures content stays inside the box */
}

.faq-question {
    width: 100%;
    padding: 22px 30px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.faq-question span {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--p-dark);
}

.faq-question i {
    color: var(--p-orange);
    font-size: 1rem;
    transition: transform 0.3s ease;
}

/* Hidden State by default */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: all 0.4s ease-out;
    opacity: 0;
}
.location-badge {
    background: var(--p-orange-light);
    border-left: 4px solid var(--p-orange);
    padding: 12px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.location-badge i {
    color: var(--p-orange);
    font-size: 1.2rem;
}

.location-badge span {
    color: var(--p-dark);
    font-size: 0.95rem;
    line-height: 1.4;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Active State: Triggered via JavaScript */
.faq-item.active {
    border-color: var(--p-orange);
    box-shadow: 0 10px 30px rgba(244, 124, 32, 0.08);
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Expands the box */
    padding: 0 30px 10px 30px;
    opacity: 1;
}

.faq-item.active .faq-question span {
    color: var(--p-orange);
}

/* Responsive Updates */
@media (max-width: 992px) {
    .leads-grid, .faq-grid { grid-template-columns: 1fr; }
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-flex, .benefits-grid, .steps-grid, .purpose-grid { grid-template-columns: 1fr; text-align: center; }
    .p-card { align-items: center; }
    .hero-text-box h1 { font-size: 3.5rem; }
    .form-star-container { max-width: 100%; margin-top: 80px; }
}