/* Service Areas Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Hero Section */
.service-area-hero {
    background: linear-gradient(135deg, #014aab, #00B2A9);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.service-area-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-area-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* Coverage Stats */
.coverage-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-box {
    background: rgba(255,255,255,0.15);
    padding: 1.5rem;
    border-radius: 10px;
    min-width: 150px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* City Grid Section */
.city-grid-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
}

.tier-section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: linear-gradient(to bottom, rgba(1,74,171,0.02), rgba(255,255,255,0));
    border-radius: 15px;
}

.tier-section:nth-child(1) {
    background: linear-gradient(135deg, rgba(1,74,171,0.03), rgba(0,178,169,0.02));
}

.tier-section:nth-child(2) {
    background: linear-gradient(135deg, rgba(0,178,169,0.03), rgba(1,74,171,0.02));
}

.tier-section:nth-child(3) {
    background: linear-gradient(135deg, rgba(1,74,171,0.02), rgba(0,178,169,0.03));
}

.tier-header {
    background: linear-gradient(135deg, rgba(1,74,171,0.08), rgba(0,178,169,0.05));
    padding: 1.8rem;
    border-left: 5px solid #00B2A9;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.tier-header:hover {
    box-shadow: 0 4px 12px rgba(0,178,169,0.15);
    border-left-width: 6px;
}

.tier-header h2 {
    color: #014aab;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.tier-header p {
    color: #555;
    margin: 0;
}

/* Cities Grid */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .cities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* City Cards */
.city-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    border: 2px solid transparent;
}

.city-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,178,169,0.05), rgba(1,74,171,0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.city-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0,178,169,0.25), 0 4px 15px rgba(1,74,171,0.15);
    border-color: rgba(0,178,169,0.3);
}

.city-card:hover::before {
    opacity: 1;
}

.city-card:active {
    transform: translateY(-4px) scale(1.01);
}

.city-card-header {
    background: linear-gradient(135deg, #014aab, #00B2A9);
    color: white;
    padding: 1.5rem;
}

.city-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.city-zip {
    font-size: 0.9rem;
    opacity: 0.9;
}

.city-card-body {
    padding: 1.5rem;
}

/* Service Tags */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.service-tag {
    background: linear-gradient(135deg, #f0f8ff, #e8f5f4);
    color: #014aab;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,178,169,0.2);
}

.service-tag:hover {
    background: linear-gradient(135deg, #00B2A9, #014aab);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,178,169,0.3);
}

.city-cta {
    color: #00B2A9;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Coming Soon Cards */
.coming-soon {
    background: #f9f9f9;
    opacity: 0.8;
}

.coming-soon .city-card-header {
    background: linear-gradient(135deg, #666, #888);
}

.coming-soon-badge {
    background: #FFC107;
    color: #333;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.home-base-badge {
    background: #FFC107;
    color: #014aab;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    font-weight: 700;
}

/* Service List Section */
.service-list-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,178,169,0.2);
    border-color: rgba(0,178,169,0.3);
}

.service-icon {
    font-size: 3.5rem;
    color: #014aab;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-box:hover .service-icon {
    color: #00B2A9;
    transform: scale(1.1) rotate(5deg);
}

.service-box h3 {
    color: #014aab;
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #014aab, #00B2A9);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Buttons */
.btn-primary {
    background: #FFC107;
    color: #014aab;
    padding: 1.2rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-secondary {
    background: white;
    color: #014aab;
    padding: 1.2rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s;
}

.btn-secondary:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-area-hero h1 {
        font-size: 1.8rem;
    }
    
    .cities-grid {
        grid-template-columns: 1fr;
    }
    
    .coverage-stats {
        gap: 1rem;
        flex-direction: row;
    }
    
    .stat-box {
        min-width: 120px;
        padding: 1rem;
        flex: 1;
    }
    
    .tier-header h2 {
        font-size: 1.5rem;
    }
    
    .tier-header {
        padding: 1.2rem;
    }
    
    .tier-section {
        padding: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .city-name {
        font-size: 1.2rem;
    }
    
    .city-card {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .service-area-hero {
        padding: 2rem 1rem;
    }
    
    .service-area-hero h1 {
        font-size: 1.5rem;
    }
    
    .service-area-hero p {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* ========================================
   LEAD FORM MODAL STYLES
   Mobile-First, Optimized for Touch
   ======================================== */

/* Modal Overlay */
.estimate-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(1, 67, 133, 0.95);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.estimate-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Modal Content Container */
.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Mobile: Full Screen Modal */
@media (max-width: 768px) {
    .estimate-modal.active {
        padding: 0;
        align-items: stretch;
    }
    
    .modal-content {
        border-radius: 0;
        max-height: 100vh;
        height: 100%;
        max-width: 100%;
    }
}

/* Close Button */
.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: rgba(1, 74, 171, 0.1);
    color: #014aab;
    transform: rotate(90deg);
}

.modal-close:active {
    transform: scale(0.9) rotate(90deg);
}

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, #014aab, #00B2A9);
    color: white;
    padding: 2.5rem 2rem 2rem;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

@media (max-width: 768px) {
    .modal-header {
        border-radius: 0;
        padding: 3rem 1.5rem 1.5rem;
    }
}

.modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.modal-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0;
}

.modal-subtitle strong {
    color: #D4A017;
    font-weight: 600;
}

@media (max-width: 480px) {
    .modal-header h2 {
        font-size: 1.4rem;
    }
    
    .modal-subtitle {
        font-size: 1rem;
    }
}

/* Modal Body */
.modal-body {
    padding: 2rem;
}

@media (max-width: 768px) {
    .modal-body {
        padding: 1.5rem;
    }
}

/* Modal Footer */
.modal-footer {
    padding: 1.5rem 2rem 2rem;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
    border-top: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
    .modal-footer {
        border-radius: 0;
        padding: 1.5rem;
    }
}

/* WPForms Container */
#wpforms-container {
    min-height: 200px;
}

/* Book Estimate Button on City Cards */
.btn-book-estimate {
    width: 100%;
    background: linear-gradient(135deg, #00B2A9, #014aab);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin: 1rem 0 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 178, 169, 0.3);
    -webkit-tap-highlight-color: transparent;
}

.btn-book-estimate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 178, 169, 0.4);
    background: linear-gradient(135deg, #00c9bf, #0155c4);
}

.btn-book-estimate:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 178, 169, 0.3);
}

@media (max-width: 480px) {
    .btn-book-estimate {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Prevent Background Scroll when Modal Open */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Touch Optimization */
@media (hover: none) and (pointer: coarse) {
    .modal-close {
        width: 48px;
        height: 48px;
        font-size: 2rem;
    }
    
    .btn-book-estimate {
        min-height: 48px;
    }
}

/* FAQ Accordion Styles */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,178,169,0.15);
}

.faq-question {
    font-family: 'Poppins', sans-serif;
}

.faq-question:hover {
    background: linear-gradient(135deg, rgba(1,74,171,0.03), rgba(0,178,169,0.03)) !important;
}

.faq-question:active {
    transform: scale(0.99);
}

/* City Search Input Styles */
#citySearch {
    font-family: 'Poppins', sans-serif;
}

#citySearch::placeholder {
    color: #999;
    opacity: 0.8;
}

#citySearch:hover {
    border-color: #014aab;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile FAQ Adjustments */
@media (max-width: 768px) {
    .faq-question h3 {
        font-size: 1.05rem;
    }
    
    .faq-question {
        padding: 1.2rem !important;
    }
    
    .faq-answer p {
        padding: 1.2rem 0 !important;
    }
}

