/* Help & Support Section - DHA Bahawalpur */
/* Complete Responsive Design */

/* Base Help Section Styles */
#help-section {
    display: none;
    z-index: 1;
}

#help-section.active {
    display: block;
    animation: fadeInUp 0.4s ease-out;
    z-index: 1;
}

.help-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
}

/* Help Header */
.help-header {
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, rgba(234, 85, 71, 0.05), rgba(253, 198, 44, 0.05));
    border-radius: 20px;
    padding: 3rem 2rem;
    border: 1px solid rgba(234, 85, 71, 0.1);
}

.help-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.help-title i {
    color: var(--primary-color);
    font-size: 2.2rem;
}

.help-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Search Section */
.help-search {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: 5;
    position: relative;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    z-index: 10;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(234, 85, 71, 0.1);
    background: white;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.2rem;
    z-index: 2;
    pointer-events: none;
}

/* Contact Information Section - New Tabbed Design */
.contact-info-section {
    background: white;
    border-radius: 20px;
    padding: 0;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.contact-section-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.contact-section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.contact-section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    position: relative;
    z-index: 1;
}

.contact-section-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Contact Tabs Navigation */
.contact-tabs-nav {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.contact-tabs-nav::-webkit-scrollbar {
    display: none;
}

.contact-tab {
    flex: 1;
    min-width: 200px;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.contact-tab:hover {
    background: rgba(234, 85, 71, 0.05);
    color: var(--primary-color);
}

.contact-tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.contact-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.contact-tab i {
    font-size: 1.2rem;
}

/* Contact Tab Content */
.contact-tab-content {
    display: none;
    padding: 2.5rem;
    animation: fadeInUp 0.4s ease-out;
}

.contact-tab-content.active {
    display: block;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.contact-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(234, 85, 71, 0.15);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-card-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(234, 85, 71, 0.3);
}

.contact-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.contact-card-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0 0;
}

.contact-info-list {
    display: grid;
    gap: 0.75rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(234, 85, 71, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(234, 85, 71, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.contact-info-item:hover {
    background: rgba(234, 85, 71, 0.05);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.contact-info-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: rgba(234, 85, 71, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.contact-info-details {
    flex: 1;
    min-width: 0;
}

.contact-info-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.contact-info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
}

.contact-info-item.clickable .contact-info-value {
    color: var(--primary-color);
}

.contact-action-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-action-icon {
    opacity: 1;
    transform: translateX(0);
}

/* FAQ Section */
.faq-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.faq-category {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-family: 'Poppins', sans-serif;
}

.faq-category.active,
.faq-category:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 85, 71, 0.3);
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(234, 85, 71, 0.1);
}

.faq-question {
    padding: 1.5rem;
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-question h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: white;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 300px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Emergency Contact */
.emergency-contact {
    background: linear-gradient(135deg, rgba(234, 85, 71, 0.05), rgba(253, 198, 44, 0.05));
    border: 2px solid rgba(234, 85, 71, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.emergency-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.emergency-header i {
    color: #f59e0b;
    font-size: 1.8rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.emergency-header h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.emergency-contact p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.emergency-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    margin: 0 auto;
    max-width: 300px;
    border: 2px solid var(--primary-color);
}

.emergency-number i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.emergency-number strong {
    font-size: 1.3rem;
    color: var(--text-primary);
}

/* Search Results */
.search-results {
    display: none;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: white;
    z-index: 51;
}

.search-result-item:hover {
    background: #f8fafc;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.search-result-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.no-results i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Finance tab specific styling */
#finance-tab .contact-cards-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1200px) and (min-width: 1025px) {
    .contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-card-title {
        font-size: 1.1rem;
    }
    
    .contact-info-label {
        font-size: 0.75rem;
    }
    
    .contact-info-value {
        font-size: 0.95rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .help-container {
        padding: 1.5rem;
    }
    
    .contact-section-header {
        padding: 1.75rem 1.5rem;
    }
    
    .contact-section-header h2 {
        font-size: 1.75rem;
    }
    
    .contact-tabs-nav {
        display: flex;
        overflow-x: auto;
    }
    
    .contact-tab {
        min-width: 180px;
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .contact-tab-content {
        padding: 2rem 1.5rem;
    }
    
    .contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-card-header {
        margin-bottom: 1.25rem;
    }
    
    .contact-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .contact-card-title {
        font-size: 1.1rem;
    }
    
    .contact-card-subtitle {
        font-size: 0.85rem;
    }
    
    .contact-info-item {
        gap: 0.6rem;
        padding: 0.6rem;
    }
    
    .contact-info-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .contact-info-label {
        font-size: 0.75rem;
    }
    
    .contact-info-value {
        font-size: 0.9rem;
    }
    
    /* Finance tab specific for 1024px */
    #finance-tab .contact-cards-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .help-container {
        padding: 1rem;
    }
    
    .help-header {
        padding: 2rem 1rem;
    }
    
    .help-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .help-subtitle {
        font-size: 1rem;
    }
    
    .contact-section-header {
        padding: 1.5rem 1rem;
    }
    
    .contact-section-header h2 {
        font-size: 1.5rem;
    }
    
    .contact-section-header p {
        font-size: 1rem;
    }
    
    .contact-tabs-nav {
        flex-direction: column;
    }
    
    .contact-tab {
        min-width: auto;
        padding: 1rem;
        text-align: center;
    }
    
    .contact-tab.active::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 50px;
    }
    
    .contact-tab-content {
        padding: 1.5rem;
    }
    
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .faq-categories {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .faq-category {
        text-align: center;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
    }
    
    .search-icon {
        left: 0.875rem;
        font-size: 1rem;
    }
    
    .emergency-number {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1.5rem;
    }
    
    /* FAQ Mobile Styles for 768px */
    .faq-question {
        padding: 1.25rem 1.5rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s ease;
    }
    
    .faq-item.active .faq-answer {
        padding: 1.5rem;
        max-height: 500px;
    }
    
    #help-section,
    #help-section.active {
        z-index: 1 !important;
    }
    
    .help-container {
        z-index: 1 !important;
        position: relative;
    }
    
    .help-search {
        z-index: 5 !important;
        position: relative;
    }
    
    .search-container {
        z-index: 10 !important;
    }
    
    .search-results {
        z-index: 20 !important;
    }
    
    .search-result-item {
        z-index: 21 !important;
    }
    
    .contact-info-section {
        z-index: 1 !important;
    }
    
    .contact-tabs-nav {
        z-index: 1 !important;
    }
    
    .contact-tab-content {
        z-index: 1 !important;
    }
}

@media (max-width: 480px) {
    .help-header {
        padding: 1.5rem 1rem;
    }
    
    .help-title {
        font-size: 1.75rem;
    }
    
    .contact-section-header {
        padding: 1rem;
    }
    
    .contact-section-header h2 {
        font-size: 1.3rem;
    }
    
    .contact-tab {
        padding: 0.875rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .contact-tab i {
        font-size: 1rem;
    }
    
    .contact-card {
        padding: 1rem;
    }
    
    .contact-card-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .contact-card-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .contact-card-title {
        font-size: 1.1rem;
    }
    
    .contact-info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .contact-info-item:hover {
        transform: none;
    }
    
    .contact-action-icon {
        position: static;
        opacity: 1;
        transform: none;
        margin-top: 0.5rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s ease;
    }
    
    .faq-item.active .faq-answer {
        padding: 1.5rem;
        max-height: 500px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast Notifications */
.help-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 4px solid #3b82f6;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Poppins', sans-serif;
}

.help-toast.success { 
    border-left-color: #10b981; 
}

.help-toast.error { 
    border-left-color: #ef4444; 
}

.help-toast.warning { 
    border-left-color: #f59e0b; 
}

.help-toast .toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.help-toast .toast-content i {
    font-size: 1.1rem;
}

.help-toast.success .toast-content i {
    color: #10b981;
}

.help-toast.error .toast-content i {
    color: #ef4444;
}

.help-toast.warning .toast-content i {
    color: #f59e0b;
}

.help-toast.info .toast-content i {
    color: #3b82f6;
}

.help-toast .toast-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.help-toast .toast-close:hover {
    color: #374151;
    background: #f3f4f6;
}

.help-toast.show { 
    transform: translateX(0); 
}

/* Mobile toast adjustments */
@media (max-width: 480px) {
    .help-toast {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: calc(100vw - 20px);
    }
    
    .help-toast .toast-content {
        font-size: 0.85rem;
    }
}

/* Mobile Z-Index Fix for Profile Dropdown Overlap */
@media (max-width: 768px) {
    #help-section,
    #help-section.active {
        z-index: 1 !important;
    }
    
    .help-container {
        z-index: 1 !important;
        position: relative;
    }
    
    .help-search {
        z-index: 5 !important;
        position: relative;
    }
    
    .search-container {
        z-index: 10 !important;
    }
    
    .search-results {
        z-index: 20 !important;
    }
    
    .search-result-item {
        z-index: 21 !important;
    }
    
    .contact-info-section {
        z-index: 1 !important;
    }
    
    .contact-tabs-nav {
        z-index: 1 !important;
    }
    
    .contact-tab-content {
        z-index: 1 !important;
    }
} 