/* Styles cho validation form */
.wpcf7-form input.submitting,
.wpcf7-form button.submitting {
    opacity: 0.6;
    cursor: wait;
    background-color: #f0f0f0;
}

.wpcf7-form .wpcf7-not-valid {
    border-color: #ff5252 !important;
    background-color: rgba(255, 82, 82, 0.05);
}

.wpcf7-not-valid-tip {
    color: #ff5252;
    font-size: 12px;
    margin-top: 4px;
    display: block;
    font-weight: 400;
}

/* Loading overlay */
.form-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 4px;
}

.spinner {
    width: 35px;
    height: 35px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hiệu ứng hover cho nút submit */
.wpcf7-form input[type="submit"]:hover {
    opacity: 0.9;
}

/* Đảm bảo container form đặt position để overlay hiển thị đúng */
.wpcf7 {
    position: relative;
}