:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --text-color: #333;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--secondary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-logo {
    display: flex;
    align-items: center;
}

.small-logo {
    height: 40px;
    width: auto;
    border-radius: 4px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.small-logo:hover {
    opacity: 1;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 20px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: white;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Section */
.hero {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}
/* Benefits Section */
.benefits-section {
    background-color: #f8f9fa;
    padding: 40px 0;
}

.benefits h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.benefit {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit:hover {
    transform: translateY(-2px);
}

.benefit i {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.benefit h4 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 10px;
}

.benefit p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Collapsible Benefits for Mobile */
.benefits-toggle {
    display: none;
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.benefits-toggle:hover {
    background-color: #2980b9;
}

.benefits-toggle i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.benefits-toggle.collapsed i {
    transform: rotate(180deg);
}

.benefits-content {
    transition: all 0.3s ease;
}

.benefits-content.collapsed {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .benefits-section {
        padding: 20px 0;
    }
    
    .benefits h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .benefits-toggle {
        display: block;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 15px;
    }
    
    .benefit {
        padding: 15px;
        text-align: left;
    }
    
    .benefit i {
        font-size: 24px;
        margin-bottom: 10px;
        float: left;
        margin-right: 15px;
        margin-top: 5px;
    }
    
    .benefit h4 {
        font-size: 16px;
        margin-bottom: 8px;
        margin-left: 40px;
    }
    
    .benefit p {
        font-size: 13px;
        margin-left: 40px;
    }
}

@media (max-width: 480px) {
    .benefits-section {
        padding: 15px 0;
    }
    
    .benefit {
        padding: 12px;
    }
    
    .benefit i {
        font-size: 20px;
        margin-right: 12px;
    }
    
    .benefit h4 {
        font-size: 15px;
        margin-left: 35px;
    }
    
    .benefit p {
        font-size: 12px;
        margin-left: 35px;
    }
}

/* Main Content */
main {
    padding: 40px 0;
}

.policies-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 768px) {
    .policies-container {
        flex-direction: row;
    }
}

.filters {
    width: 100%;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .filters {
        width: 250px;
        margin-bottom: 0;
    }
}

.filters h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.filter-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* Professional Grid Layout */
.policies-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    align-items: start;
}

/* Professional Card Design with Consistent Height */
.policy-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.policy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.policy-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.policy-card .category {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    align-self: flex-start;
}

.policy-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-color);
    line-height: 1.4;
}

.policy-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 0;
}

/* Consistent Button Container */
.policy-card .actions {
    padding: 20px 24px;
    background-color: #fafbfc;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.view-btn, .add-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    text-align: center;
}

.view-btn {
    background-color: #f8f9fa;
    color: var(--primary-color);
    border: 1px solid #e9ecef;
}

.view-btn:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.add-btn {
    background-color: var(--secondary-color);
    color: white;
}

.add-btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.add-btn.added {
    background-color: var(--success-color);
}

.add-btn.added:hover {
    background-color: #219653;
}

/* Policy Bundles Styles */
.policy-bundles {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.policy-bundles h4 {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.bundles-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.bundle-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.bundle-btn {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
    position: relative;
    overflow: hidden;
}

.bundle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    background: linear-gradient(135deg, #2980b9, var(--secondary-color));
}

.bundle-btn:active {
    transform: translateY(0);
}

.bundle-btn i {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.bundle-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.2;
}

.bundle-count {
    font-size: 12px;
    opacity: 0.8;
    font-weight: 400;
}

.bundle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.bundle-btn:hover::before {
    left: 100%;
}

/* Cart Styles */
.cart-container {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-container.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    min-height: 0;
}

.empty-cart {
    text-align: center;
    color: #999;
    padding: 30px 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-item-category {
    font-size: 12px;
    color: #666;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 16px;
}

.cart-footer {
    padding: 20px;
    background-color: #f9f9f9;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 500;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--success-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background-color: #219653;
}

/* Simple Modal Overlay - No Complex Interactions */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.modal-overlay.active {
    display: block;
}

/* Policy Preview Modal */
.policy-preview {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.policy-preview.active {
    display: flex;
}

.preview-header {
    padding: 24px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.preview-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.close-preview {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.close-preview:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.preview-content {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

.preview-content h4 {
    margin-bottom: 16px;
    color: var(--primary-color);
    font-size: 18px;
}

.preview-content p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #555;
}

.preview-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.preview-content ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.preview-footer {
    padding: 24px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-to-cart-btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.add-to-cart-btn.added {
    background-color: var(--success-color);
}

.add-to-cart-btn.added:hover {
    background-color: #219653;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

/* Mobile Navigation Styles */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-nav-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 999;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-menu.active {
    left: 0;
}

.mobile-nav-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-header .logo h1 {
    font-size: 20px;
    color: white;
    margin: 0;
}

.mobile-nav-header .logo span {
    color: var(--secondary-color);
}

.mobile-nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-nav-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-links {
    flex: 1;
    padding: 20px 0;
}

.mobile-nav-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-links ul li {
    margin: 0;
}

.mobile-nav-links ul li a {
    display: block;
    padding: 16px 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-links ul li a:hover,
.mobile-nav-links ul li a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    padding-left: 30px;
}

.mobile-nav-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-nav-footer .small-logo {
    height: 35px;
    width: auto;
    border-radius: 4px;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    /* Hide desktop navigation */
    nav {
        display: none;
    }
    
    /* Show mobile navigation toggle */
    .mobile-nav-toggle {
        display: block;
    }
    
    .header-right {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    /* Hide desktop logo in header-right on mobile, but keep cart visible */
    .header-right .top-logo {
        display: none;
    }
    
    /* Keep cart icon visible in header on mobile */
    .header-right .cart-icon {
        display: flex;
        font-size: 20px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .policies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .policy-preview {
        width: 95%;
        max-height: 90vh;
    }
    
    .preview-content {
        padding: 20px;
    }
    
    .cart-container {
        width: 100%;
        right: -100%;
    }
    
    .policies-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .filters {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    header {
        padding: 10px 0;
    }
    
    header .container {
        padding: 10px;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    /* Mobile navigation improvements for smaller screens */
    .mobile-nav-toggle {
        font-size: 20px;
        padding: 10px;
    }
    
    .mobile-nav-menu {
        width: 100%;
        left: -100%;
    }
    
    .mobile-nav-header {
        padding: 15px;
    }
    
    .mobile-nav-links ul li a {
        padding: 18px 20px;
        font-size: 15px;
    }
    
    .mobile-nav-footer {
        padding: 15px;
        gap: 15px;
    }
    
    .mobile-nav-footer .small-logo {
        height: 30px;
    }
    
    
    nav ul {
        gap: 8px;
    }
    
    nav ul li a {
        font-size: 14px;
        padding: 8px 12px;
        border-radius: 4px;
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .cart-icon {
        font-size: 18px;
    }
    
    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
    
    .small-logo {
        height: 30px;
    }
    
    .hero {
        padding: 30px 0;
    }
    
    .hero h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .policies-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .policy-card {
        border-radius: 8px;
    }
    
    .policy-card-body {
        padding: 20px;
    }
    
    .policy-card h4 {
        font-size: 16px;
    }
    
    .policy-card p {
        font-size: 13px;
    }
    
    .policy-card .actions {
        flex-direction: column;
        gap: 8px;
        padding: 15px 20px;
    }
    
    .view-btn, .add-btn {
        width: 100%;
        padding: 12px;
        font-size: 13px;
    }
    
    .filters {
        padding: 15px;
    }
    
    .filter-group select {
        padding: 10px;
        font-size: 14px;
    }
    
    footer {
        padding: 20px 0;
        margin-top: 40px;
    }
    
    footer p {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 8px;
    }
    
    .logo h1 {
        font-size: 16px;
    }
    
    .hero h2 {
        font-size: 20px;
    }
    
    .hero p {
        font-size: 13px;
    }
    
    .policy-card-body {
        padding: 15px;
    }
    
    .policy-card h4 {
        font-size: 15px;
    }
    
    .policy-card p {
        font-size: 12px;
    }
    
    .policy-card .actions {
        padding: 12px 15px;
    }
    
    .view-btn, .add-btn {
        padding: 10px;
        font-size: 12px;
    }
    
    .cart-container {
        width: 100%;
    }
    
    .cart-header {
        padding: 15px;
    }
    
    .cart-items {
        padding: 15px;
    }
    
    .cart-footer {
        padding: 15px;
        flex-shrink: 0; /* Ensure footer stays visible */
    }
    
    .confirm-dialog {
        width: 95%;
        max-height: 95vh;
        top: 2.5vh;
        transform: translate(-50%, 0);
    }
    
    .confirm-header {
        padding: 16px;
    }
    
    .confirm-body {
        padding: 16px;
    }
    
    .confirm-footer {
        padding: 12px 16px 16px 16px;
        flex-direction: column;
        gap: 8px;
    }
    
    .confirm-btn, .cancel-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Document Generation Confirmation Dialog */
.confirm-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.confirm-dialog.active {
    display: flex;
}

.confirm-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #e9ecef;
}

.confirm-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 600;
}

.confirm-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.confirm-body p {
    margin: 0 0 16px 0;
    color: #555;
    line-height: 1.6;
}

.policy-count {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    margin: 16px 0;
}

.policy-count strong {
    color: var(--primary-color);
}

.confirm-footer {
    padding: 16px 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-shrink: 0;
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.confirm-btn, .cancel-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-btn {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.cancel-btn:hover {
    background-color: #e9ecef;
}

.confirm-btn {
    background-color: var(--secondary-color);
    color: white;
}

.confirm-btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

/* Loading Dialog */
.loading-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    display: none;
    flex-direction: column;
    padding: 32px;
    text-align: center;
}

.loading-dialog.active {
    display: flex;
}

.loading-icon {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.loading-subtitle {
    color: #6c757d;
    margin-bottom: 24px;
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), #2980b9);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* How It Works Section */
.how-it-works {
    padding: 60px 0;
    background-color: white;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-size: 32px;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.step {
    flex: 1;
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.step-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.additional-info {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.additional-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.cta-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.cta-link:hover {
    text-decoration: underline;
}

/* Responsive Design for How It Works */
@media (max-width: 768px) {
    .steps-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .step {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .how-it-works {
        padding: 40px 0;
    }
    
    .how-it-works h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .step-content p {
        font-size: 13px;
    }
}

/* Contact Page Styles */
.contact-section {
    padding: 60px 0;
    background-color: white;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-info {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #f0f0f0;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info > p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.contact-method i {
    font-size: 24px;
    color: var(--secondary-color);
    margin-top: 5px;
    min-width: 24px;
}

.contact-method div {
    flex: 1;
}

.contact-method h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-method p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    margin-top: 60px;
}

.faq-section h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.faq-item {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.faq-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.faq-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}
/* Responsive Design for Contact Page */
@media (min-width: 768px) {
    .contact-content {
        flex-direction: row;
    }
    
    .contact-info {
        flex: 1;
    }
    
    .contact-methods {
        flex-direction: row;
        gap: 20px;
    }
    
    .contact-method {
        flex: 1;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-method i {
        margin-top: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-content {
        gap: 30px;
    }
    
    .contact-info {
        padding: 30px;
    }
    
    .contact-info h3 {
        font-size: 24px;
    }
    
    .contact-methods {
        gap: 20px;
    }
    
    .contact-method {
        padding: 15px;
    }
    
    .contact-method i {
        font-size: 20px;
    }
    
    .contact-method h4 {
        font-size: 16px;
    }
    
    .contact-method p {
        font-size: 14px;
    }
    
    .faq-section {
        margin-top: 40px;
    }
    
    .faq-section h3 {
        font-size: 24px;
    }
    
    .faq-grid {
        gap: 20px;
    }
    
    .faq-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 30px 0;
    }
    
    .contact-content {
        gap: 25px;
    }
    
    .contact-info {
        padding: 20px;
    }
    
    .contact-info h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .contact-info > p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .contact-methods {
        gap: 15px;
    }
    
    .contact-method {
        padding: 12px;
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }
    
    .contact-method i {
        font-size: 18px;
        margin-top: 2px;
        margin-bottom: 0;
    }
    
    .contact-method h4 {
        font-size: 15px;
        margin-bottom: 3px;
    }
    
    .contact-method p {
        font-size: 13px;
    }
    
    .faq-section {
        margin-top: 30px;
    }
    
    .faq-section h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .faq-item {
        padding: 15px;
    }
    
    .faq-item h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .faq-item p {
        font-size: 13px;
    }
}

@media (max-width: 320px) {
    .contact-section {
        padding: 20px 0;
    }
    
    .contact-info {
        padding: 15px;
    }
    
    .contact-info h3 {
        font-size: 18px;
    }
    
    .contact-info > p {
        font-size: 13px;
    }
    
    .contact-method {
        padding: 10px;
    }
    
    .contact-method i {
        font-size: 16px;
    }
    
    .contact-method h4 {
        font-size: 14px;
    }
    
    .contact-method p {
        font-size: 12px;
    }
    
    .faq-section h3 {
        font-size: 18px;
    }
    
    .faq-item {
        padding: 12px;
    }
    
    .faq-item h4 {
        font-size: 15px;
    }
    
    .faq-item p {
        font-size: 12px;
    }
}
/* Reality Check Assessment Styles */
.reality-check-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.assessment-intro {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    text-align: center;
}

.assessment-intro h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
}

.assessment-intro p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.reality-icon {
    color: var(--warning-color);
}

.policy-icon {
    color: var(--secondary-color);
}

/* Assessment Form */
.assessment-category {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.category-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-header i {
    font-size: 20px;
}

.category-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.category-questions {
    padding: 0;
}

.question-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.question-item:last-child {
    border-bottom: none;
}

.question-item:hover {
    background-color: #f8f9fa;
}

.question-text {
    flex: 1;
    margin-right: 20px;
}

.question-text span {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.4;
}

.question-checkboxes {
    display: flex;
    gap: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.checkbox-label:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.checkbox-label.reality {
    color: var(--warning-color);
}

.checkbox-label.policy {
    color: var(--secondary-color);
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

/* Assessment Actions */
.assessment-actions {
    text-align: center;
    margin: 40px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

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

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #f8f9fa;
    color: var(--text-color);
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background-color: #e9ecef;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-small:hover {
    background-color: #2980b9;
}

/* Results Container */
.results-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 30px;
    margin-top: 30px;
}

.results-container h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
}

/* Results Summary */
.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid var(--success-color);
}

.summary-card.warning {
    border-left-color: var(--warning-color);
}

.summary-card.info {
    border-left-color: var(--secondary-color);
}

.summary-icon {
    font-size: 24px;
    color: var(--success-color);
}

.summary-card.warning .summary-icon {
    color: var(--warning-color);
}

.summary-card.info .summary-icon {
    color: var(--secondary-color);
}

.summary-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: var(--primary-color);
}

.summary-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.summary-content p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* Results Chart */
.results-chart {
    height: 300px;
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Recommendations */
.recommendations {
    margin-top: 30px;
}

.recommendations h4 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 20px;
}

.recommendations-list {
    margin-bottom: 20px;
}

.recommendation-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid var(--secondary-color);
}

.recommendation-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.recommendation-content i {
    color: var(--secondary-color);
    font-size: 16px;
}

.recommendation-content span {
    font-weight: 500;
    color: var(--primary-color);
}

.recommendation-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-secondary i {
    font-size: 10px;
}

.no-recommendations {
    text-align: center;
    color: var(--success-color);
    font-style: italic;
    padding: 20px;
}

/* Policy Details Modal */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.modal.active {
    display: flex;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: #e9ecef;
    color: var(--primary-color);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0; /* Important for flex child to be scrollable */
}

.policy-meta {
    margin-bottom: 15px;
}

.policy-category {
    background-color: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.policy-summary {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.policy-summary p {
    margin: 0;
    color: #495057;
    font-style: italic;
}

.policy-details {
    line-height: 1.6;
}

.policy-details h4 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.policy-details ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.policy-details li {
    margin-bottom: 5px;
    color: #495057;
}
.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0; /* Prevent footer from shrinking */
}

/* Notification */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .reality-check-container {
        padding: 10px 0;
    }
    
    .assessment-intro {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .legend {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .question-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }
    
    .question-text {
        margin-right: 0;
    }
    
    .question-checkboxes {
        width: 100%;
        justify-content: space-around;
    }
    
    .checkbox-label {
        flex: 1;
        justify-content: center;
        padding: 12px 8px;
    }
    
    .assessment-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .results-summary {
        grid-template-columns: 1fr;
    }
    
    .results-chart {
        height: 250px;
    }
    
    .recommendation-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .btn-small {
        align-self: flex-end;
    }
    
    .recommendation-actions {
        flex-direction: column;
        gap: 5px;
        width: 100%;
    }
    
    .recommendation-actions .btn-small,
    .recommendation-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .modal {
        width: 95%;
        max-height: 95vh;
        top: 2.5vh;
        transform: translate(-50%, 0);
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .assessment-intro {
        padding: 15px;
    }
    
    .category-header {
        padding: 15px;
    }
    
    .category-header h4 {
        font-size: 16px;
    }
    
    .question-item {
        padding: 12px;
    }
    
    .question-text span {
        font-size: 14px;
    }
    
    .checkbox-label {
        font-size: 13px;
        padding: 10px 6px;
    }
    
    .results-container {
        padding: 20px;
    }
    
    .summary-card {
        padding: 15px;
    }
    
    .summary-number {
        font-size: 24px;
    }
}