/**
 * Contact Form Styles
 * CSS cho trang liên hệ và form liên hệ
 */

/* Contact Section */
.contact-section {
    padding: 40px 0;
    background-color: #f8f9fa;
}

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

/* Page Title */
.contact-section .page-title {
    font-size: 30px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.contact-form-wrapper h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

/* Form Controls */
.contact-form-wrapper .form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.contact-form-wrapper .form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-form-wrapper .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.contact-form-wrapper .form-control::placeholder {
    color: #999;
    opacity: 1;
}

.contact-form-wrapper textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Required Field Indicator */
.contact-form-wrapper .text-danger {
    color: #dc3545;
    font-weight: bold;
}

/* Submit Button */
.contact-form-wrapper .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.contact-form-wrapper .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.contact-form-wrapper .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Contact Info Wrapper */
.contact-info-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.contact-info-wrapper h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

/* Contact Info Items */
.contact-info-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.contact-info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-info-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.contact-info-item p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.contact-info-item a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Validation Error Styles */
.contact-form-wrapper .form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.contact-form-wrapper .form-control.is-valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #28a745;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-section {
        padding: 20px 0;
    }
    
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .contact-form-wrapper h2,
    .contact-info-wrapper h2 {
        font-size: 20px;
    }
    
    .contact-section .page-title {
        font-size: 24px;
    }
}

