/* Ẩn thông báo lỗi mặc định */
.wpcf7-not-valid-tip {
    display: none !important;
}

/* Style cho tooltip */
.wpcf7-form-control-wrap {
    position: relative;
}

.custom-tooltip {
    position: absolute;
    top: -40px;
    left: 10px;
    background: #e74c3c;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    max-width: 200px;
    white-space: normal;
    line-height: 1.3;
}

.custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    border: 6px solid transparent;
    border-top-color: #e74c3c;
}

.custom-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-5px);
}

/* Highlight input có lỗi */
.wpcf7-not-valid {
    border: 2px solid #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

/* Animation khi tooltip xuất hiện */
@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(-5px);
    }
}

.custom-tooltip.show {
    animation: tooltipFadeIn 0.3s ease forwards;
}

/* DISABLE RESIZE CHO TẤT CẢ TEXTAREA */
textarea.wpcf7-form-control {
    resize: none !important;
}

/* Hoặc chỉ disable cho textarea có name cụ thể */
textarea[name="your-message"], 
textarea[name="your-message-en"] {
    resize: none !important;
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .custom-tooltip {
        left: 5px;
        right: 5px;
        max-width: none;
        font-size: 12px;
    }
    
    .custom-tooltip::after {
        left: 15px;
    }
}