/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
    font-display: fallback;
}

/* Font loading optimization */
@font-face {
    font-family: 'Inter';
    font-display: fallback;
    src: local('Inter'), local('Inter-Regular');
}

/* Font loading state */
body:not(.fonts-loaded) {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.fonts-loaded {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

/* Header and Navigation */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    font-size: 0.9rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #ffffff;
}

.breadcrumb-current {
    color: #ffffff;
    font-weight: 500;
}

.breadcrumb i {
    font-size: 0.8rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-logo i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    margin-bottom: 60px;
}

.search-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-box i {
    padding: 10px 10px;
    color: white;
    font-size: 1.2rem;
}

#location-search {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-width: fit-content;
    border-radius: 0 25px 25px 0;
}

.search-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

.search-help {
    margin-top: 10px;
    text-align: center;
}

.search-help small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Search Suggestions */
.search-suggestions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    font-weight: 500;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.suggestion-item i {
    color: #ffd700;
    font-size: 0.8rem;
}

/* Search Results Header */
.search-results-header {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 30px;
}

.search-results-header h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.search-results-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

.hero-stat-label {
    color: white;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}


/* Quick Filters */
.quick-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #4a5568;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2d3748;
}

.section-header p {
    font-size: 1.2rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* Providers Section */
.providers-section {
    padding: 80px 0;
    background: white;
}


/* Filter Results Count */
.filter-results {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.filter-results strong {
    color: #667eea;
    font-size: 1.1rem;
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Enhanced Feature Tags */
.type-tag {
    display: inline-block;
    background: #e6fffa;
    color: #234e52;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0 5px 5px 0;
    border: 1px solid #81e6d9;
}



/* Enhanced Provider Stats */
.provider-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.stat {
    text-align: center;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.stat:hover {
    background: #edf2f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: black;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Plan Type Indicators */
.plan-type-indicator {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.plan-type-fiber {
    background: #e6fffa;
    color: #234e52;
}

.plan-type-cable {
    background: #ebf8ff;
    color: #2c5282;
}

.plan-type-dsl {
    background: #faf5ff;
    color: #553c9a;
}

.plan-type-satellite {
    background: #fffaf0;
    color: #c05621;
}

/* Enhanced Provider Cards */
.provider-card {
    position: relative;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.provider-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.provider-card:hover::before {
    opacity: 1;
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.provider-card.featured {
    border: 2px solid #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.provider-card.featured:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.25);
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.featured-badge i {
    color: #ffd700;
    font-size: 0.7rem;
}

.provider-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.provider-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.provider-logo-large {
    width: 120px;
    height: 80px;
}

.provider-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.provider-logo-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.provider-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2d3748;
}

.provider-info .location {
    color: #718096;
    font-size: 0.9rem;
}

.provider-features {
    margin-bottom: 20px;
}

/* Provider Plans */
.provider-plans {
    margin: 20px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.provider-plans h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2d3748;
}

.plans-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.plan-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.plan-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.plan-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2d3748;
}

.plan-speed {
    font-size: 0.8rem;
    color: #4a5568;
}

.plan-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
}

.more-plans {
    text-align: center;
    font-size: 0.8rem;
    color: #4a5568;
    font-style: italic;
    padding: 8px;
    background: #f1f5f9;
    border-radius: 4px;
}

.feature-tag {
    display: inline-block;
    background: #e6fffa;
    color: #234e52;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0 5px 5px 0;
}

.provider-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

/* Compare Section */
.compare-section {
    padding: 80px 0;
    background: #f8fafc;
}

.comparison-empty {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.comparison-empty i {
    font-size: 3rem;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.comparison-empty h3 {
    font-size: 1.5rem;
    color: #4a5568;
    margin-bottom: 10px;
}

.comparison-empty p {
    color: #718096;
    font-size: 1rem;
}

.comparison-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: white;
    padding: 20px 30px;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.comparison-controls-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.comparison-controls h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.3rem;
}

.comparison-table-wrapper {
    background: white;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #2d3748;
    position: sticky;
    top: 0;
    z-index: 10;
}

.comparison-table th:first-child {
    min-width: 150px;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: #2d3748;
    background: #f7fafc;
}

.provider-header-compare {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.provider-logo-compare {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.provider-logo-compare img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.provider-logo-compare .provider-logo-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
}

.provider-info-compare {
    flex: 1;
}

.provider-info-compare h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #2d3748;
}

.remove-provider {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.remove-provider:hover {
    background: #c53030;
    transform: scale(1.1);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Guides Section */
.guides-section {
    padding: 80px 0;
    background: #f8fafc;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.guide-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guide-card:hover::before {
    opacity: 1;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.guide-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.guide-icon i {
    font-size: 1.5rem;
    color: white;
}

.guide-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3748;
}

.guide-card p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.guide-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.guide-link:hover {
    color: #764ba2;
}

/* Guide Content Styles */
.guide-content {
    margin-top: 60px;
}

.guide-detail {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.guide-detail h3 {
    color: #2d3748;
    font-size: 2rem;
    margin-bottom: 25px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}

.guide-detail h4 {
    color: #4a5568;
    font-size: 1.5rem;
    margin: 30px 0 15px 0;
}

.guide-detail h5 {
    color: #2d3748;
    font-size: 1.2rem;
    margin: 20px 0 10px 0;
}

.guide-body p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
}

.guide-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.guide-body li {
    color: #4a5568;
    margin-bottom: 8px;
    line-height: 1.6;
}

.guide-body strong {
    color: #2d3748;
    font-weight: 600;
}

/* Speed Table */
.speed-table {
    background: #f7fafc;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.speed-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.speed-row:last-child {
    border-bottom: none;
}

.speed-row .activity {
    font-weight: 500;
    color: #2d3748;
}

.speed-row .speed {
    font-weight: 600;
    color: #667eea;
    background: white;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* Connection Types */
.connection-type {
    background: #f7fafc;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

.connection-type h5 {
    color: #667eea;
    margin: 15px 0 8px 0;
}

.connection-type p {
    margin-bottom: 15px;
}

/* Rural Options */
.rural-option {
    background: #f7fafc;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    border-left: 4px solid #48bb78;
}

.rural-option h5 {
    color: #48bb78;
    margin: 15px 0 8px 0;
}

/* Cost Breakdown */
.cost-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.cost-category {
    background: #f7fafc;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.cost-category h5 {
    color: #667eea;
    margin-bottom: 10px;
}

.cost-category p {
    margin-bottom: 8px;
}

/* WiFi Solutions */
.wifi-solution {
    background: #f7fafc;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    border-left: 4px solid #ed8936;
}

.wifi-solution h5 {
    color: #ed8936;
    margin: 15px 0 8px 0;
}

.guide-link i {
    transition: transform 0.3s ease;
}

.guide-link:hover i {
    transform: translateX(3px);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 20px 25px;
    background: #f7fafc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #edf2f7;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.faq-question i {
    color: #667eea;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px 25px;
    max-height: 200px;
}

.faq-answer p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: block;
    visibility: visible;
}

.chat-toggle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    transition: transform 0.3s ease;
}

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

.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 400px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 250px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 3px;
}

.chat-body::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.chat-body::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}


.chat-message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 10px;
    max-width: 80%;
}

.chat-message.bot {
    background: #f7fafc;
    margin-right: auto;
}

.chat-message.user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: auto;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    outline: none;
}

.chat-input button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}

/* Neighborhoods Section */
.neighborhoods-section {
    margin: 60px 0;
}

.neighborhoods-section h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #2d3748;
    text-align: center;
}

.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.neighborhood-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.neighborhood-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.neighborhood-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2d3748;
}

.neighborhood-card p {
    color: #4a5568;
    margin-bottom: 15px;
    font-weight: 500;
}

.neighborhood-card ul {
    list-style: none;
    padding: 0;
}

.neighborhood-card li {
    color: #4a5568;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.neighborhood-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: #f8fafc;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #2d3748;
}

.about-text p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 30px;
    line-height: 1.8;
}

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

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 10px;
}

.feature i {
    color: #48bb78;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: #a0aec0;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 20px;
    text-align: center;
    color: #a0aec0;
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .search-btn {
        border-radius: 0 0 15px 15px;
        padding: 15px 20px;
        font-size: 0.95rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .chat-window {
        width: 300px;
        height: 350px;
    }
    
    .chat-body {
        max-height: 200px;
        padding: 15px;
    }
    
    .search-suggestions {
        flex-direction: column;
        gap: 10px;
    }
    
    .suggestion-item {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .provider-plans {
        margin: 15px 0;
        padding: 12px;
    }
    
    .plan-item {
        padding: 6px 10px;
    }
    
    .plan-name {
        font-size: 0.85rem;
    }
    
    .plan-speed {
        font-size: 0.75rem;
    }
    
    .plan-price {
        font-size: 0.85rem;
    }
    
    
    .providers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .comparison-controls {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .comparison-controls-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .comparison-table-wrapper {
        overflow-x: auto;
    }
    
    .comparison-table {
        min-width: 800px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Mobile-specific optimizations */
    .guide-card {
        padding: 20px;
    }
    
    .guide-icon {
        width: 50px;
        height: 50px;
    }
    
    .guide-icon i {
        font-size: 1.2rem;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .exit-intent-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .exit-intent-content h3 {
        font-size: 1.3rem;
    }
    
    /* Touch-friendly buttons */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    /* Improved touch targets */
    .nav-toggle span {
        width: 30px;
        height: 4px;
    }
    
    /* Mobile navigation improvements */
    .nav-menu.active {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        padding: 20px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        z-index: 999;
    }
    
    .nav-menu.active .nav-link {
        font-size: 1.2rem;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
        text-align: center;
    }
    
    .nav-menu.active .language-switcher {
        margin-top: 20px;
        padding: 12px 24px;
        border-radius: 25px;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .provider-card {
        padding: 20px;
    }
        
    .provider-stats {
        grid-template-columns: 1fr;
    }
    
    .search-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Performance and Animation Optimizations */
.provider-card,
.section-header,
.feature {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.provider-card.animate-in,
.section-header.animate-in,
.feature.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Lazy loading styles */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.loaded {
    opacity: 1;
}

/* Header scroll effect */
.header.scrolled {
    background: rgba(102, 126, 234, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* Performance optimizations */
* {
    will-change: auto;
}

.provider-card:hover {
    will-change: transform, box-shadow;
}

/* Critical CSS optimizations */
.hero {
    contain: layout style paint;
}

.providers-grid {
    contain: layout;
}

.tool-card {
    contain: layout style;
}

/* Lazy loading for images */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[data-src].loaded {
    opacity: 1;
}

/* Reduce layout shifts */
.hero-stats {
    min-height: 120px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Exit Intent Popup */
.exit-intent-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.exit-intent-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.exit-intent-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.exit-intent-close:hover {
    color: #4a5568;
}

.exit-intent-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.exit-intent-content p {
    color: #4a5568;
    margin-bottom: 25px;
    line-height: 1.6;
}

.exit-intent-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.exit-intent-form input {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.exit-intent-form input:focus {
    outline: none;
    border-color: #667eea;
}

.exit-intent-form button {
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.exit-intent-form button:hover {
    transform: translateY(-2px);
}

.exit-intent-disclaimer {
    font-size: 0.8rem;
    color: #a0aec0;
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PWA Install Button */
.pwa-install-btn {
    position: absolute;
    top: 15px;
    right: 80px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pwa-install-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Update Notification */
.update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #48bb78;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    animation: slideInRight 0.3s ease;
}

.update-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.update-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.update-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* iOS Install Prompt */
.ios-install-prompt {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    animation: slideInUp 0.3s ease;
}

.ios-install-content {
    padding: 20px;
    position: relative;
}

.ios-install-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #a0aec0;
    cursor: pointer;
}

.ios-install-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #2d3748;
}

.ios-install-content p {
    margin: 0 0 15px 0;
    color: #4a5568;
    font-size: 0.9rem;
}

.ios-install-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #4a5568;
}

.step-number {
    background: #667eea;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Notifications */
.notification {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    max-width: 400px;
    width: 90%;
    animation: slideDown 0.3s ease-out;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    font-weight: 500;
}

.notification-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.notification-error {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.notification-info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Loading spinner for search button */
.search-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.fa-spin {
    animation: fa-spin 1s infinite linear;
}

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

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
    .provider-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .provider-card {
        padding: 20px;
    }
} 