/**
 * Contact section styles - Scoped to contact page only
 * This CSS is specifically scoped to prevent affecting other pages
 */

/* Only apply styles to contact page elements */
.vd-contact-page {
    /* Container */
}

.vd-contact-page .vd-contact-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.vd-contact-page .vd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Title - Scoped to contact page only */
.vd-contact-page .vd-contact-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
}

/* Content grid - Scoped */
.vd-contact-page .vd-contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Form wrapper - Scoped */
.vd-contact-page .vd-contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.vd-contact-page .vd-contact-subtitle {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

/* Form styling - Scoped to contact form only */
.vd-contact-page .vd-contact-form .vd-form-group {
    margin-bottom: 20px;
}

.vd-contact-page .vd-contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.vd-contact-page .vd-contact-form label .required {
    color: #dc3545;
}

/* Form inputs - Very specific selectors */
.vd-contact-page .vd-contact-form input[type="text"],
.vd-contact-page .vd-contact-form input[type="email"],
.vd-contact-page .vd-contact-form input[type="tel"],
.vd-contact-page .vd-contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.vd-contact-page .vd-contact-form input[type="text"]:focus,
.vd-contact-page .vd-contact-form input[type="email"]:focus,
.vd-contact-page .vd-contact-form input[type="tel"]:focus,
.vd-contact-page .vd-contact-form textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

.vd-contact-page .vd-contact-form input.error,
.vd-contact-page .vd-contact-form textarea.error {
    border-color: #dc3545;
}

.vd-contact-page .vd-contact-form textarea {
    resize: vertical;
}

/* Submit button - Scoped */
.vd-contact-page .vd-contact-submit {
    background-color: #007cba;
    color: #fff;
    padding: 14px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.vd-contact-page .vd-contact-submit:hover {
    background-color: #005a87;
}

.vd-contact-page .vd-contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading spinner - Scoped */
.vd-contact-page .vd-spinner {
    animation: vd-contact-spin 0.8s linear infinite;
}

@keyframes vd-contact-spin {
    to { transform: rotate(360deg); }
}

/* Form messages - Scoped */
.vd-contact-page .vd-form-message {
    margin-top: 20px;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 14px;
    display: none;
}

.vd-contact-page .vd-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.vd-contact-page .vd-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Contact info wrapper - Scoped */
.vd-contact-page .vd-contact-info-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Contact items - Scoped */
.vd-contact-page .vd-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vd-contact-page .vd-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-decoration: none !important;
    color: inherit !important;
    padding: 0;
    margin: 0;
    transition: transform 0.2s;
}

.vd-contact-page .vd-contact-link:hover {
    transform: translateX(5px);
    text-decoration: none !important;
}

/* Contact icons - Scoped */
.vd-contact-page .vd-contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vd-contact-page .vd-contact-phone {
    background-color: #e8f5e9;
}

.vd-contact-page .vd-contact-email {
    background-color: #e3f2fd;
}

.vd-contact-page .vd-contact-email svg {
    stroke: #1976d2;
}

.vd-contact-page .vd-contact-zalo {
    background-color: #e8f4ff;
}

.vd-contact-page .vd-contact-messenger {
    background-color: #f3e5f5;
}

/* Contact details - Scoped */
.vd-contact-page .vd-contact-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vd-contact-page .vd-contact-primary {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.vd-contact-page .vd-contact-desc {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

/* Working hours section - Scoped */
.vd-contact-page .vd-contact-hours {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.vd-contact-page .vd-hours-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.vd-contact-page .vd-hours-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vd-contact-page .vd-hours-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #555;
}

.vd-contact-page .vd-hours-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #e8f5e9;
    border-radius: 5px;
    font-size: 14px;
    color: #2e7d32;
}

/* Map - Scoped */
.vd-contact-page .vd-contact-map {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Responsive - All rules scoped to contact page */
@media (max-width: 991px) {
    .vd-contact-page .vd-contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .vd-contact-page .vd-contact-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .vd-contact-page .vd-contact-subtitle {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .vd-contact-page .vd-contact-form-wrapper,
    .vd-contact-page .vd-contact-info-wrapper {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .vd-contact-page .vd-contact-section {
        padding: 40px 0;
    }
    
    .vd-contact-page .vd-contact-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .vd-contact-page .vd-contact-form-wrapper,
    .vd-contact-page .vd-contact-info-wrapper {
        padding: 20px;
    }
    
    .vd-contact-page .vd-contact-submit {
        width: 100%;
        justify-content: center;
    }
    
    .vd-contact-page .vd-contact-primary {
        font-size: 16px;
    }
    
    .vd-contact-page .vd-contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .vd-contact-page .vd-contact-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .vd-contact-page .vd-contact-map {
        height: 300px !important;
    }
}

/* Extra specificity for form elements to prevent theme override */
.vd-contact-page .vd-contact-form input#vd_contact_name,
.vd-contact-page .vd-contact-form input#vd_contact_email,
.vd-contact-page .vd-contact-form input#vd_contact_phone,
.vd-contact-page .vd-contact-form textarea#vd_contact_message {
    /* Ensure our styles take precedence */
    font-size: 16px !important;
}