/* ============================================
   Citizen's Charter Page Styles
   ============================================ */

:root {
    --primary: #1a5f7a;
    --secondary: #57c5b6;
    --accent: #159895;
    --dark: #1e293b;
    --gray: #64748b;
    --light: #f1f5f9;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --radius: 12px;
}

/* ============================================
   Page Header
   ============================================ */
.charter-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 3rem 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.charter-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.header-icon i {
    font-size: 2.5rem;
}

.charter-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.charter-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Quick Actions Bar
   ============================================ */
.quick-actions {
    background: var(--white);
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 110px;
    z-index: 100;
}

.actions-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--light);
    color: var(--dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-btn i {
    font-size: 1.2rem;
}

.action-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.action-btn.primary {
    background: var(--accent);
    color: var(--white);
}

.action-btn.primary:hover {
    background: var(--primary);
}

/* ============================================
   Charter Intro
   ============================================ */
.charter-intro {
    padding: 4rem 0;
    background: var(--light);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .intro-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

.intro-content h2 {
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.intro-content h2 i {
    color: var(--accent);
}

.intro-content p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.charter-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .charter-benefits {
        grid-template-columns: 1fr 1fr;
    }
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.benefit-item i {
    color: var(--secondary);
    font-size: 1.25rem;
}

.benefit-item span {
    font-size: 0.9rem;
    color: var(--dark);
}

.intro-image {
    text-align: center;
}

.intro-image img {
    max-width: 100%;
    height: auto;
}

.intro-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.intro-stats .stat {
    text-align: center;
    padding: 1rem 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ============================================
   Search & Filter
   ============================================ */
.charter-search {
    padding: 3rem 0 2rem;
    background: var(--white);
}

.search-header {
    text-align: center;
    margin-bottom: 2rem;
}

.search-header h2 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.search-header h2 i {
    color: var(--accent);
}

.search-header p {
    color: var(--gray);
}

.search-box {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper > i {
    position: absolute;
    left: 1.25rem;
    color: var(--gray);
    font-size: 1.25rem;
}

.search-input-wrapper input {
    width: 100%;
    padding: 1rem 3rem 1rem 3.5rem;
    border: 2px solid var(--light);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(21, 152, 149, 0.1);
}

.clear-btn {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.25rem;
}

.clear-btn:hover {
    color: var(--dark);
}

.department-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.dept-filter {
    padding: 0.5rem 1rem;
    background: var(--light);
    border: none;
    border-radius: 50px;
    color: var(--gray);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dept-filter:hover {
    background: var(--secondary);
    color: var(--white);
}

.dept-filter.active {
    background: var(--primary);
    color: var(--white);
}

.dept-filter i {
    font-size: 0.9rem;
}

/* ============================================
   Services Grid
   ============================================ */
.charter-services {
    padding: 2rem 0 4rem;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--light);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.service-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}

.service-dept {
    font-size: 0.75rem;
    color: var(--gray);
    background: var(--light);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

.service-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.meta-item i {
    color: var(--accent);
}

.service-actions {
    margin-top: auto;
}

.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-view:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(26, 95, 122, 0.3);
}

.no-services,
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
}

.no-services i,
.no-results i {
    font-size: 4rem;
    color: var(--light);
    margin-bottom: 1rem;
    display: block;
}

.no-results h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

/* ============================================
   PDF Viewer Section
   ============================================ */
.pdf-section {
    padding: 4rem 0;
    background: var(--light);
}

.pdf-section .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pdf-section .section-header h2 {
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.pdf-section .section-header h2 i {
    color: #dc2626;
}

.pdf-section .section-header p {
    color: var(--gray);
}

.pdf-viewer-wrapper {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.pdf-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1rem;
    background: var(--dark);
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.toolbar-btn.primary {
    background: var(--accent);
}

.toolbar-btn.primary:hover {
    background: var(--secondary);
}

.pdf-container {
    width: 100%;
    min-height: 600px;
}

.pdf-container iframe {
    display: block;
}

/* ============================================
   Feedback Section
   ============================================ */
.feedback-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.feedback-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    box-shadow: var(--shadow-hover);
}

@media (min-width: 768px) {
    .feedback-card {
        grid-template-columns: 1.5fr 1fr;
        padding: 3rem;
    }
}

.feedback-content {
    text-align: center;
}

@media (min-width: 768px) {
    .feedback-content {
        text-align: left;
    }
}

.feedback-content i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.feedback-content h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.feedback-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.btn-feedback {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-feedback:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 95, 122, 0.3);
}

.feedback-contact {
    padding: 1.5rem;
    background: var(--light);
    border-radius: var(--radius);
}

.feedback-contact h4 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.contact-item i {
    width: 30px;
    height: 30px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .charter-header {
        padding: 2rem 0;
    }

    .charter-header h1 {
        font-size: 1.75rem;
    }

    .quick-actions {
        top: 85px;
    }

    .actions-grid {
        gap: 0.5rem;
    }

    .action-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .action-btn span {
        display: none;
    }

    .action-btn i {
        font-size: 1.5rem;
    }

    .department-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .dept-filter {
        flex-shrink: 0;
    }

    .pdf-container {
        min-height: 400px;
    }

    .pdf-container iframe {
        height: 500px;
    }
}

@media (max-width: 576px) {
    .intro-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .intro-stats .stat {
        padding: 0.75rem 1.5rem;
    }
}
