/* Modal Contact Styles */
.contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-overlay.show {
    opacity: 1;
    visibility: visible;
}

.contact-modal-container {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(-30px);
    transition: all 0.3s ease;
}

.contact-overlay.show .contact-modal-container {
    transform: scale(1) translateY(0);
}

/* Header */
.contact-header {
    background: linear-gradient(135deg, #00c3a0 0%, #667eea 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-text h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.header-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Body */
.contact-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* Alert */
.contact-alert {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-icon {
    font-size: 1.25rem;
}

.alert-content h6 {
    margin: 0 0 0.25rem 0;
    color: #1976d2;
    font-weight: 600;
}

.alert-content p {
    margin: 0;
    color: #546e7a;
    font-size: 0.9rem;
}

/* Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 195, 160, 0.15);
    border-color: #00c3a0;
}

.contact-card.recommended::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff4757, #ff3742);
    border-radius: 12px 12px 0 0;
}

.recommended-badge {
    position: absolute;
    top: -8px;
    right: 10px;
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-card:hover .card-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #00c3a0 0%, #667eea 100%);
}

.icon-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.contact-card h5 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.card-subtitle {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 0 0 0.5rem 0;
}

.contact-number {
    color: #495057;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.contact-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
    width: 100%;
    text-align: center;
}

.btn-phone {
    background: #28a745;
    color: white;
}

.btn-phone:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

.btn-zalo {
    background: #007bff;
    color: white;
}

.btn-zalo:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

.btn-facebook {
    background: #17a2b8;
    color: white;
}

.btn-facebook:hover {
    background: #138496;
    color: white;
    text-decoration: none;
}

.contact-card small {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Additional Info */
.additional-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-icon {
    font-size: 1.25rem;
}

.info-item h6 {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    color: #495057;
}

.info-item small {
    color: #6c757d;
}

/* Footer */
.contact-footer {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.security-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
}

.security-icon {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-modal-container {
        width: 95%;
        margin: 1rem;
    }
    
    .contact-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .close-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .contact-body {
        padding: 1rem;
    }
    
    .contact-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .additional-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .header-text h3 {
        font-size: 1.1rem;
    }
    
    .header-text p {
        font-size: 0.8rem;
    }
    
    .contact-card {
        padding: 1rem;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
    }
    
    .icon-img {
        width: 32px;
        height: 32px;
    }
}

/* Animation cho cards */
.contact-card {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease forwards;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar custom */
.contact-body::-webkit-scrollbar {
    width: 6px;
}

.contact-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.contact-body::-webkit-scrollbar-thumb {
    background: #00c3a0;
    border-radius: 3px;
}

.contact-body::-webkit-scrollbar-thumb:hover {
    background: #00a085;
}