/* ===== CONTACT MODAL - BEAUTIFUL, COMPACT & WIDE ===== */
.contact-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(13, 71, 161, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: flex-start;
    justify-content: center;
    padding: 0.75rem;
    padding-top: 200px;
    overflow-y: auto;
}

.contact-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.contact-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 50%, #f5f9ff 100%);
    border-radius: 24px;
    padding: 2rem 2.5rem;
    max-width: 950px; /* Much wider for side-by-side layout */
    width: 100%;
    box-shadow: 0 30px 80px rgba(13, 71, 161, 0.35),
                0 10px 30px rgba(13, 71, 161, 0.2),
                0 0 0 1px rgba(13, 71, 161, 0.1),
                0 5px 20px rgba(255, 143, 0, 0.15);
    position: relative;
    animation: slideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.contact-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #ff8f00 0%, #ffa726 50%, #ff8f00 100%);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 2px 10px rgba(255, 143, 0, 0.4);
}

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

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

.contact-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(13, 71, 161, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.1);
}

.contact-close:hover {
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    border-color: #0d47a1;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.35), 0 0 0 4px rgba(255, 143, 0, 0.15);
}

.contact-close:hover svg {
    color: white;
}

.contact-close svg {
    width: 20px;
    height: 20px;
    color: #0d47a1;
    transition: color 0.3s ease;
}

.contact-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    padding-right: 4rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 70%, #42a5f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-intro {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    font-weight: 500;
    max-width: 85%;
}

.contact-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Contact Methods Row - 3 columns */
.contact-methods-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Contact Info Row - 2 columns (Hours & Address) */
.contact-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-item {
    display: flex;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #fafbff 0%, #f5f9ff 100%);
    border-radius: 16px;
    border: 1.5px solid rgba(13, 71, 161, 0.12);
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.06);
    position: relative;
    overflow: hidden;
    align-items: flex-start;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #0d47a1 0%, #1976d2 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.contact-item:hover::before {
    opacity: 1;
}

.contact-item:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border-color: #0d47a1;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 71, 161, 0.18),
                0 2px 8px rgba(255, 143, 0, 0.12),
                0 0 0 2px rgba(13, 71, 161, 0.08);
}

/* Hours Card Styling */
.contact-item.contact-info {
    cursor: default;
    background: linear-gradient(135deg, #fffbf5 0%, #fff8e8 100%);
    border-color: rgba(255, 143, 0, 0.2);
}

.contact-item.contact-info::before {
    background: linear-gradient(180deg, #ff8f00 0%, #ffa726 100%);
}

.contact-item.contact-info:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #fffbf5 0%, #fff5e0 100%);
    box-shadow: 0 6px 20px rgba(255, 143, 0, 0.15), 0 2px 8px rgba(255, 143, 0, 0.1);
    border-color: rgba(255, 143, 0, 0.3);
}

.contact-icon {
    width: 22px;
    height: 22px;
    color: #0d47a1;
    flex-shrink: 0;
    margin-top: 2px;
    filter: drop-shadow(0 2px 4px rgba(13, 71, 161, 0.1));
}

.contact-item.contact-info .contact-icon {
    color: #ff8f00;
    filter: drop-shadow(0 2px 4px rgba(255, 143, 0, 0.15));
}

.contact-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0d47a1;
    opacity: 0.85;
}

.contact-item.contact-info .contact-label {
    color: #ff8f00;
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.contact-subtext {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.3;
    font-weight: 500;
}

.contact-note {
    font-size: 0.72rem;
    color: #666;
    line-height: 1.35;
    margin-top: 0.25rem;
    font-weight: 500;
}

.contact-directions {
    font-size: 0.75rem;
    color: #0d47a1;
    font-weight: 600;
    margin-top: 0.15rem;
    display: inline-block;
}

.contact-hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0.25rem 0;
    list-style: none;
    padding: 0;
}

.contact-hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #1a1a1a;
    gap: 0.75rem;
}

.contact-hours-list li span:first-child {
    font-weight: 600;
    color: #0d47a1;
}

.contact-hours-list li span:last-child {
    color: #666;
    text-align: right;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    .contact-modal-content {
        max-width: 720px;
        padding: 1.75rem 2rem;
    }

    .contact-methods-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .contact-info-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .contact-modal {
        padding-top: 150px;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .contact-modal-content {
        padding: 1.5rem 1.5rem;
        max-width: 98%;
        border-radius: 20px;
    }

    .contact-modal-title {
        font-size: 1.25rem;
        padding-right: 3rem;
    }

    .contact-intro {
        font-size: 0.8rem;
        margin-bottom: 1.25rem;
        max-width: 100%;
    }

    .contact-methods-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .contact-info-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .contact-item {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }

    .contact-icon {
        width: 18px;
        height: 18px;
    }

    .contact-label {
        font-size: 0.65rem;
    }

    .contact-value {
        font-size: 0.875rem;
    }

    .contact-subtext {
        font-size: 0.7rem;
    }

    .contact-note {
        font-size: 0.68rem;
    }

    .contact-hours-list li {
        font-size: 0.75rem;
    }

    .contact-hours-list li span:last-child {
        font-size: 0.7rem;
    }

    .contact-close {
        width: 36px;
        height: 36px;
        top: 1rem;
        right: 1rem;
    }

    .contact-close svg {
        width: 18px;
        height: 18px;
    }
}
