/* Contact Page Mobile Layout Fix */

/* Force horizontal layout for contact action cards on small screens */
@media (max-width: 767px) {
    .contact-actions .action-card {
        margin-bottom: 1rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
        background: #f8f9fa !important;
        border: 1px solid #e9ecef !important;
    }
    
    .contact-actions .action-card .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }
    
    .contact-actions .action-card .col-2 {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
    }
    
    .contact-actions .action-card .col-7 {
        flex: 1 !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
        min-width: 0 !important;
    }
    
    .contact-actions .action-card .col-3 {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
    }
    
    /* Icon adjustments */
    .contact-actions .action-card i {
        font-size: 2rem !important;
        width: 40px !important;
        text-align: center !important;
    }
    
    /* Text adjustments */
    .contact-actions .action-card h5 {
        font-size: 0.9rem !important;
        margin-bottom: 0.25rem !important;
        font-weight: 600 !important;
    }
    
    .contact-actions .action-card p {
        font-size: 0.75rem !important;
        margin-bottom: 0 !important;
        line-height: 1.2 !important;
    }
    
    /* Button adjustments */
    .contact-actions .action-card .btn {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.75rem !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
        min-width: 70px !important;
    }
}

/* Extra small screens optimization */
@media (max-width: 480px) {
    .contact-actions .action-card {
        padding: 0.75rem !important;
    }
    
    .contact-actions .action-card .row {
        gap: 0.5rem !important;
    }
    
    .contact-actions .action-card i {
        font-size: 1.75rem !important;
        width: 35px !important;
    }
    
    .contact-actions .action-card h5 {
        font-size: 0.85rem !important;
    }
    
    .contact-actions .action-card p {
        font-size: 0.7rem !important;
    }
    
    .contact-actions .action-card .btn {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.6rem !important;
        min-width: 65px !important;
    }
}

/* Ensure proper button colors are maintained */
.btn-orange {
    background-color: #D4AF37 !important;
    border-color: #D4AF37 !important;
    color: white !important;
}

.btn-orange:hover {
    background-color: #D4AF37 !important;
    border-color: #D4AF37 !important;
    color: white !important;
}

/* Card layout adjustments for mobile */
@media (max-width: 767px) {
    .col-lg-6 {
        margin-bottom: 2rem !important;
    }
    
    .card-body {
        padding: 2rem !important;
    }
    
    .contact-info .contact-item {
        margin-bottom: 2rem !important;
    }
}

/* Very small screens - stack main columns but keep action cards horizontal */
@media (max-width: 576px) {
    .card-body {
        padding: 1.5rem !important;
    }
    
    .contact-actions .action-card {
        margin-bottom: 0.75rem !important;
    }
}