/* ========== MODERN CONTACT STYLES ========== */

/* Contact Cards */
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    background: white;
    border: 1px solid rgba(53, 53, 53, 0.1);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.contact-card:hover .contact-icon {
    transform: rotate(15deg) scale(1.1);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}
 
.contact-card:hover::before {
    opacity: 1;
}

.contact-label {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

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

.contact-label h5 {
    color: var(--dark);
    font-weight: 700;
    margin: 0;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.contact-main {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
    display: block;
}

.contact-main a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-main a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.contact-secondary {
    color: var(--grey);
    font-size: 0.9rem;
    margin-top: 3px;
}

.contact-note {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 5px;
    padding: 5px 10px;
    background: rgba(53, 53, 53, 0.05);
    border-radius: 5px;
    display: inline-block;
}

/* Map Directions Overlay */
.map-directions-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.btn-directions {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-directions:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.btn-directions i {
    font-size: 1.1rem;
}

/* Responsive Design for Map */
@media (max-width: 768px) {
    .map-directions-overlay {
        bottom: 15px;
        right: 15px;
    }
    
    .btn-directions {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* Ensure "Us Here" is black */
.title-highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Remove any conflicting styles */
.map-info {
    display: none !important;
}

/* Modern Contact Form */
.modern-contact-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(53, 53, 53, 0.1);
}

.modern-contact-form .form-floating {
    margin-bottom: 1.5rem;
}

.modern-contact-form .form-control,
.modern-contact-form .form-select {
    border: 1px solid rgba(53, 53, 53, 0.2);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.modern-contact-form .form-control:focus,
.modern-contact-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(53, 53, 53, 0.15);
    transform: translateY(-2px);
}

.modern-contact-form .form-label {
    color: var(--grey);
    font-weight: 500;
}

.modern-contact-form .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.modern-contact-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(53, 53, 53, 0.2);
}

.modern-contact-form .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Social Section */
.social-section {
    background: rgba(53, 53, 53, 0.03);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(53, 53, 53, 0.1);
}

.social-section h5 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 20px;
}

.social-section .btn-square {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.social-section .btn-square:hover {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Business Hours */
.business-hours {
    background: white;
    border-radius: 15px;
    border: 1px solid rgba(53, 53, 53, 0.1);
    overflow: hidden;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(53, 53, 53, 0.1);
    transition: all 0.3s ease;
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-item:hover {
    background: rgba(53, 53, 53, 0.03);
}

.hours-item .day {
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
}

.hours-item .time {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.hours-item.highlight {
    background: linear-gradient(135deg, rgba(53, 53, 53, 0.05), rgba(73, 73, 73, 0.03));
    border-left: 4px solid var(--primary);
}

.hours-item.highlight .day {
    color: var(--primary);
    font-weight: 700;
}

/* Contact Note */
.contact-note {
    border-left: 4px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-note h5 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-note h5 i {
    font-size: 1.3rem;
}

.contact-note p {
    color: var(--grey);
    line-height: 1.6;
    margin: 0;
}

.contact-note strong {
    color: var(--primary);
}

/* Map Container */
.map-container {
    height: 100%;
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px dashed rgba(53, 53, 53, 0.2);
    transition: all 0.3s ease;
}

.map-placeholder:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.map-icon {
    width: 80px;
    height: 80px;
    background: rgba(53, 53, 53, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.map-placeholder h5 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 10px;
}

.map-placeholder p {
    color: var(--grey);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 25px;
}

.map-placeholder .btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.map-placeholder .btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Form Validation */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-contact-form {
        padding: 25px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        margin-right: 15px;
    }
    
    .contact-icon i {
        font-size: 1.2rem;
    }
    
    .contact-label h5 {
        font-size: 1rem;
    }
    
    .contact-main {
        font-size: 1.1rem;
    }
    
    .business-hours {
        margin-bottom: 30px;
    }
    
    .hours-item {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .hours-item .time {
        font-size: 1rem;
    }
    
    .map-placeholder {
        padding: 25px;
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .contact-card,
    .modern-contact-form,
    .business-hours,
    .contact-note,
    .map-placeholder {
        background: #ffffff;
        border-color: #333;
    }
    
    .contact-content h5,
    .contact-content p,
    .contact-note h5,
    .map-placeholder h5 {
        color: #fff;
    }
    
    .contact-content p a {
        color: #fff;
    }
    
    .hours-item .day {
        color: #fff;
    }
    
    .social-section { 
        border-color: #333;
    }
}