/* ===============================
   CONTACT FORM – BOTBLE WOWY
   Bootstrap 3.3.7 safe override
================================ */

.contact-from-area {
    background: #fff;
    border-radius: 6px;
    padding: 24px 30px 19px 30px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, .05); */
}

/* Textarea riêng */
.contact-form .textarea-style {
    padding-bottom: 26px;
}

/* Input + textarea */
.contact-form .input-style input,
.contact-form .textarea-style textarea {
    width: 100%;
    height: 45px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
    color: #333;
    transition: all .2s ease;
}

/* Error state */
.contact-form .input-style input.error,
.contact-form .textarea-style textarea.error {
    border-color: #fca5a5;
    background-color: #fff8f8;
    padding-right: 12px;
    border-width: 1.5px;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

/* Remove default error icon */
.contact-form .input-style input.error {
    background-image: none;
    padding-right: 12px;
}

/* Error message */
/* Input wrapper */
.contact-form .input-style,
.contact-form .textarea-style {
    position: relative;
    min-height: 45px;
}

/* Error message */
.error-message {
    color: #e74c3c;
    font-size: 13px;
    position: absolute;
    left: 0;
    bottom: -20px;
    text-align: left !important;
    line-height: 1.4;
    padding: 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Textarea specific error message */
.textarea-style .error-message {
    bottom: 6px;
}

/* Textarea riêng */
.contact-form .textarea-style textarea {
    height: 120px;
    resize: vertical;
}

/* Adjust error icon position for textarea */
.contact-form .textarea-style textarea.error {
    background-position: right 12px top 12px;
}

/* Focus */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #2e9494;
    box-shadow: 0 0 0 2px rgba(26, 188, 156, .15);
    outline: none;
}

/* Focus for error state */
.contact-form input.error:focus,
.contact-form textarea.error:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.15);
}

/* Placeholder */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
    font-size: 13px;
}

/* Button */
.contact-form .submit {
    background: #2e9494;
    color: #fff;
    border: none;
    padding: 12px 35px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    transition: all .25s ease;
}

.contact-form .submit:hover {
    background: #036666;
}

/* Message */
.contact-message {
    font-size: 14px;
    padding: 12px 15px;
    border-radius: 4px;
}

.contact-success-message {
    background: #eafaf5;
    color: #2e9494;
}

.contact-error-message {
    background: #fdecea;
    color: #e74c3c;
}


.pb-50 {
    padding-bottom: 50px !important;
}

.contact-form-section.section {
    display: block;
}

.contact-form-section .container {
    width: 100%;
}

@media (min-width: 1200px) {
    .col-lg-10 {
        width: 100%;
    }
}

.mb-20 {
    margin-bottom: 20px !important;
}

/* Map full width */
.contact-map-full {
    width: 100%;
    margin-bottom: 40px;
}

.contact-map-full iframe {
    width: 100%;
    height: 500px;
    border: 0;
    display: block;
}

/* Layout info + form */
.contact-layout {
    display: flex;
    gap: 40px;
}

.contact-info,
.contact-form-wrap {
    width: 50%;
}

/* Chỉ có form */
.contact-layout.only-form {
    justify-content: center;
}

.contact-layout.only-form .contact-form-wrap {
    width: 100%;
    max-width: 900px;
}

/* Fix bootstrap width */
.contact-form-wrap .col-xl-8,
.contact-form-wrap .col-lg-10 {
    max-width: 100%;
}

/* Mobile */
@media (max-width: 991px) {

    .contact-form-section h3,
    .contact-form-section .h3 {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .contact-layout {
        flex-direction: column;
    }

    .contact-info,
    .contact-form-wrap {
        width: 100%;
    }

    .contact-map-full iframe {
        height: 300px;
    }
}

/* RESET toàn bộ message mặc định của Botble Contact */
.contact-form .contact-message,
.contact-form .contact-message.contact-success-message {
    all: unset;
    display: block;
    margin-top: 20px;
}
