/* Contact Section */
#contact {
    background-color: #fff; /* Changed to white */
}

.contact-container {
    display: flex;
    justify-content: center; /* Center the remaining content */
    max-width: 1200px;
    margin: 2rem auto 0;
}

#contact .section-header h2 {
    color: #2c3e50;
}

#contact .section-header p {
    color: #6c757d;
}

.contact-info {
    max-width: 100%;
    /* --- UPDATED STYLES START HERE --- */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* --- UPDATED STYLES END HERE --- */
}

.contact-info h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #333;
    text-align: center; /* Keep text centered */
}

.contact-details {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    /* Centering is now handled by the parent .contact-info */
}

.contact-details li {
    margin-bottom: 1.5rem;
}

.contact-details li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px; /* Pill shape */
    background-color: #f9f9f9;
    color: #2c3e50;
    border: 2px solid #ddd;
    font-size: 1.1rem; /* Slightly larger font */
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, background-color 0.3s, border-color 0.3s, color 0.3s;
    cursor: pointer;
    max-width: 400px;
    box-sizing: border-box;
}

.contact-details li a:hover {
    transform: translateY(-2px);
    background-color: #f39c12;
    border-color: #f39c12;
    color: #fff;
}

.contact-details i {
    font-size: 1.2rem; /* Adjusted icon size */
    color: #f39c12;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.contact-details li a:hover i {
    color: #fff; /* Make icon white on hover */
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
}

.map-container img {
    width: 100%;
    height: auto;
    display: block;
}

.map-hotspot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 0;
    padding-bottom: 60%;
    background-color: rgba(243, 156, 18, 0.5);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 rgba(243, 156, 18, 0.4);
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.7);
    }
    70% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 20px rgba(243, 156, 18, 0);
    }
    100% {
        transform: translate(-50%, -50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0);
    }
}

.map-pin {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 4px solid #f39c12;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
    z-index: 9;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.map-pin.active,
.map-pin:hover {
    transform: translate(-50%, -50%) scale(1.4);
    border-color: #2c3e50;
    z-index: 11;
}

.map-pin .map-pin-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2c3e50;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.map-pin:hover .map-pin-tooltip,
.map-pin.active .map-pin-tooltip {
    visibility: visible;
    opacity: 1;
}

.map-pin[data-location="wickenburg"] { top: 52%; left: 48%; }
.map-pin[data-location="congress"] { top: 30%; left: 45%; }
.map-pin[data-location="morristown"] { top: 68%; left: 58%; }
.map-pin[data-location="wittmann"] { top: 78%; left: 65%; }
.map-pin[data-location="aguila"] { top: 55%; left: 25%; }

.service-area-display {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.service-area-tag {
    position: relative;
    background-color: #f9f9f9;
    color: #2c3e50;
    border-radius: 50px;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, background-color 0.3s, border-color 0.3s, color 0.3s;
    padding: 8px 16px;
}

.service-area-tag:hover,
.service-area-tag.active {
    transform: translateY(-2px);
    background-color: #f39c12;
    border-color: #f39c12;
    color: #fff;
}

.service-area-tag span {
    margin-left: 8px;
}

.service-area-tag i {
    font-size: 12px;
}

@media (max-width: 900px) {
    #contact {
        padding-bottom: 40px;
    }
    .contact-details li a {
        text-align: left;
        justify-content: flex-start;
    }
}