/* MANH DUC MCI - Contact Page CSS */
/* Version: 1.0.0 | Modern & Elegant */

/* ===== CONTACT HERO ===== */
.contact-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, 
        rgba(8, 32, 58, 0.95) 0%, 
        rgba(15, 48, 85, 0.92) 100%),
        url('<?php echo get_template_directory_uri(); ?>/assets/images/contact-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    position: relative;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(72, 202, 228, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 119, 182, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff, #90e0ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    line-height: 1.6;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CONTACT GRID ===== */
.contact-page-main {
    padding: 80px 0;
    background: #f8fafc;
}

.contact-grid {
    display: grid;
    gap: 40px;
    margin-bottom: 60px;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

/* ===== CONTACT INFO CARD ===== */
.contact-info-section {
    animation: fadeInLeft 0.8s ease-out;
}

.contact-info-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    height: 100%;
}

.contact-info-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.contact-info-description {
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ===== CONTACT INFO ITEMS ===== */
.contact-info-items {
    margin-bottom: 40px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background: white;
    border-color: #0077b6;
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 119, 182, 0.1);
}

.contact-icon-wrapper {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(135deg, #0077b6, #48cae4);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.contact-info-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.contact-info-content p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* ===== SOCIAL LINKS ===== */
.contact-social-links h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0077b6, #48cae4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 20px rgba(0, 119, 182, 0.3);
}

/* ===== CONTACT FORM ===== */
.contact-form-section {
    animation: fadeInRight 0.8s ease-out;
}

.contact-form-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.contact-form-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.contact-form-description {
    color: #666;
    margin-bottom: 35px;
    line-height: 1.6;
}

/* ===== FORM STYLES ===== */
.contact-form {
    display: grid;
    gap: 25px;
}

.form-row {
    display: grid;
    gap: 25px;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group label::after {
    content: '*';
    color: #ff6b6b;
    margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0077b6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-error {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 8px;
    display: none;
}

/* ===== FORM SUBMIT ===== */
.form-submit {
    margin-top: 10px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #0077b6, #48cae4);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 119, 182, 0.3);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-loading {
    display: none;
}

/* ===== FORM MESSAGE ===== */
.form-message {
    padding: 15px 20px;
    border-radius: 12px;
    margin-top: 20px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== MAP SECTION ===== */
.contact-map-section {
    animation: fadeInUp 0.8s ease-out;
}

.contact-map-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.contact-map-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1a1a1a;
    text-align: center;
}

.contact-map-container {
    margin-bottom: 30px;
}

.map-placeholder {
    height: 400px;
    background: #f8fafc;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e9ecef;
}

.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #666;
}

.map-loading i {
    font-size: 3rem;
    color: #48cae4;
    margin-bottom: 15px;
    display: block;
}

.map-actions {
    text-align: center;
}

/* ===== FAQ SECTION ===== */
.contact-faq-section {
    animation: fadeInUp 0.8s ease-out 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #1a1a1a;
}

.faq-grid {
    display: grid;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.faq-question i {
    color: #0077b6;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 30px 25px;
    max-height: 200px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .contact-hero {
        padding: 100px 0 60px;
    }
    
    .contact-hero-title {
        font-size: 2.5rem;
    }
    
    .contact-hero-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .contact-info-card,
    .contact-form-card,
    .contact-map-card {
        padding: 30px;
    }
    
    .contact-info-title,
    .contact-form-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-info-item {
        padding: 20px;
    }
    
    .contact-icon-wrapper {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .contact-hero-title {
        font-size: 2rem;
    }
    
    .contact-hero-subtitle {
        font-size: 1rem;
    }
    
    .contact-info-card,
    .contact-form-card,
    .contact-map-card {
        padding: 25px;
    }
    
    .social-icons {
        justify-content: center;
    }
}