/* ============================================
   Contact Page Styles
   ============================================ */

/* Contact Area Section */
.contact_area {
    padding: 100px 0;
    background: #fff;
}

.contact_inner_two {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Contact Form */
.contact_us_form {
    background: #fff;
    padding: 0 15px;
}

/* Section Title */
.section_title {
    margin-bottom: 30px;
}

.section_title h2 {
    font-size: 36px;
    font-weight: 500;
    color: #3363DD;
    margin-bottom: 15px;
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
}

.title_color {
    color: #3363DD;
}

.title_br {
    display: block;
    width: 50px;
    height: 3px;
    background: #3363DD;
    margin-top: 15px;
}

/* Form Styles */
.contact_form .form-group {
    margin-bottom: 20px;
}

.contact_form .form-control {
    height: 55px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 12px 20px;
    font-size: 15px;
    color: #0F1A40;
    background: #fafafa;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
}

.contact_form .form-control:focus {
    border-color: #3363DD;
    background: #fff;
    box-shadow: none;
    outline: none;
}

.contact_form textarea.form-control {
    height: auto;
    min-height: 200px;
    resize: vertical;
}

.contact_form input[type="text"],
.contact_form input[type="email"],
.contact_form input[type="tel"] {
    height: 55px;
}

/* Submit Button */
.btn_yellow {
    background: #3363DD;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 15px;
    font-weight: 500;
    text-transform: capitalize;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn_yellow:hover {
    background: #1530A0;
    color: #fff;
}

.wpcf7-submit {
    margin-top: 10px;
}

/* Contact Info Section */
.contact_info {
    background: transparent;
    padding: 0;
    margin-left: 30px;
}

.contact_info h4 {
    font-size: 24px;
    font-weight: 500;
    color: #3363DD;
    margin-bottom: 20px;
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
}

.contact_info > p {
    color: #0F1A40;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
}

/* Contact Info Items */
.contact_info_item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.contact_info_item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* SVG Icon style - no background, just border */
.contact_info_item .icon {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2px solid #3363DD;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact_info_item .icon .svg-icon {
    width: 22px;
    height: 22px;
    filter: invert(27%) sepia(89%) saturate(1200%) hue-rotate(210deg) brightness(90%) contrast(95%);
}

.contact_info_item h6 {
    font-size: 18px;
    font-weight: 500;
    color: #3363DD;
    margin-bottom: 8px;
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
}

.contact_info_item p,
.contact_info_item a {
    font-size: 15px;
    color: #0F1A40;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0;
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
}

.contact_info_item a:hover {
    color: #3363DD;
}

.f_size_16 {
    font-size: 16px;
}

.f_size_18 {
    font-size: 18px;
}

.f_p {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
}

/* Google Maps Section */
.map_section {
    width: 100%;
    margin: 40px 0 0 0;
}

.elementor-custom-embed {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-bottom: 26%; /* Giảm 35%: 40% × 0.65 = 26% */
    height: 0;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.elementor-custom-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Success/Error Messages */
.flash-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
}

.flash-close:hover {
    opacity: 1;
}

/* Form Validation States */
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' 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);
}

.form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' 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: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid #333;
    border-radius: 50%;
    border-top-color: transparent;
    animation: btn-spinner 0.8s linear infinite;
}

@keyframes btn-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Styles */
@media (max-width: 991px) {
    .contact_area {
        padding: 60px 0;
    }
    
    .contact_info {
        margin-left: 0;
        margin-top: 40px;
    }
    
    .contact_inner_two {
        flex-direction: column;
    }
    
    .section_title h2 {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .contact_area {
        padding: 40px 0;
    }
    
    .contact_info {
        padding: 24px 20px;
        margin-top: 40px;
        background: #fafafa;
        border: 1px solid #eaeaea;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    }
    
    .section_title h2 {
        font-size: 26px;
    }
    
    .contact_info_item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px dashed #eaeaea;
    }
    
    .contact_info_item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .contact_info_item .icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        background: rgba(51, 99, 221, 0.05);
        border: none;
        border-radius: 8px;
        margin-right: 15px;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .contact_info_item .icon .svg-icon {
        width: 18px;
        height: 18px;
    }

    .contact_info_item h6 {
        font-size: 16px;
        margin-bottom: 4px;
        font-weight: 600;
    }

    .contact_info_item p,
    .contact_info_item a {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .btn_yellow {
        width: 100%;
        text-align: center;
        border-radius: 6px;
    }
}

/* Placeholder Styles */
::placeholder {
    color: #aaa;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #aaa;
}

::-ms-input-placeholder {
    color: #aaa;
}

/* Focus States */
*:focus {
    outline: none;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}


