/* Contact Page Optimized Styles - Minimal Negative Space */

/* Compact Hero Section */
.hero-section {
    min-height: 250px !important;
}

/* Contact Form Optimizations */
.contact-form .form-control {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.contact-form .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-form textarea.form-control {
    min-height: 100px;
}

/* Contact Info Cards */
.contact-info-card {
    transition: transform 0.2s ease;
}

.contact-info-card:hover {
    transform: translateY(-2px);
}

/* Branch Office Cards */
.branch-office-card {
    transition: all 0.2s ease;
    cursor: pointer;
}

.branch-office-card:hover {
    background-color: #e3f2fd !important;
    transform: scale(1.02);
}

/* Compact Modal */
.modal-content {
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
}

/* Map Container */
.map-container {
    border-radius: 8px;
    overflow: hidden;
}

/* Quick Contact Links */
.quick-contact-link {
    transition: all 0.2s ease;
}

.quick-contact-link:hover {
    transform: translateX(3px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 200px !important;
    }
    
    .hero-section .h2 {
        font-size: 1.5rem;
    }
    
    .contact-form .row.g-2 {
        gap: 0.5rem !important;
    }
    
    .branch-office-card {
        padding: 0.75rem !important;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
}

/* Utility Classes for Compact Design */
.compact-spacing {
    padding: 0.5rem !important;
}

.ultra-compact {
    padding: 0.25rem !important;
}

.no-bottom-margin {
    margin-bottom: 0 !important;
}

.minimal-gap {
    gap: 0.5rem !important;
}

/* Enhanced Visual Hierarchy */
.section-divider {
    border-top: 2px solid #f8f9fa;
    margin: 1rem 0;
}

/* Contact Page Specific Animations */
.contact-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }
.contact-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Disable animations on mobile for better performance */
@media (max-width: 768px) {
    .contact-item {
        animation: none;
        opacity: 1;
        transform: none;
    }
}