/* Service Areas Page Styles */

/* Hero Section */
.hero-service-areas {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #3d5a80 100%);
    padding: 80px 0 100px;
    position: relative;
}

.hero-service-areas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
}

.hero-content-center {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ZIP Code Search */
.zip-search-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    margin-top: 40px;
}

.search-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

.zip-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 18px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.zip-input:focus {
    border-color: #2c5282;
    box-shadow: 0 0 0 4px rgba(44, 82, 130, 0.1);
}

.zip-input::placeholder {
    color: #999;
}

.search-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 82, 130, 0.3);
}

.search-btn:active {
    transform: translateY(0);
}

/* Search Results */
.search-result {
    display: none;
    margin-top: 24px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.success-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    stroke: white;
}

.success-content {
    flex: 1;
}

.success-content h4 {
    font-size: 22px;
    font-weight: 700;
    color: #155724;
    margin: 0 0 8px 0;
}

.success-content p {
    font-size: 16px;
    color: #155724;
    margin: 0 0 16px 0;
}

.success-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.success-btn:hover {
    background: #1e7e34;
    color: white;
    transform: translateX(4px);
}

.search-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    border-radius: 12px;
    padding: 24px;
    color: #721c24;
}

.search-error p {
    margin: 0 0 12px 0;
    font-size: 16px;
}

.search-error ul {
    margin: 12px 0;
    padding-left: 24px;
}

.search-error li {
    margin: 6px 0;
}

/* Counties Grid */
.counties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.county-card {
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.county-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border-color: #2c5282;
}

.county-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.county-card-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.county-card-header svg {
    flex-shrink: 0;
    stroke: #2c5282;
    transition: transform 0.3s ease;
}

.county-card:hover .county-card-header svg {
    transform: translateX(4px);
}

.county-card-cities {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.county-card-footer {
    font-size: 13px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cities Section */
.service-area-region {
    margin-bottom: 60px;
}

.region-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #2c5282;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.city-card {
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.city-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border-color: #2c5282;
}

.city-card-featured {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border: 2px solid #2c5282;
    box-shadow: 0 4px 16px rgba(44, 82, 130, 0.15);
}

.city-card-featured:hover {
    box-shadow: 0 12px 32px rgba(44, 82, 130, 0.25);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.3);
}

.city-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.city-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 8px 0;
}

.city-county {
    font-size: 14px;
    color: #666;
    margin: 4px 0;
}

.city-link {
    display: inline-block;
    color: #2c5282;
    font-weight: 600;
    font-size: 14px;
    margin-top: 12px;
}

/* Benefits Grid - Premium Design */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.benefit-item {
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(44, 82, 130, 0.12);
    border-color: #2c5282;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e6eef5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
}

.benefit-item:hover .benefit-icon svg {
    stroke: white;
}

.benefit-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.benefit-desc {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .zip-search-box {
        padding: 24px;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .counties-grid {
        grid-template-columns: 1fr;
    }
    
    .cities-grid {
        grid-template-columns: 1fr;
    }
    
    .search-success {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-service-areas {
        padding: 60px 0 80px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .zip-search-box {
        padding: 20px;
    }
    
    .zip-input {
        font-size: 16px;
        padding: 14px 16px;
    }
}
